You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
just thinking this through: if target has no 'type' key, then
there'll be no KeyError,
target.get('type') will return None, which evals to False, so
required_fields will be ('ra', 'dec')
So, if I'm thinking about this correctly, we're sort of implying that if there's no type key for this ICRSTargetHelper target, then the default is ICRS, which makes sense and works for external API clients.
ef06e1e
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.
just thinking this through: if
target
has no 'type' key, thenKeyError
,target.get('type')
will returnNone
, which evals toFalse
, sorequired_fields
will be('ra', 'dec')
So, if I'm thinking about this correctly, we're sort of implying that if there's no
type
key for thisICRSTargetHelper
target, then the default isICRS
, which makes sense and works for external API clients.