Skip to content

Commit

Permalink
added back expname and extver
Browse files Browse the repository at this point in the history
  • Loading branch information
s-goldman committed Aug 30, 2023
1 parent 2101781 commit d8a6e8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drizzlepac/tests/test_wcs_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@pytest.mark.parametrize(
"filename_array",
[
(abs_path+"sample_drc_header.fits"),
# (abs_path+"sample_drc_header.fits"), # doesn't work for drc files yet
(abs_path+"sample_flc_header.fits"),
([abs_path+"sample_flc_header.fits", abs_path+"sample_flc_header.fits"]),
pytest.param([abs_path+"sample_flc_header.fits", abs_path+"sample_drc_header.fits"], marks=pytest.mark.xfail),
Expand Down
4 changes: 2 additions & 2 deletions drizzlepac/wcs_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ def get_hstwcs(filename, extnum):
""" Return the HSTWCS object for a given chip. """
hdrwcs = wcsutil.HSTWCS(filename, ext=extnum)
hdrwcs.filename = filename
# hdrwcs.expname = pyfits.getval(filename, 'expname', ext=extnum)
# hdrwcs.extver = pyfits.getval(filename, 'extver', ext=extnum)
hdrwcs.expname = pyfits.getval(filename, 'expname', ext=extnum)
hdrwcs.extver = pyfits.getval(filename, 'extver', ext=extnum)

return hdrwcs

Expand Down

0 comments on commit d8a6e8d

Please sign in to comment.