Skip to content

Commit 11c8000

Browse files
committed
🐛 fix deprecation of np.int
1 parent b3bd7ba commit 11c8000

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ pip install git+https://github.com/vanandrew/brainextractor@main
2727
pip install /path/to/local/repo
2828
```
2929

30-
> **__NOTE:__** It is recommended to use `brainextractor` on **Python 3.7+**
30+
> **__NOTE:__** It is recommended to use `brainextractor` on **Python 3.7** and above.
3131
3232
## Usage
3333

34-
To extract a brain mask from a image, you can call:
34+
To extract a brain mask from an image, you can call:
3535

3636
```
3737
# basic usage

brainextractor/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import numpy as np
77
import nibabel as nib
88
import trimesh
9-
from numba import jit, prange
9+
from numba import jit
1010
from numba.typed import List
1111
from .helpers import sphere, closest_integer_point, bresenham3d, l2norm, l2normarray, diagonal_dot
1212

@@ -107,7 +107,7 @@ def __init__(
107107
self.faces = np.array(self.surface.faces)
108108
self.vertex_neighbors_idx = List([np.array(i) for i in self.surface.vertex_neighbors])
109109
# compute location of vertices in face array
110-
self.face_vertex_idxs = np.zeros((self.num_vertices, 6, 2), dtype=np.int)
110+
self.face_vertex_idxs = np.zeros((self.num_vertices, 6, 2), dtype=np.int64)
111111
for v in range(self.num_vertices):
112112
f, i = np.asarray(self.faces == v).nonzero()
113113
self.face_vertex_idxs[v, : i.shape[0], 0] = f

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ classifiers = [
2222
"Topic :: Scientific/Engineering :: Image Processing",
2323
]
2424
urls = { github = "https://github.com/vanandrew/brainextractor" }
25-
version = "0.2.1"
25+
version = "0.2.2"
2626
dynamic = ["entry-points"]
2727
dependencies = [
2828
"numba >= 0.51.2",

0 commit comments

Comments
 (0)