-
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
Rcal 954 Remove jump code from rcal tree #1534
Conversation
ec4752a
to
9d5fbe2
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1534 +/- ##
==========================================
- Coverage 78.11% 78.00% -0.12%
==========================================
Files 117 115 -2
Lines 7639 7555 -84
==========================================
- Hits 5967 5893 -74
+ Misses 1672 1662 -10 ☔ View full report in Codecov by Sentry. |
69201cd
to
c8d37cd
Compare
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.
Overall, looks good, @ddavis-stsci! However, I agree with @braingram that we should stick with the recommended call
instead of run
.
24a6cc8
to
2e17d56
Compare
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 for working on this. I left a few more requested changes.
docs/roman/pipeline_run.rst
Outdated
You can execute a pipeline or a step from within python by using the | ||
``call`` method of the class. | ||
|
||
The ``call`` method creates a new instance of the class and runs the pipeline or | ||
step. Optional parameter settings can be specified by via keyword arguments or |
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.
Please restore this section.
docs/roman/pipeline_run.rst
Outdated
elp = ExposurePipeline() | ||
result = elp.call('r0000101001001001001_0001_wfi01_uncal.asdf') |
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.
elp = ExposurePipeline() | |
result = elp.call('r0000101001001001001_0001_wfi01_uncal.asdf') | |
elp = ExposurePipeline() | |
result = elp.call('r0000101001001001001_0001_wfi01_uncal.asdf') |
call
is a class method and doesn't require an instance. Please restore the code from main.
docs/roman/pipeline_run.rst
Outdated
linearity = LinearityStep() | ||
result = linearity.call('r0000101001001001001_0001_wfi01_uncal.asdf') |
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.
linearity = LinearityStep() | |
result = linearity.call('r0000101001001001001_0001_wfi01_uncal.asdf') | |
linearity = LinearityStep() | |
result = linearity.call('r0000101001001001001_0001_wfi01_uncal.asdf') |
Same here, please restore the code from main.
docs/roman/pipeline_run.rst
Outdated
@@ -95,13 +94,11 @@ For the mosaic level pipeline and steps, | |||
:: | |||
|
|||
from romancal.pipeline import MosaicPipeline | |||
result = ExposurePipeline.call('r0000101001001001001_asn.json') | |||
mosp = MosaicPipeline('r0000101001001001001_asn.json') |
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.
mosp = MosaicPipeline('r0000101001001001001_asn.json') | |
result = MosaicPipeline.call('r0000101001001001001_asn.json') |
Thanks for switching this to MosaicPipeline
. I think from the text above that this should be a call
as it's describing the pipeline results.
docs/roman/pipeline_run.rst
Outdated
|
||
from romancal.skymatch import SkyMatchStep | ||
result = SkyMatchStep.call('r0000101001001001001_asn.json') | ||
|
||
skymatch = SkyMatchStep.call('r0000101001001001001_asn.json') |
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.
skymatch = SkyMatchStep.call('r0000101001001001001_asn.json') | |
result = SkyMatchStep.call('r0000101001001001001_asn.json') |
Assigning to skymatch
is misleading as call
is not returning a SkyMatchStep
instance.
docs/roman/stpipe/user_pipeline.rst
Outdated
|
||
From Python | ||
----------- | ||
|
||
Once the pipeline has been configured (as above) it can be executed | ||
using run. | ||
|
||
pipe.run(input_data) | ||
pipe(input_data) |
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.
pipe(input_data) | |
pipe.run(input_data) |
Using pipe(input_data)
executes pipe.__call__
(which is deprecated). Please restore the example from main pipe.run
.
|
||
|
||
call() |
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.
Please restore this section.
docs/roman/stpipe/user_step.rst
Outdated
@@ -233,11 +198,11 @@ example is:: | |||
`input` in this case can be a asdf file containing the appropriate data, or the output | |||
of a previously run step/pipeline, which is an instance of a particular :ref:`datamodel<datamodels>`. | |||
|
|||
Unlike the ``call`` class method, there is no parameter initialization that |
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.
Please restore this section.
@@ -76,20 +72,12 @@ documentation on each reference file. | |||
+--------------------------------------------------+---------------------------------------------+ | |||
| :ref:`FLAT <flat_reffile>` | :ref:`flatfield <flatfield_step>` | | |||
+--------------------------------------------------+---------------------------------------------+ | |||
| :ref:`GAIN <gain_reffile>` | :ref:`jump_detection <jump_step>` | |
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.
Please restore this. The GAIN
reference file is still used by the ramp step.
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 is still not correct. The table is not formatted and GAIN
and READNOISE
are missing from the lower tables:
https://roman-pipeline--1534.org.readthedocs.build/en/1534/roman/references_general/references_general.html#reference-file-types
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.
@ddavis-stsci would you address this issue?
| :ref:`LINEARITY <linearity_reffile>` | :ref:`linearity <linearity_step>` | | ||
+--------------------------------------------------+---------------------------------------------+ | ||
| :ref:`MASK <mask_reffile>` | :ref:`dq_init <dq_init_step>` | | ||
+--------------------------------------------------+---------------------------------------------+ | ||
| :ref:`PHOTOM <photom_reffile>` | :ref:`photom <photom_step>` | | ||
+--------------------------------------------------+---------------------------------------------+ | ||
| :ref:`READNOISE <readnoise_reffile>` | :ref:`jump_detection <jump_step>` | |
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.
Same as above with GAIN
.
4a38d2d
to
11a48cd
Compare
for more information, see https://pre-commit.ci
036eb4f
to
733ae50
Compare
for more information, see https://pre-commit.ci
Since there seem to be no more comment I'm merging this. Any issues can be handled in a future ticket. |
Was this PR approved? I didn't approve it. |
Resolves RCAL-954
Closes #1518
This PR removes the old jump code for even ramps and updates the documentation.
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