aiapy.calibrate.degradation takes a channel and an obstime as an input and currently obstime can only be of length 1. This is somewhat annoying if you're trying to compute the degradation over a range of times because it means you have to call the function repeatedly in a loop (see the degradation gallery example). It would be better if this function accepted a astropy.time.Time object of length > 1.
The current difficulty is due to the selections from the calibration table. We would need to work out how to select rows from the table given an array of obstimes.
This could be as simple as wrapping the logic in degradation in a loop and repeatedly calling _select_epoch_from_table
In GitLab by @wtbarnes on Sep 17, 2020, 08:51
aiapy.calibrate.degradation
takes achannel
and anobstime
as an input and currentlyobstime
can only be of length 1. This is somewhat annoying if you're trying to compute the degradation over a range of times because it means you have to call the function repeatedly in a loop (see the degradation gallery example). It would be better if this function accepted aastropy.time.Time
object of length > 1.The current difficulty is due to the selections from the calibration table. We would need to work out how to select rows from the table given an array of obstimes.
This could be as simple as wrapping the logic in
degradation
in a loop and repeatedly calling_select_epoch_from_table