Skip to content

Commit

Permalink
new attempted fix of output filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
emolter committed Aug 23, 2024
1 parent 6ff67d3 commit 6cad768
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion jwst/pipeline/calwebb_image3.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def process(self, input_data):
# background and target-acq members are not needed.
input_models = self._load_input_as_library(input_data)

if (self.output_file is None) and hasattr(input_models.asn["products"][0], "name"):
if (self.output_file is None) and "name" in input_models.asn["products"][0]:
# If input is an association, set the output to the product name.
self.output_file = input_models.asn["products"][0]["name"]

Expand Down
4 changes: 2 additions & 2 deletions jwst/resample/resample_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ def process(self, input):
# resampling.
# TODO: figure out why and make sure asn_table is carried along
output = None
if self.save_results:
self.output_file = output
# if self.save_results:
# self.output_file = output

# Check that input models are 2D images
with input_models:
Expand Down
2 changes: 1 addition & 1 deletion jwst/source_catalog/source_catalog_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def process(self, input_model):
model.data += bkg.background

if self.save_results:
self.output_file = model.meta.filename
# self.output_file = model.meta.filename
cat_filepath = self.make_output_path(ext='.ecsv')
catalog.write(cat_filepath, format='ascii.ecsv',
overwrite=True)
Expand Down

0 comments on commit 6cad768

Please sign in to comment.