From d759b0333b1ed2fa6f365cb1d188f3b7d5038c0f Mon Sep 17 00:00:00 2001 From: Felix Zimmermann Date: Mon, 31 May 2021 17:36:28 -0700 Subject: [PATCH] fix numba typing error --- idi/reconstruction/cucor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idi/reconstruction/cucor.py b/idi/reconstruction/cucor.py index 1267759..71fa211 100644 --- a/idi/reconstruction/cucor.py +++ b/idi/reconstruction/cucor.py @@ -44,7 +44,7 @@ def corrfunction(shape, z, maxq, xcenter=None, ycenter=None): d = _np.sqrt(x ** 2 + y ** 2 + z ** 2) zd = _np.array((z / d), _np.float32, order="C") maxdqz = _numba.int32(math.ceil(z * (_np.max(zd) - _np.min(zd)))) | 1 - cz = _numba.float32(z) + cz = _numba.float32(float(z)) with stream.auto_synchronize(): dzd = _numba.cuda.to_device(zd, stream)