Skip to content

Commit 0e85f55

Browse files
committed
Added compatibility with Numpy 2
1 parent 790d1d4 commit 0e85f55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frites/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# Int and Float types
1515
INT_DTYPE = (int, np.int8, np.int16, np.int32, np.int64)
1616
FLOAT_DTYPE = (float, np.float16, np.float32, np.float64)
17-
STR_DTYPE = (str, np.string_)
17+
STR_DTYPE = (str, np.bytes_)
1818
CONFIG['INT_DTYPE'] = INT_DTYPE
1919
CONFIG['FLOAT_DTYPE'] = FLOAT_DTYPE
2020
CONFIG['STR_DTYPE'] = STR_DTYPE

0 commit comments

Comments
 (0)