spacetelescope / wfc3tools

Python tools for HST WFC3 data calibration and analysis
https://wfc3tools.readthedocs.io/en/latest/
Other
6 stars 19 forks source link

Ci tests #82

Open cshanahan1 opened 1 year ago

cshanahan1 commented 1 year ago

Draft PR to add unit tests for all modules in wfc3tools.

I'm in the process of moving these tests out of notebooks, and making use of fixtures and pytests temporary directory feature rather than the one i implemented here.

I am also still working on a solution for test data because for these tests I need both UVIS/IR associations of several files and both full frame and subarray for each, which is a few GB. I attempted to generate some lightweight files on the fly that are written out and cleaned up after use, but I can't get this to work (still, I think this might be the best option, but requires some more trial and error). I have set it up when running locally to use astroquery to download data rather than packaging the test data with wfc3tools, but this wont work in the CI environment either.

mdlpstsci commented 1 year ago

@cshanahan1 This is great and long overdue work for this repo!