diff options
Diffstat (limited to 'updatewcs')
-rw-r--r-- | updatewcs/__init__.py | 2 | ||||
-rw-r--r-- | updatewcs/apply_corrections.py | 2 | ||||
-rw-r--r-- | updatewcs/corrections.py | 2 | ||||
-rw-r--r-- | updatewcs/det2im.py | 2 | ||||
-rw-r--r-- | updatewcs/dgeo.py | 4 | ||||
-rw-r--r-- | updatewcs/makewcs.py | 2 |
6 files changed, 13 insertions, 1 deletions
diff --git a/updatewcs/__init__.py b/updatewcs/__init__.py index 71987e7..26834db 100644 --- a/updatewcs/__init__.py +++ b/updatewcs/__init__.py @@ -1,3 +1,5 @@ +from __future__ import division # confidence high + import os import pyfits from stwcs.wcsutil import HSTWCS diff --git a/updatewcs/apply_corrections.py b/updatewcs/apply_corrections.py index ef07c68..8e9cef7 100644 --- a/updatewcs/apply_corrections.py +++ b/updatewcs/apply_corrections.py @@ -1,3 +1,5 @@ +from __future__ import division # confidence high + import os import pyfits import time diff --git a/updatewcs/corrections.py b/updatewcs/corrections.py index c5be8c3..6709664 100644 --- a/updatewcs/corrections.py +++ b/updatewcs/corrections.py @@ -1,3 +1,5 @@ +from __future__ import division # confidence high + import datetime import numpy from numpy import linalg diff --git a/updatewcs/det2im.py b/updatewcs/det2im.py index da898d2..9009317 100644 --- a/updatewcs/det2im.py +++ b/updatewcs/det2im.py @@ -1,3 +1,5 @@ +from __future__ import division # confidence high + import pyfits from pytools import fileutil from stwcs import utils diff --git a/updatewcs/dgeo.py b/updatewcs/dgeo.py index 9242a11..bed3191 100644 --- a/updatewcs/dgeo.py +++ b/updatewcs/dgeo.py @@ -1,3 +1,5 @@ +from __future__ import division # confidence high + import pyfits from pytools import fileutil from stwcs import utils @@ -128,7 +130,7 @@ class DGEOCorr(object): values = {cperror: 0.0, cpdis: 'Lookup', dpext: wdvarr_ver, dpnaxes: 2, dpaxis1: 1, dpaxis2: 2} - comments = {cperror: 'Maximum error of dgeo correction for axis %s' % (wdvarr_ver/2), + comments = {cperror: 'Maximum error of dgeo correction for axis %s' % (wdvarr_ver//2 + 1), cpdis: 'Prior distortion funcion type', dpext: 'Version number of WCSDVARR extension containing lookup distortion table', dpnaxes: 'Number of independent variables in distortion function', diff --git a/updatewcs/makewcs.py b/updatewcs/makewcs.py index 2e82bac..b455640 100644 --- a/updatewcs/makewcs.py +++ b/updatewcs/makewcs.py @@ -1,3 +1,5 @@ +from __future__ import division # confidence high + from stwcs import DEGTORAD, RADTODEG import numpy as np from math import sin, sqrt, pow, cos, asin, atan2,pi |