Skip to content

Commit bd4c8b7

Browse files
committed
Rename step argument to match photom code; catch more uses of mrs_time_correction
1 parent a6d7d5a commit bd4c8b7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/jwst/photom/arguments.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ The ``photom`` step has the following optional arguments.
1111
Force the processing to use the given source type (POINT, EXTENDED),
1212
instead of using the information contained in the input data.
1313

14-
``--mrs_time_correction`` (boolean, default=True)
15-
A flag to indicate whether to turn on the time and wavelength dependent
16-
correction for MIRI MRS data.
14+
``--apply_time_correction`` (boolean, default=True)
15+
A flag to indicate whether to apply time-dependent corrections
16+
if available.

jwst/photom/photom_step.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class PhotomStep(Step):
1818
spec = """
1919
inverse = boolean(default=False) # Invert the operation
2020
source_type = string(default=None) # Process as specified source type
21-
time_correction = boolean(default=True) # Apply time dependent corrections if available
21+
apply_time_correction = boolean(default=True) # Apply time dependent corrections if available
2222
""" # noqa: E501
2323

2424
reference_file_types = ["photom", "area"]
@@ -92,7 +92,7 @@ def process(self, input_data):
9292
input_model,
9393
self.inverse,
9494
self.source_type,
95-
self.time_correction,
95+
self.apply_time_correction,
9696
correction_pars,
9797
)
9898
result = phot.apply_photom(phot_filename, area_filename)

jwst/regtest/test_miri_mrs_tso.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def run_spec2(rtdata_module, resource_tracker):
3131
"--steps.srctype.save_results=true",
3232
"--steps.fringe.save_results=true",
3333
"--steps.photom.save_results=true",
34-
"--steps.photom.mrs_time_correction=true",
34+
"--steps.photom.apply_time_correction=true",
3535
]
3636
with resource_tracker.track():
3737
Step.from_cmdline(args)

0 commit comments

Comments
 (0)