-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GroupDQ index bug in ramp_fit.py #3879
Comments
This issue is tracked on JIRA as JP-1950. |
Chris, do you have test data you used to find this bug? I have been assigned this issue. |
Hi Ken,
I ran this through the detector1 pipeline twice. The second time I edited ramp_fit.py changing line 355 above (now at line 725 in v1.1.0) from I also added a print statement before and after this line in the code to print the pixel values of the first 4 pixels that I added the jumps to:
Here are the results, first with the original code: Then with the edited code: You can see the NaNs now line up correctly with the high 2.6e+04 jump values. I can provide the raw fits file used for this test if it's useful. |
Comment by Howard Bushouse on JIRA: Fixed in spacetelescope/stcal#12 |
This is a simple issue where the same effect has been introduced twice in subsequent lines of code, so can be fixed by changing one of the lines.
The group indices of the GROUPDQ section need to be shifted by 1 in order to line up with the differences array.
Line 348 does this shift by 1 by extracting the GROUPDQ section with gdq_sect[1:,:,:].
jwst/jwst/ramp_fitting/ramp_fit.py
Lines 348 to 349 in ad87fa4
Line 355 does the same shift again by setting the indices as i_group-1 instead of i_group.
jwst/jwst/ramp_fitting/ramp_fit.py
Line 355 in ad87fa4
Only one of the above shifts is required.
Running version 0.13.7.
The text was updated successfully, but these errors were encountered: