Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numpy 2.0 compliance #85

Merged
merged 1 commit into from
Jun 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
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 @@
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)

Check warning on line 731 in brainglobe_utils/cells/cells.py

View check run for this annotation

Codecov / codecov/patch

brainglobe_utils/cells/cells.py#L731

Added line #L731 was not covered by tests
# previous worker on alternating path
prev_col_for_col = np.empty(n_cols + 1, dtype=np.int_)
# whether col is in use
Expand Down
Loading