Skip to content

Commit 406e341

Browse files
committed
tox cleanup
[skip ci]
1 parent f170873 commit 406e341

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

src/aspire/image/image.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,7 @@ def downsample(self, ds_res):
361361
# crop 2D Fourier transform for each image
362362
crop_fx = crop_pad_2d(fx, ds_res)
363363
# take back to real space, discard complex part, and scale
364-
out = fft.centered_ifft2(crop_fx).real * (
365-
ds_res**2 / self.resolution**2
366-
)
364+
out = fft.centered_ifft2(crop_fx).real * (ds_res**2 / self.resolution**2)
367365
out = xp.asnumpy(out)
368366

369367
return self.__class__(out).stack_reshape(original_stack_shape)

src/aspire/utils/coor_trans.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def crop_pad_2d(im, size, fill_value=0):
386386
elif size >= max(im_y, im_x):
387387
# Determine shape
388388
shape = list(im.shape[:-2])
389-
shape.extend([size,size])
389+
shape.extend([size, size])
390390
# ensure that we return in the same dtype as the input
391391
to_return = xp.full(shape, fill_value, dtype=im.dtype)
392392
# when padding, start_x and start_y are negative since size is larger

tests/test_numeric_sparse.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,3 @@ def test_eigsh(backends):
5151

5252
lamb, _ = sparse.linalg.eigsh(A)
5353
np.testing.assert_allclose(xp.asnumpy(lamb), 1.0)
54-
print(lamb)

0 commit comments

Comments
 (0)