Skip to content

Commit

Permalink
Clarify intermediate suffix attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
melanieclarke committed Aug 29, 2024
1 parent bf9b736 commit e43af51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions jwst/resample/resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __init__(self, input_models, output=None, single=False, blendheaders=True,
if output is not None and '.fits' not in str(output):
self.output_dir = output
self.output_filename = None
self.output_suffix = 'i2d'
self.intermediate_suffix = 'outlier_i2d'

self.pscale_ratio = pscale_ratio
self.single = single
Expand Down Expand Up @@ -287,11 +287,11 @@ def resample_many_to_many(self, input_models):
if self.asn_id is not None:
output_model.meta.filename = (

Check warning on line 288 in jwst/resample/resample.py

View check run for this annotation

Codecov / codecov/patch

jwst/resample/resample.py#L288

Added line #L288 was not covered by tests
f'{output_root}_{self.asn_id}_'
f'outlier_{self.output_suffix}{output_type}')
f'{self.intermediate_suffix}{output_type}')
else:
output_model.meta.filename = (
f'{output_root}_'
f'outlier_{self.output_suffix}{output_type}')
f'{self.intermediate_suffix}{output_type}')

# Initialize the output with the wcs
driz = gwcs_drizzle.GWCSDrizzle(output_model, pixfrac=self.pixfrac,
Expand Down
2 changes: 1 addition & 1 deletion jwst/resample/resample_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __init__(self, input_models, output=None, single=False, blendheaders=False,
if output is not None and '.fits' not in str(output):
self.output_dir = output
self.output_filename = None
self.output_suffix = 's2d'
self.intermediate_suffix = 'outlier_s2d'

self.pscale_ratio = pscale_ratio
self.single = single
Expand Down

0 comments on commit e43af51

Please sign in to comment.