Updates for photutils 3+ deprecations#10408
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #10408 +/- ##
==========================================
- Coverage 85.77% 85.76% -0.01%
==========================================
Files 372 372
Lines 40032 40047 +15
==========================================
+ Hits 34336 34348 +12
- Misses 5696 5699 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
8f5aa4a to
f273022
Compare
|
What is kind of concerning or at least needs discussion is that catalog columns keep changing over time. So a PR like this is needed to modify Also, IMO, it would have been useful if the version of the pipeline and photutils (and maybe astropy) be written to the catalog in some What will happen (how will this work) if I have the old version of the pipeline and |
|
The jwst tweakreg and catalog output column names are unchanged. The photutils column names are changed, but they are gracefully deprecated. Both the old and new photutils column names continue to work, but the old names give a DeprecationWarning. To ease the transition, there will be a long deprecation period (at least until 4.0 in 2027) with plenty of time to adjust. |
|
Regtests with current dependencies: Regtests with devdeps: There are some errors related to centroid columns, for IFU processing, looks like from this line at a minimum: @larrybradley - can you please take a look at photutils usage in the extract_1d step? |
6723283 to
1cdece2
Compare
|
Thanks, @melanieclarke. Indeed, I missed those in The devdeps regtests don't show any remaining failures due to photutils 3+ renamed deprecations. The |
melanieclarke
left a comment
There was a problem hiding this comment.
Looks good to me! Thanks for the future-proofing.
Resolves JP-nnnn
This PR makes updates for renamed/deprecated columns and arguments in photutils 3+. This will prevent new deprecation warnings in devdeps tests.
Tasks
Build 12.0(use the latest build if not sure)no-changelog-entry-needed)changes/:echo "changed something" > changes/<PR#>.<changetype>.rst(see changelog readme for instructions)changes/<PR#>.breaking.rstnews fragmentdocs/pageokify_regteststo update the truth files