sot/mica

dark cal methods don't handle bounds

Opened this issue · 0 comments

If one asks for a dark cal before the earliest one in the archive, one just gets the latest one. An error would be more appropriate I think.

In [1]: from mica.archive import aca_dark                                                                                                              

In [2]: aca_dark.dark_cal.get_dark_cal_props(date='2000:326', select='before')['date']                                                                 
Out[2]: '2000:326'

In [3]: aca_dark.dark_cal.get_dark_cal_props(date='2000:325', select='before')['date']                                                                 
Out[3]: '2021:329:10:10:29.450'