-
Notifications
You must be signed in to change notification settings - Fork 19
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
Coord sum adds to invalid coordinates #157
Comments
I added a check for the coordinates to be within 0-360 deg interval. Now the results are: from chimera.util.coord import Coord
ra = Coord.fromHMS('23:59:59') + Coord.fromAS(100)
print ra.__str__() # gives: 00:00:05.667
dec = Coord.fromDMS('359:59:59') + Coord.fromAS(100)
print dec.__str__() # gives: +00:01:39.000 |
Ok... So as @tribeiro noted on a private conversation, the idea of Coord is not to do any check on coordinates at all. Those must be done on higher level classes such as Position. chimera/src/chimera/util/coord.py Lines 450 to 452 in b5da434
So, I will roll back all this changes and enforce the 0-360 boundaries on FakeTelescope which is where the problem was first seen. |
…daries * Added makeValid360 tests * Fixes astroufsc#157
Ran some tests on the last commit and things seems to work as expected:
|
Coord package behavior when summing outside limits is wrong...
The text was updated successfully, but these errors were encountered: