From b1f15b8fd69da0b4f66fbedeb83ec5f6c90db5cd Mon Sep 17 00:00:00 2001 From: Igor Tatarnikov <61896994+IgorTatarnikov@users.noreply.github.com> Date: Mon, 24 Jun 2024 15:23:08 +0100 Subject: [PATCH] Changed np.float_ to np.float64 for numpy 2.0 (#85) --- brainglobe_utils/cells/cells.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brainglobe_utils/cells/cells.py b/brainglobe_utils/cells/cells.py index 2062d0c..0ffa3a6 100644 --- a/brainglobe_utils/cells/cells.py +++ b/brainglobe_utils/cells/cells.py @@ -408,7 +408,7 @@ def to_numpy_pos( n = len(cells) if cell_type is not None: n = sum([cell.type == cell_type for cell in cells]) - np_cells = np.empty((n, 3), dtype=np.float_) + np_cells = np.empty((n, 3), dtype=np.float64) i = 0 for cell in cells: @@ -728,7 +728,7 @@ def _optimize_pairs( potentials_rows = np.zeros(n_rows) potentials_cols = np.zeros(n_cols + 1) assignment_row = np.full(n_cols + 1, -1, dtype=np.int_) - min_to = np.empty(n_cols + 1, dtype=np.float_) + min_to = np.empty(n_cols + 1, dtype=np.float64) # previous worker on alternating path prev_col_for_col = np.empty(n_cols + 1, dtype=np.int_) # whether col is in use