summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhack <hack@stsci.edu>2012-06-20 16:21:38 -0400
committerhack <hack@stsci.edu>2012-06-20 16:21:38 -0400
commit7a3c98f8f3e67dc8c3d719761d3174ece1589e0b (patch)
treee86429c10104df0a48781d9adb58e9631582df50
parent6a7777e54f4076d872aeadebbcea566bdbdbffab (diff)
downloadstwcs_hcf-7a3c98f8f3e67dc8c3d719761d3174ece1589e0b.tar.gz
Fixed a problem with headerlet.apply_as_primary that arose from changes from r17090 (adding support for simple FITS files) as reported in Ticket #910. This should allow all regression tests for STWCS.WCSUTIL.headerlet to pass, based on the fact that the test now passes when run manually with these changes.
This resolves the last of the critical issues for STWCS prior to its release with AstroDrizzle, so the version ID was incremented to 1.0.0 as well. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@17442 fe389314-cf27-0410-b35b-8c050e845b92
-rw-r--r--lib/stwcs/__init__.py2
-rw-r--r--lib/stwcs/wcsutil/headerlet.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/stwcs/__init__.py b/lib/stwcs/__init__.py
index 8a3839a..ef5d4c8 100644
--- a/lib/stwcs/__init__.py
+++ b/lib/stwcs/__init__.py
@@ -35,7 +35,7 @@ if False :
except:
pass
else :
- __version__ = '0.9.2'
+ __version__ = '1.0.0'
try:
diff --git a/lib/stwcs/wcsutil/headerlet.py b/lib/stwcs/wcsutil/headerlet.py
index 557057f..1cc003c 100644
--- a/lib/stwcs/wcsutil/headerlet.py
+++ b/lib/stwcs/wcsutil/headerlet.py
@@ -1950,7 +1950,7 @@ class Headerlet(pyfits.HDUList):
# Create a headerlet for the original Primary WCS data in the file,
# create an HDU from the original headerlet, and append it to
# the file
- orig_hlt = create_headerlet(fobj, sciext=wcsextn[0],
+ orig_hlt = create_headerlet(fobj, sciext=wcsextn,
wcsname=wcsname, wcskey=wcskey,
hdrname=hdrname, sipname=None,
npolfile=None, d2imfile=None,