Skip to content

Commit

Permalink
Trying again with int fix for registration
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-brett committed Oct 3, 2024
1 parent 934515f commit 2de7140
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nipy/algorithms/registration/histogram_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from .optimizer import configure_optimizer
from .similarity_measures import similarity_measures as _sms

MAX_INT = np.iinfo(np.int_).max
MAX_INTC = np.iinfo(np.intc).max

# Module globals
VERBOSE = True # enables online print statements
Expand Down Expand Up @@ -310,7 +310,7 @@ def _eval(self, Tv):
trans_vox_coords = Tv.apply(self._vox_coords)
interp = self._interp
if self._interp < 0:
interp = -self.rng.integers(MAX_INT)
interp = -self.rng.integers(MAX_INTC)
_joint_histogram(self._joint_hist,
self._from_data.flat, # array iterator
self._to_data,
Expand Down

0 comments on commit 2de7140

Please sign in to comment.