Open guillochon opened 8 years ago
An impassioned definitely. And for future tasks, that should actually make adding data a lot smoother/cleaner (e.g. more templated --- like what I'm trying to do here).
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.
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?