Skip to content

Commit

Permalink
remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
landmanbester committed Dec 11, 2024
1 parent 4263dcf commit 6de1e58
Show file tree
Hide file tree
Showing 30 changed files with 16 additions and 425 deletions.
79 changes: 0 additions & 79 deletions pfb/deconv/clean.py

This file was deleted.

238 changes: 0 additions & 238 deletions pfb/deconv/spotless.py

This file was deleted.

4 changes: 1 addition & 3 deletions pfb/operators/gridder.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@
import numba
import concurrent.futures as cf
import xarray as xr
import dask
import dask.array as da
from ducc0.wgridder.experimental import vis2dirty, dirty2vis
from ducc0.fft import c2r, r2c, c2c
from ducc0.fft import r2c
from ducc0.misc import resize_thread_pool
from africanus.constants import c as lightspeed
from pfb.utils.weighting import counts_to_weights, _compute_counts
from pfb.utils.beam import eval_beam
from pfb.utils.naming import xds_from_list
Expand Down
3 changes: 0 additions & 3 deletions pfb/operators/hessian.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
from functools import partial
import numpy as np
import numexpr as ne
import dask
import dask.array as da
from ducc0.wgridder.experimental import vis2dirty, dirty2vis
from ducc0.fft import r2c, c2r
from ducc0.misc import empty_noncritical
from uuid import uuid4
from pfb.operators.psf import (psf_convolve_slice,
psf_convolve_cube)
from pfb.opt.pcg import pcg
Expand Down
6 changes: 1 addition & 5 deletions pfb/operators/psf.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import numpy as np
import numexpr as ne
import dask.array as da
from uuid import uuid4
from ducc0.fft import r2c, c2r, c2c, good_size
from ducc0.misc import roll_resize_roll as rrr
from uuid import uuid4
import gc
from ducc0.fft import r2c, c2r


def psf_convolve_slice(
Expand Down
2 changes: 0 additions & 2 deletions pfb/operators/psi.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
from numba import types, typed
from numba.experimental import jitclass
import pywt
from scipy.datasets import ascent
from pfb.wavelets import coeff_size, signal_size, dwt2d, idwt2d, copyT
from time import time


@numba.njit
Expand Down
4 changes: 1 addition & 3 deletions pfb/opt/pcg.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@
import numexpr as ne
from functools import partial
import dask.array as da
from distributed import wait
from uuid import uuid4
from pfb.utils.misc import norm_diff, fitcleanbeam, Gaussian2D, taperf, JIT_OPTIONS
from pfb.utils.misc import norm_diff, JIT_OPTIONS
from pfb.utils.naming import xds_from_list
from ducc0.misc import empty_noncritical
from ducc0.fft import c2c
iFs = np.fft.ifftshift
Fs = np.fft.fftshift

Expand Down
Loading

0 comments on commit 6de1e58

Please sign in to comment.