spacetelescope / stistools

Tools for HST/STIS.
http://stistools.readthedocs.io/en/latest/
Other
5 stars 23 forks source link

CR-Rejection wrapper for calstis — crrej_from_raw() #159

Open sean-lockwood opened 1 year ago

sean-lockwood commented 1 year ago

This code does the following:

Note on testing:
The associated tests only check that input parameters do not fail immediately. The calls to calstis are terminated early by making the test data not contain a data table. So, output FITS products are not tested for the desired changes in the CRREJTAB.

@awfullerton: Let me know if you have any feedback on the interface or the routine name.

sean-lockwood commented 1 year ago

Documentation branch: ~https://stistools--159.org.readthedocs.build/en/159/override_crrej.html~

Edit: Moved to here: https://stistools--159.org.readthedocs.build/en/159/crrej_from_raw.html

sean-lockwood commented 1 year ago

@stscirij - I wasn't able to get the test code to work in the tests/ directory on my system, likely due to the conftest.py conflicting with the bare tests generated to test this routine. It does work fine when moved to another location.

Any thoughts on how to get this working properly would be appreciated.