Skip to content

Commit

Permalink
update output filename
Browse files Browse the repository at this point in the history
  • Loading branch information
jemorrison committed Apr 10, 2024
1 parent a187f1d commit a9f4048
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jwst/pixel_replace/pixel_replace_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def process(self, input):

if isinstance(input_model, datamodels.ModelContainer): # calspec3 case for IFU data
output_model = input_model.copy()

# Setup output path naming if associations are involved.
asn_id = None
try:
Expand Down Expand Up @@ -114,6 +115,9 @@ def process(self, input):
replacement.replace()
self.record_step_status(replacement.output, 'pixel_replace', success=True)
output_model[i] = replacement.output
o_path_name = self.make_output_path(basepath=output_model[i].meta.filename)
print(o_path_name)
output_model[i].meta.filename = o_path_name
return output_model
else: # a single input model. calspec2 case
replacement = PixelReplacement(result, **pars)
Expand Down

0 comments on commit a9f4048

Please sign in to comment.