Open mcara opened 3 months ago
Attention: Patch coverage is 4.38356%
with 349 lines
in your changes missing coverage. Please review.
Project coverage is 55.47%. Comparing base (
1561909
) to head (f6677e8
). Report is 3 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Thanks for sharing this. I started to look at the changes but haven't made it all the way through yet. I started 2 branches off of yours:
https://github.com/mcara/jwst/compare/new-resample-cls...braingram:jwst:resample_2p0_bjg?expand=1
https://github.com/mcara/stcal/compare/resample-common-code...braingram:stcal:resample_2p0_bjg?expand=1
I wanted to share them sooner (even though they're far from complete). The main changes are to simplify LibModelAccess
removing all but the attribute list effectively untangling it from ModelLibrary. I left a number of notes (mostly for reminders for myself). I restored resample_utils
from main as it contains a bug in this PR that makes make_output_wcs
crash. This restore likely broke something else but as these branches are quite out-of-date it hopefully doesn't interfere with the prototype.
I will take care of pre-commit tests in a day.
This PR add the common resample code used by both JWST and Roman pipelines to stcal. Also, for the first time, this PR adopts the new
drizzle
API from https://github.com/spacetelescope/drizzle/pull/134 for the resample code used in the pipelines. For now only imaging mode was switched to the new codeThis work is related to https://jira.stsci.edu/browse/AL-835
The code in this PR requires the code from https://github.com/spacetelescope/stcal/pull/279 and https://github.com/spacetelescope/drizzle/pull/134 be installed.
At this moment this is a very rough draft for illustration purpose. It should run with default arguments (except input_models and output file name can be specified; everything else is not guaranteed to work). There are no unit/regression tests and documentation may not match the code. Also, for now I kept the old
ResampleData
code to allow resampling of spectral data to work with the old code.Example:
Checklist for PR authors (skip items if you don't have permissions or they are not applicable)
CHANGES.rst
within the relevant release section