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
But, since say magnitude could be changed to a different string later, it might be better to pass the kwargs as a dictionary, with the dictionary members pulling from the KeyCollection members, like so:
We should do this for the test task in astrocats; then I would consider this issue closed at least for the main repo. Will take time to do this for supernovae, etc., but those should be separate issues for those modules.
guillochon
changed the title
Should add_* functions also use KeyCollection members rather than literals?add_* functions in test should use KeyCollection members rather than literals
Jul 27, 2016
So currently when we do something like say
add_photometry
, we pass a list ofkwargs
to the function where each kwarg is really a string:But, since say
magnitude
could be changed to a different string later, it might be better to pass the kwargs as a dictionary, with the dictionary members pulling from theKeyCollection
members, like so:This makes the
add_*
calls a bit longer but also more stable to future changes. Should we adopt this as a best practice?The text was updated successfully, but these errors were encountered: