diff --git a/bdsf/opts.py b/bdsf/opts.py index 7e9f428..e1a6763 100644 --- a/bdsf/opts.py +++ b/bdsf/opts.py @@ -34,7 +34,7 @@ class Op_new_op(Op): from __future__ import absolute_import from .tc import Int, Float, Bool, String, Tuple, Enum, \ - Option, NArray, Instance, tInstance, List, Any, TCInit, tcError + Option, tInstance, List, TCInit, tcError try: # For Python 2 diff --git a/bdsf/polarisation.py b/bdsf/polarisation.py index e1eda7e..a3d2864 100644 --- a/bdsf/polarisation.py +++ b/bdsf/polarisation.py @@ -18,7 +18,6 @@ from .gausfit import Op_gausfit from .gaul2srl import Op_gaul2srl from .make_residimage import Op_make_residimage -from .const import fwsig from . import mylogger import numpy as N from . import functions as func diff --git a/bdsf/preprocess.py b/bdsf/preprocess.py index b5cfd61..25ca97a 100644 --- a/bdsf/preprocess.py +++ b/bdsf/preprocess.py @@ -8,8 +8,7 @@ import numpy as N from . import _cbdsm from .image import * -from math import pi, sqrt, log -from . import const +from math import pi from . import functions as func from . import mylogger diff --git a/bdsf/psf_vary.py b/bdsf/psf_vary.py index 6343ceb..1c3d99d 100644 --- a/bdsf/psf_vary.py +++ b/bdsf/psf_vary.py @@ -2,15 +2,11 @@ from __future__ import absolute_import import numpy as N -from astropy.io import fits as pyfits from .image import * from . import mylogger -from copy import deepcopy as cp from . import has_pl if has_pl: import matplotlib.pyplot as pl -import scipy -import scipy.signal as S from . import _cbdsm from . import functions as func from . import _pytesselate as _pytess diff --git a/bdsf/rmsimage.py b/bdsf/rmsimage.py index e73567e..2b70589 100644 --- a/bdsf/rmsimage.py +++ b/bdsf/rmsimage.py @@ -12,7 +12,7 @@ import numpy as N import scipy.ndimage as nd from . import _cbdsm -from .image import Op, Image, NArray, List +from .image import Op from . import const from . import mylogger import os diff --git a/bdsf/statusbar.py b/bdsf/statusbar.py index 56d676a..c9cbe17 100644 --- a/bdsf/statusbar.py +++ b/bdsf/statusbar.py @@ -1,7 +1,6 @@ """Display an animated statusbar""" from __future__ import absolute_import import sys -import os from . import functions as func class StatusBar(): diff --git a/bdsf/threshold.py b/bdsf/threshold.py index b27d50f..c4fcfc4 100644 --- a/bdsf/threshold.py +++ b/bdsf/threshold.py @@ -13,7 +13,7 @@ from __future__ import absolute_import import numpy as N -from .image import Op, Image, NArray +from .image import Op from math import sqrt,pi,log from scipy.special import erfc from . import const