diff options
author | Nadia Dencheva <nadia.dencheva@gmail.com> | 2016-08-14 11:51:22 -0400 |
---|---|---|
committer | Nadia Dencheva <nadia.dencheva@gmail.com> | 2016-08-14 11:51:22 -0400 |
commit | 7d3caf090ee2d975f5d314de3a9d4c89a1c0e9e5 (patch) | |
tree | cc105741d82f0255a8f941a1cf7e79f01845829a | |
parent | 2b246650dae33a3a11220adf5f044b419a5ed1ea (diff) | |
download | stwcs_hcf-7d3caf090ee2d975f5d314de3a9d4c89a1c0e9e5.tar.gz |
same for updatewcs
-rw-r--r-- | stwcs/updatewcs/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/stwcs/updatewcs/__init__.py b/stwcs/updatewcs/__init__.py index a59f106..fe1eea2 100644 --- a/stwcs/updatewcs/__init__.py +++ b/stwcs/updatewcs/__init__.py @@ -9,6 +9,8 @@ from .. import __version__ from astropy import wcs as pywcs import astropy +from astropy import log +default_log_level = log.getEffectiveLevel() from . import utils, corrections from . import npol, det2im @@ -210,7 +212,9 @@ def copyWCS(w, ehdr): WCS of the 'SCI' extension to the headers of 'ERR', 'DQ', 'SDQ', 'TIME' or 'SAMP' extensions. """ + log.setLevel('WARNING') hwcs = w.to_header() + log.setLevel(default_log_level) if w.wcs.has_cd(): wcsutil.pc2cd(hwcs) |