CR-Rejection wrapper for calstis — crrej_from_raw()#159
Conversation
|
Documentation branch: Edit: Moved to here: https://stistools--159.org.readthedocs.build/en/159/crrej_from_raw.html |
|
@stscirij - Any thoughts on how to get this working properly would be appreciated. UPDATE: |
|
Tests now look good: The warning is unrelated to this code. |
|
@stscirij, @Jackie-Brown - Update: Well, now after PEP8 updates. |
stscirij
left a comment
There was a problem hiding this comment.
This looks good.
Maybe add a unit test to verify that the input file is left unchanged after running, since it looks like there's some writing to and removing from the file
|
@stscirij - |
|
Maybe also fix the deprecation warning? I think it turns into a syntax error in 3.12. Just need to turn the string into an r-string I think... |
|
Oh, that should be an easy fix. Will do today. Update: PR #175 |
This code does the following:
calstison the RAW fileNote on testing:
The associated tests only check that input parameters do not fail immediately. The calls to
calstisare 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.