-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ascent and descent calculation in panorama
#64
base: master
Are you sure you want to change the base?
Conversation
This one seems, a priori, worrying from a backwards compatibility perspective. But since it only affects the descent in the result of panorama then, at least in the way I tend to use that function (I feel like I don't use baseline appending or superimposition on panorama'd picts), maybe this is possible. ( |
Thanks for checking! I agree that this is a much more significant change than my other recent PRs. My rationale for just making this change was that this is very clearly a bug: the existing behavior is both strange and somewhat unpredictable. Intentionally depending on the current behavior seems very difficult, since I couldn’t even understand what it was doing until I carefully read the implementation. On the other hand, it wouldn’t surprise me if someone somewhere was depending on it unintentionally. But what’s the alternative, really? A new |
I understand your rationale. I don't think the "it is a bug" rationale is sufficient. "It is a bug and no one seems to depend on it" is more to my taste for a rationale that passes muster. My best hope is that that's what happens and maybe others will contribute. Maybe you can too if you like, by finding code and trying things out (not that you have to, of course). As for alternatives, I would point to the |
I agree that the default there is rarely what I want, but at least in that case there are some legitimate uses. I am sympathetic to your broader point, though. I will admit it is unlikely that I will take the time to actively audit other people’s code to see how this affects things, but I also don’t feel any particular urgency to get this fixed. I can just run off my fork for now, so I’m happy to wait and let other people weigh in. If this fix is ultimately deemed too incompatible, so be it. |
My experiments are positive which, in addition to pointing out that there are uses of panorama where this change doesn't matter (just like with |
I have few uses of |
panorama
panorama
I realized today that the ascent calculation is actually also incorrect, it just shows up in different situations. So I’ve now pushed a change that fixes that, too. |
Should there be two test cases? |
It seems safe to merge this. Any objections? |
Fixes #63.