diff --git a/jwst/pipeline/calwebb_image3.py b/jwst/pipeline/calwebb_image3.py index 473530ae32..9fe98b9376 100644 --- a/jwst/pipeline/calwebb_image3.py +++ b/jwst/pipeline/calwebb_image3.py @@ -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"] diff --git a/jwst/resample/resample_step.py b/jwst/resample/resample_step.py index 946dda192a..7d7377e5e6 100755 --- a/jwst/resample/resample_step.py +++ b/jwst/resample/resample_step.py @@ -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: diff --git a/jwst/source_catalog/source_catalog_step.py b/jwst/source_catalog/source_catalog_step.py index 93b037db5c..90932584e9 100755 --- a/jwst/source_catalog/source_catalog_step.py +++ b/jwst/source_catalog/source_catalog_step.py @@ -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)