sot / aca_weekly_report

0 stars 0 forks source link

Remove timelines dependency #11

Closed taldcroft closed 1 year ago

taldcroft commented 1 year ago

Description

This removes the dependency on the cmd_states.db3 timelines and load_segments tables.

Requires https://github.com/sot/mica/pull/279

Interface impacts

None

Testing

Unit tests

Functional tests

From this branch, using the dev version of mica from https://github.com/sot/mica/pull/279:

>>> import aca_weekly_report
>>> aca_weekly_report.__version__
'0.1.7.dev1+gb227b4c'
>>> from aca_weekly_report.report import get_all_starcats
>>> scs = get_all_starcats()
>>> sok = scs[scs["date"] > "2022:001"]
>>> sok.write("starcats_test.ecsv", overwrite=True)

From ska3 flight:

>>> import aca_weekly_report
>>> aca_weekly_report.__version__
'0.1.6'
>>> from aca_weekly_report.report import get_all_starcats
>>> scs = get_all_starcats()
>>> sok = scs[scs["date"] > "2022:001"]
>>> sok.write("starcats_flight.ecsv", overwrite=True)

No diff between starcats_flight.ecsv and starcats_test.ecsv.