Skip to content

Commit

Permalink
fix numba typing error
Browse files Browse the repository at this point in the history
  • Loading branch information
fzimmermann89 committed Jun 1, 2021
1 parent 5f31438 commit d759b03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion idi/reconstruction/cucor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d759b03

Please sign in to comment.