Skip to content

Commit 18294c4

Browse files
committed
Fix deprecated bool8 usage
1 parent c4bfeb6 commit 18294c4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/scyjava/_convert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ def _jarray_to_ndarray(jarr):
708708
element_type = _jarray_element_type(jarr)
709709
# fmt: off
710710
jarraytype_map = {
711-
JBoolean: np.bool8,
711+
JBoolean: np.bool_,
712712
JByte: np.int8,
713713
# JChar: np.???,
714714
JDouble: np.float64,

tests/test_pandas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def testTabletoPandas(self):
117117

118118
assert_same_table(table, df)
119119
for col in df.columns:
120-
assert df.dtypes[col] == np.bool8
120+
assert df.dtypes[col] == np.bool_
121121

122122
# Mixed table
123123
table = jimport("org.scijava.table.DefaultGenericTable")()

0 commit comments

Comments
 (0)