Skip to content

Commit

Permalink
Invoke convert from_tvac_raw
Browse files Browse the repository at this point in the history
  • Loading branch information
stscieisenhamer committed Jan 30, 2025
1 parent 8422362 commit a109e1f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion romancal/dq_init/dq_init_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from typing import TYPE_CHECKING

import roman_datamodels as rdm
from roman_datamodels.datamodels import RampModel
from roman_datamodels.datamodels import RampModel, ScienceRawModel
from roman_datamodels.dqflags import pixel

from romancal.dq_init import dq_initialization
Expand Down Expand Up @@ -47,6 +47,10 @@ def process(self, input):
"""
# Open datamodel
input_model = rdm.open(input)
try:
input_model = ScienceRawModel.from_tvac_raw(input_model)
except ValueError:
pass

Check warning on line 53 in romancal/dq_init/dq_init_step.py

View check run for this annotation

Codecov / codecov/patch

romancal/dq_init/dq_init_step.py#L53

Added line #L53 was not covered by tests

# Convert to RampModel
output_model = RampModel.from_science_raw(input_model)
Expand Down

0 comments on commit a109e1f

Please sign in to comment.