Ingest functions#
Ingest function design guidelines#
ingest one thing. E.g., one parameter, or one spectrum.
use raise_error = True/False. * use
exit_functionto help * If True, raise an error if the ingest fails. * If False, return None and log warning if the ingest fails and log warning.
use helper functions to get constrained values from the database such as regime, instrument, etc.
astrodb_utils.utils.get_constrained_value
Need to decide#
ways to accept input. E.g, parameter= parameter, value=value, OR paramet dict = {parameter: value}. See astrodbtoolkit/astrodb_utils#13