Skip to content

Commit

Permalink
Fix for ref names in extract params default
Browse files Browse the repository at this point in the history
  • Loading branch information
melanieclarke committed Nov 22, 2024
1 parent 0eed7c2 commit 0fb10a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions jwst/extract_1d/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ def get_extract_parameters(ref_dict, input_model, slitname, sp_order, meta,
extract_params['subtract_background'] = False
extract_params['extraction_type'] = 'box'
extract_params['use_source_posn'] = False # no source position correction
extract_params['specwcs_ref_name'] = 'N/A'
extract_params['psf_ref_name'] = 'N/A'
extract_params['specwcs'] = 'N/A'
extract_params['psf'] = 'N/A'
extract_params['position_correction'] = 0
extract_params['independent_var'] = 'pixel'
# Note that extract_params['dispaxis'] is not assigned.
Expand Down
4 changes: 3 additions & 1 deletion jwst/extract_1d/tests/test_extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ def extract_defaults():
'xstart': 0,
'xstop': 49,
'ystart': 0,
'ystop': 49}
'ystop': 49,
'psf': 'N/A',
'specwcs': 'N/A'}
return default


Expand Down

0 comments on commit 0fb10a3

Please sign in to comment.