Skip to content

Commit

Permalink
Changed np.float_ to np.float64 for numpy 2.0 (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov authored Jun 24, 2024
1 parent 9f87ec1 commit b1f15b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions brainglobe_utils/cells/cells.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b1f15b8

Please sign in to comment.