-
Notifications
You must be signed in to change notification settings - Fork 28
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
Remove all uses of Step.__call__ #1499
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1499 +/- ##
=======================================
Coverage 76.21% 76.21%
=======================================
Files 115 115
Lines 7639 7639
=======================================
Hits 5822 5822
Misses 1817 1817 ☔ View full report in Codecov by Sentry. |
7dc949a
to
462e414
Compare
594e678
to
4254ff3
Compare
@@ -14,7 +14,7 @@ the outlier detection step. | |||
# read the file list into a ModelLibrary object | |||
mc = ModelLibrary(["img_1.asdf", "img_2.asdf"]) | |||
step = OutlierDetectionStep() | |||
step.process(mc) |
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.
Not a use of __call__
but process
isn't a recommended way to run a step.
@@ -34,7 +34,7 @@ or a Roman datamodel `ImageModel`. | |||
step.save_abs_catalog = True # save the catalog data used for absolute astrometry | |||
step.abs_refcat = 'GAIADR3' # use Gaia DR3 for absolute astrometry | |||
step.catalog_path = '/path/for/the/abs/catalog' # save the Gaia catalog to this path | |||
step.call([img]) |
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 use of call
didn't use the step
instance so the custom parameters were ignored. I changed the other uses in this file to run
to match.
11e8d18
to
b697b4f
Compare
Thanks @ddavis-stsci for mentioning the docs. I found a few more uses fixed in b697b4f In the same commit I also made a few other docs fixes:
|
Which version of stpipe are you using. I've got stpipe 0.7.0 and I am not getting very far,
|
The CI is also using 0.7.0. I suspect there is something wrong with your environment. Is it a new environment? |
I did a complete reinstall and get the same error. If I use call it works as expected. |
Oh I missed the command you're running. pipeline = ExposurePipeline()
pipeline.run('rsim/r0000101001001001001_0001_wfi01_uncal.asdf') Alternatively you can use ExposurePipeline.call('rsim/r0000101001001001001_0001_wfi01_uncal.asdf') See the docs for more details:
|
Dave, if you're happy here, we could merge this for B16. They have been trying to standardize the ways a step gets called in stpipe and we're the remaining holdout, so it would be good to get this in if possible. |
Sure go ahead - we can fix the docs after the release.
…On 11/12/24 2:58 PM, Eddie Schlafly wrote:
Dave, if you're happy here, we could merge this for B16. They have
been trying to standardize the ways a step gets called in stpipe and
we're the remaining holdout, so it would be good to get this in if
possible.
—
Reply to this email directly, view it on GitHub
<https://urldefense.com/v3/__https://github.com/spacetelescope/romancal/pull/1499*issuecomment-2471455147__;Iw!!CrWY41Z8OgsX0i-WU-0LuAcUu2o!zke0PrLkVJJWscYW3gia6oKT5jR0yy-84_9VhsHYF6xYIe5JnlLeEh4OQDR_zpGaSOjqozjUgfR-dI7qHAhrsnyK$>,
or unsubscribe
<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ALXCXWKKZ5TUCP5IVSFSUBL2AJMU5AVCNFSM6AAAAABRJ32TAOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZRGQ2TKMJUG4__;!!CrWY41Z8OgsX0i-WU-0LuAcUu2o!zke0PrLkVJJWscYW3gia6oKT5jR0yy-84_9VhsHYF6xYIe5JnlLeEh4OQDR_zpGaSOjqozjUgfR-dI7qHIpFCd1K$>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thanks. Are there more docs that need updating (beyond what's updated in this PR)? |
b697b4f
to
7ae7205
Compare
Some questions about whether this is a B16 or B17 merge; if we merged this in B17, would we want to do an stpipe upper pin for the release so that stpipe development can proceed with deprecating and removing this? |
That sounds reasonable to me. @zacharyburnett is it part of the "release" to add lower and upper pins for stpipe (like in Line 33 in c1d143a
|
I would say so, that should work |
7ae7205
to
11806fe
Compare
This PR removes all uses of
Step.__call__
(which will be deprecated in stpipe: spacetelescope/stpipe#204).To find all uses
Step.__call__
was intentionally broken and regression tests were run with this PR: https://github.com/spacetelescope/RegressionTests/actions/runs/11713132907Regression tests (without breaking
Step.__call__
) at: https://github.com/spacetelescope/RegressionTests/actions/runs/11728757856showed 1 unrelated failure.
Tasks
24Q4_B15
(use the latest build if not sure)no-changelog-entry-needed
)changes/
:echo "changed something" > changes/<PR#>.<changetype>.rst
(see below for change types)docs/
pageokify_regtests
to update the truth filesnews fragment change types...
changes/<PR#>.general.rst
: infrastructure or miscellaneous changechanges/<PR#>.docs.rst
changes/<PR#>.stpipe.rst
changes/<PR#>.associations.rst
changes/<PR#>.scripts.rst
changes/<PR#>.mosaic_pipeline.rst
changes/<PR#>.patch_match.rst
steps
changes/<PR#>.dq_init.rst
changes/<PR#>.saturation.rst
changes/<PR#>.refpix.rst
changes/<PR#>.linearity.rst
changes/<PR#>.dark_current.rst
changes/<PR#>.jump_detection.rst
changes/<PR#>.ramp_fitting.rst
changes/<PR#>.assign_wcs.rst
changes/<PR#>.flatfield.rst
changes/<PR#>.photom.rst
changes/<PR#>.flux.rst
changes/<PR#>.source_detection.rst
changes/<PR#>.tweakreg.rst
changes/<PR#>.skymatch.rst
changes/<PR#>.outlier_detection.rst
changes/<PR#>.resample.rst
changes/<PR#>.source_catalog.rst