diff --git a/jwst/wfs_combine/wfs_combine_step.py b/jwst/wfs_combine/wfs_combine_step.py index baf9ee0620..7e0fa88dfe 100644 --- a/jwst/wfs_combine/wfs_combine_step.py +++ b/jwst/wfs_combine/wfs_combine_step.py @@ -25,11 +25,14 @@ class WfsCombineStep(Step): suffix = string(default="wfscmb") """ + def make_output_path(self, basepath, *args, **kwargs): + # bypass all stpipe filename formatting + return basepath + def process(self, input_table): self.suffix = 'wfscmb' self.output_use_model = True - self.name_format = False # Load the input ASN table asn_table = self.load_as_level3_asn(input_table) @@ -69,7 +72,8 @@ def process(self, input_table): output_model.meta.cal_step.wfs_combine = 'COMPLETE' output_model.meta.asn.pool_name = asn_table['asn_pool'] output_model.meta.asn.table_name = os.path.basename(input_table) - output_model.meta.filename = which_set['name'] + # format the filename here + output_model.meta.filename = which_set['name'].format(suffix=self.suffix) + self.output_ext output_container.append(output_model)