-
Notifications
You must be signed in to change notification settings - Fork 21
Conversation
This seems to work for me. |
Great! Needs tests and docs (will do when traveling) |
although it should be in astropy :p |
Of course - this is just a stop-gap measure :) |
@Cadair - notice the small change to the function names |
""" | ||
from copy import deepcopy | ||
for identifier in deepcopy(FRAME_IDENTIFIERS): | ||
FRAME_IDENTIFIERS.remove(identifier) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume you have to do this like this because it is a global variable? and doing FRAME_IDENTIFIERS = []
wont work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if you put a global FRAME_IDENTIFIERS
at the top of the function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would be too easy! ;) (fixed)
assert get_coordinate_frame(wcs) is Galactic | ||
|
||
wcs = WCS(naxis=2) | ||
wcs.wcs.ctype = ['SOLARX', 'SOLARY'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like that this is your break example :p
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:)
Make get_coordinate_system extensible
Make get_coordinate_system extensible
No description provided.