From b7e0b107d54ee411b252518e149bbf5501e10403 Mon Sep 17 00:00:00 2001 From: Brett Date: Wed, 5 Jun 2024 18:47:37 -0400 Subject: [PATCH] remove last name_format usage in wfs_combine --- jwst/wfs_combine/wfs_combine_step.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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)