-
Notifications
You must be signed in to change notification settings - Fork 32
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
Python 3.13 preparation for ramp fitting. #303
Conversation
Here is the regression testing for this PR: https://plwishmaster.stsci.edu:8081/job/RT/job/JWST-Developers-Pull-Requests/1778/ |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #303 +/- ##
=======================================
Coverage 86.21% 86.21%
=======================================
Files 47 47
Lines 8812 8812
=======================================
Hits 7597 7597
Misses 1215 1215 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
I rebased #300 to include these changes and the python 3.13 run passes with the changes in this PR:
https://github.com/spacetelescope/stcal/actions/runs/11257779409/job/31302843924?pr=300
Closing as a duplicate PR for #300 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me
…nd exception in the C-extension in python 3.13.
… for ramp fitting. It is not to update all of STCAL for python 3.13.
e7fee73
to
ae6a7c8
Compare
This PR prepares the ramp fitting C-extension for the upgrade to python 3.13. This version of python added an exception to the
PyLong_AsLong
function if thePyObject
passed to it isNoneType
. Now for two attributes ofRampData
that can beNoneType
a check needs to be put in place guard against this exception. The other attributes ofRampData
that are expected to be integer type should never beNoneType
, so should raise an exception if they are.Tasks
docs/
pageno-changelog-entry-needed
)changes/
:echo "changed something" > changes/<PR#>.<changetype>.rst
(see below for change types)"git+https://github.com/<fork>/stcal@<branch>"
)jwst
regression testromancal
regression testnews fragment change types...
changes/<PR#>.apichange.rst
: change to public APIchanges/<PR#>.bugfix.rst
: fixes an issuechanges/<PR#>.general.rst
: infrastructure or miscellaneous change