Skip to content

Commit

Permalink
workaround PIL upstream issue
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettwrong committed Jul 1, 2021
1 parent d5f40b4 commit 61d959f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/aspire/apple/picking.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ def read_mrc(self):
size = tuple((np.array(im.shape) / config.apple.mrc_shrink_factor).astype(int))

# Note, float64 required for signal.correlate call accuracy.
im = np.array(Image.fromarray(im).resize(size, Image.BICUBIC), dtype=np.float64)
im = np.asarray(Image.fromarray(im).resize(size, Image.BICUBIC)).astype(
np.float64, copy=False
)

im = signal.correlate(
im,
Expand Down

0 comments on commit 61d959f

Please sign in to comment.