@@ -100,7 +100,7 @@ def __init__(
100
100
model ,
101
101
inverse = False ,
102
102
source_type = None ,
103
- mrs_time_correction = False ,
103
+ apply_time_correction = True ,
104
104
correction_pars = None ,
105
105
):
106
106
"""
@@ -114,8 +114,8 @@ def __init__(
114
114
Invert the math operations used to apply the corrections.
115
115
source_type : str or None
116
116
Force processing using the specified source type.
117
- mrs_time_correction : bool
118
- Switch to apply/not apply the MRS time correction.
117
+ apply_time_correction : bool
118
+ Switch to apply/not apply a time correction, if available .
119
119
correction_pars : dict
120
120
Correction meta-data from a previous run.
121
121
"""
@@ -158,7 +158,7 @@ def __init__(
158
158
self .integ_row = - 1
159
159
self .inverse = inverse
160
160
self .source_type = None
161
- self .mrs_time_correction = mrs_time_correction
161
+ self .apply_time_correction = apply_time_correction
162
162
163
163
# For MultiSlitModels, only set a generic source_type value for the
164
164
# entire datamodel if the user has set the source_type parameter.
@@ -545,9 +545,9 @@ def calc_miri(self, ftab):
545
545
"Skipping MRS MIRI time correction. "
546
546
"Extensions not found in the reference file."
547
547
)
548
- self .mrs_time_correction = False
548
+ self .apply_time_correction = False
549
549
550
- if self .mrs_time_correction :
550
+ if self .apply_time_correction :
551
551
log .info ("Applying MRS IFU time dependent correction." )
552
552
mid_time = self .input .meta .exposure .mid_time
553
553
correction = time_dependence .miri_mrs_time_correction (
@@ -743,7 +743,8 @@ def photom_io(self, tabdata, order=None, time_correction=None):
743
743
Multiplicative correction for time dependence, defined as the
744
744
fractional amount of light recorded now divided by the light
745
745
recorded on the zero-day MJD (t0). The scalar conversion factor
746
- will be divided by the correction value if provided.
746
+ will be divided by the correction value if provided, and if
747
+ ``self.apply_time_correction`` is True.
747
748
"""
748
749
# First get the scalar conversion factor.
749
750
# For most modes, the scalar conversion factor in the photom reference
@@ -796,7 +797,7 @@ def photom_io(self, tabdata, order=None, time_correction=None):
796
797
unit_is_surface_brightness = False
797
798
798
799
# Apply the time-dependence correction
799
- if time_correction is not None and time_correction != 1.0 :
800
+ if self . apply_time_correction and time_correction is not None and time_correction != 1.0 :
800
801
log .info (f"Multiplicative time dependence correction is { time_correction :.6g} " )
801
802
conversion /= time_correction
802
803
0 commit comments