From 7d3caf090ee2d975f5d314de3a9d4c89a1c0e9e5 Mon Sep 17 00:00:00 2001 From: Nadia Dencheva Date: Sun, 14 Aug 2016 11:51:22 -0400 Subject: same for updatewcs --- stwcs/updatewcs/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'stwcs/updatewcs/__init__.py') 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) -- cgit