-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 for first item in 4210 by doing labmda->lamb #4211
Conversation
@eteq - I wonder if |
The PEP8 way to deal with name conflicts with reserved keywords is to append an underscore, i.e., Though, personally, I'd prefer just |
p.s. Fix is for #4210 (not 4120); I went ahead and edited title and first entry. |
Incidentally, I'd also be fine with "lambda_" per @mhvk's comment above, and would be willing to change the projection models to match it. Anyways I don't have a strong feeling about which way we go as long as we try to keep some inter-subpackage consistency. |
I'd vote for |
Can also always provide the unicode spelling as an alias :) |
In plain English I would always talk about ecliptic longitude and latitude, hence |
Since not just |
@mhvk @barentsen @astrofrog - just to clarify, I got these names because that's what I understand to be the convention among people who use ecliptic coordinates. That is, |
But I strongly favor All that said, it could be that we shouldn't care about the convention at all and just do |
Oh, and FYI, @barentsen, you can always do |
@eteq - OK, fair enough, I should have realised you had thought this through! Overall, I'd prefer to go with p.s. Note that the Nautical Almanac Office in planetary and lunar coordinates -- https://books.google.ca/books?id=2g_TICVzdSAC&pg=PR9&lpg=PR9&dq=geocentric+ecliptic+coordinates&source=bl&ots=CfyVxOk3Yq&sig=Jkx-UbBHXFu--dtubJqITbT72LM&hl=en&sa=X&ved=0CCIQ6AEwATgKahUKEwjm4vuTyqTIAhUCdj4KHdRXDBM#v=onepage&q=geocentric%20ecliptic%20coordinates&f=false -- seems to use |
OK, messages crossed. I also don't care all that much, but have a slight preference for just doing |
Honestly, what we really need is someone who actually knows the conventions people actually use... But awkwardly, it seems we can't get their feeback until we implement it... :/ At any rate, I tried to do a few more searches and concluded it's just a mess - lots of different conventions for what letter to use... In addition to what @mhvk dug up I found some refernces to So I guess now I tend towards |
weak preference for pinging JJ (@ijiraq) as someone who I think actually works with ecliptic systems in his Oort-cloud hunts. |
Since @mhvk pinged me. As an example, pyEphem went through a period of using 'long' (oops) and then switched to lon/lat/distance Conclusion, lon/lat might be more recognized but l/b will not be confusing. I do not like 'lam' or 'lamb' or 'lambda_' (how many characters in an attribute name is too many? , I guess 5). |
I too am happier with lon/lat/distance. Confusion with Galactic notation is a real issue with l/b. |
I would vote for lon/lat, since I don't think anyone will complain about that option (i.e. I doubt people will have strong opinions about that, vs lam/beta and l/b) |
Alright, sounds good - I'll change all of the ecliptic names to lon/lat/distance for consistency. |
@eteq - better get in the change soon to leave Travis/Appveyor time to run before the feature freeze :) |
Not really related to this PR, except that a "find all" on "ecliptic" revealed its existence...
fix for first item in 4210 by doing labmda->lamb
This fixes the issue pointed out in #4210 by simply renaming
lambda
->lamb
(the issue was thatlambda
is of course a reserved keyword in python.