From bd4f37e3ff034c690b4de7236feb00612154041b Mon Sep 17 00:00:00 2001 From: Tammo Jan Dijkema Date: Tue, 2 Sep 2025 12:57:24 +0200 Subject: [PATCH] Remove unused imports Supersedes #249 --- bdsf/opts.py | 2 +- bdsf/polarisation.py | 1 - bdsf/preprocess.py | 3 +-- bdsf/psf_vary.py | 4 ---- bdsf/rmsimage.py | 2 +- bdsf/statusbar.py | 1 - bdsf/threshold.py | 2 +- 7 files changed, 4 insertions(+), 11 deletions(-) diff --git a/bdsf/opts.py b/bdsf/opts.py index 7e9f4285..e1a67636 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 e1eda7e0..a3d28642 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 b5cfd617..25ca97ad 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 6343ceba..1c3d99d3 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 e73567e4..2b70589e 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 56d676a8..c9cbe17f 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 b27d50fb..c4fcfc43 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