Skip to content

Commit

Permalink
remove last name_format usage in wfs_combine
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Jun 6, 2024
1 parent f2c9e93 commit b7e0b10
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions jwst/wfs_combine/wfs_combine_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check warning on line 30 in jwst/wfs_combine/wfs_combine_step.py

View check run for this annotation

Codecov / codecov/patch

jwst/wfs_combine/wfs_combine_step.py#L30

Added line #L30 was not covered by tests

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)
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit b7e0b10

Please sign in to comment.