summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--stwcs/updatewcs/__init__.py1
-rw-r--r--stwcs/wcsutil/altwcs.py1
2 files changed, 0 insertions, 2 deletions
diff --git a/stwcs/updatewcs/__init__.py b/stwcs/updatewcs/__init__.py
index fe326c3..10fc80e 100644
--- a/stwcs/updatewcs/__init__.py
+++ b/stwcs/updatewcs/__init__.py
@@ -149,7 +149,6 @@ def makecorr(fname, allowed_corr):
ext_wcs = wcsutil.HSTWCS(fobj=f, ext=i)
# check if it exists first!!!
# 'O ' can be safely archived again because it has been restored first.
- # perhaps archive only if it doesn't exist???
wcsutil.archiveWCS(f, ext=i, wcskey="O", wcsname="OPUS", reusekey=True)
ext_wcs.readModel(update=True, header=hdr)
diff --git a/stwcs/wcsutil/altwcs.py b/stwcs/wcsutil/altwcs.py
index b166b61..05bc953 100644
--- a/stwcs/wcsutil/altwcs.py
+++ b/stwcs/wcsutil/altwcs.py
@@ -159,7 +159,6 @@ def archiveWCS(fname, ext, wcskey=" ", wcsname=" ", reusekey=False):
key = k[: 7] + wkey
f[e].header[key] = hwcs[k]
log.setLevel(default_log_level)
- warnings.resetwarnings()
closefobj(fname, f)