Closed javierggt closed 2 years ago
@jeanconn, sorry for committing stuff after you approved the PR, but I made two more:
ValueError: trying to get last dark cal on 2000:325, which is before the earliest dark cal on 2000:326
get_dark_cal_id
which returns all dark cals in a dictionary like this:
{'2022:104:00:00:00.000': '2022104',
'2022:133:00:00:00.000': '2022133'}
LGTM. I reran the unit tests and re-approved.
Description
This PR adds vectorized versions of get_dark_cal_id, date_to_dark_id and dark_id_to_date. It also replaces the uses of DateTime by CxoTime inside
mica.archive.aca_dark.dark_cal
(all other uses ofDateTime
were left there).Interface impacts
Everything should be backward compatible. This only enhances the interface, so something like this is possible:
Testing
Unit tests
I added a test for these vectorized functions.
Independent check of unit tests by @jeanconn
Functional tests
No functional testing.