Skip to content

Commit e0bb2e0

Browse files
author
Daniel Asarnow
committed
Remove skimage dep from disparticle.py
1 parent 81d488a commit e0bb2e0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎pyem/cli/disparticle.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import pyfftw.interfaces.numpy_fft as fft
2525
import scipy.ndimage as ndi
2626
import seaborn as sns
27-
import skimage as ski
2827
import sys
2928
from pyem import ctf
3029
from pyem import mrc
@@ -86,7 +85,7 @@ def main(args):
8685
gL = np.real(fft.irfft2(GL))
8786
g = gL / gH
8887
p2, p98 = np.percentile(g, [4, 98])
89-
g = ski.exposure.rescale_intensity(g, in_range=(p2, p98))
88+
g = np.clip(g, p2, p98)
9089
else:
9190
g = np.real(fft.irfft2(I))
9291
g = g[:, ::-1].T

0 commit comments

Comments
 (0)