Skip to content

Commit

Permalink
release-script: Merge branch 'release/v1.13.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
aoeftiger committed Jul 5, 2019
2 parents bfb793e + 70dcb2e commit 63a7235
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion PyHEADTAIL/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.13.1'
__version__ = '1.13.2'
6 changes: 3 additions & 3 deletions PyHEADTAIL/aperture/aperture.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import numpy as np

def make_int32(array):
# return np.array(array, dtype=np.int32)
return array.astype(np.int32)


Expand Down Expand Up @@ -89,8 +88,9 @@ def relocate_lost_particles(beam, alive):

beam.reorder(perm)

n_alive = make_int32(pm.sum(alive))
return n_alive
# on CPU: (even if pm.device == 'GPU', as pm.sum returns np.ndarray)
n_alive = pm.sum(alive)
return np.int32(n_alive)


class RectangularApertureX(Aperture):
Expand Down

0 comments on commit 63a7235

Please sign in to comment.