Skip to content

Commit

Permalink
ROman does not have zero frame (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
nden authored May 19, 2022
1 parent 6f2dba7 commit dff7745
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/stcal/ramp_fitting/ramp_fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,12 @@ def create_ramp_fit_class(model, dqflags=None, suppress_one_group=False):
"""
ramp_data = ramp_fit_class.RampData()

if not suppress_one_group and model.meta.exposure.zero_frame:
# ZEROFRAME processing here
zframe_locs, cnt = use_zeroframe_for_saturated_ramps(model, dqflags)
ramp_data.zframe_locs = zframe_locs
ramp_data.zframe_cnt = cnt
if not suppress_one_group and hasattr(model.meta.exposure, 'zero_frame'):
if model.meta.exposure.zero_frame:
# ZEROFRAME processing here
zframe_locs, cnt = use_zeroframe_for_saturated_ramps(model, dqflags)
ramp_data.zframe_locs = zframe_locs
ramp_data.zframe_cnt = cnt

# Attribute may not be supported by all pipelines. Default is NoneType.
if hasattr(model, 'int_times'):
Expand Down

0 comments on commit dff7745

Please sign in to comment.