sot / astromon

Astrometric accuracy (celestial location) monitor
0 stars 0 forks source link

Refactor db #26

Closed javierggt closed 2 years ago

javierggt commented 2 years ago

Description

This PR fixes several issues having to do with the db.py module:

It also fixes an issue that didn't have anything to do with db.py but it was convenient to do it at the same time:

A few minor issues were found and fixed on the fly.

Fixes #19 Fixes #20 Fixes #21 Fixes #22 Fixes #23 Fixes #24

Interface impacts

This PR requires a new h5 file which can be found at ~jgonzale/tmp/astromon/astromon-pr-26.h5

The following columns were removed:

Testing

Unit tests

Independent check of unit tests by [REVIEWER NAME]

Functional tests

I ran the same commands to create a new hdf5 file, with the code in this branch and the code in master. I then compared the output and verified that the differences are as expected, namely:

I ran the following commands:

   python -m astromon.scripts.get_cat_obs_data --workdir work --obsid 26266 --db-file pr-26.h5
   python -m astromon.scripts.get_cat_obs_data --workdir work --start 2022-01-04 --stop 2022-01-05 --db-file pr-26-2.h5
   python -m astromon.scripts.get_cat_obs_data --workdir work --obsid 26249 --db-file pr-26-3.h5
taldcroft commented 2 years ago

@javierggt - I see in the functional testing that: "I intend to do the same tests as the previous PR". I'm not sure if you ended up doing that testing already, but with that testing completed this can be merged.

javierggt commented 2 years ago

Yes, I just edited the PR description to describe better what I did.