Skip to content

Commit 50eef11

Browse files
committed
Fixed issue #4
1 parent 2f905a5 commit 50eef11

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lineless_table_rec/lineless_table_process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def _gather(data: np.ndarray, dim: int, index: np.ndarray) -> np.ndarray:
273273
+ ", all dimensions of index and data should be the same size"
274274
)
275275

276-
if index.dtype != np.dtype("int_"):
276+
if index.dtype != np.int64:
277277
raise TypeError("The values of index must be integers")
278278

279279
data_swaped = np.swapaxes(data, 0, dim)

wired_table_rec/utils_table_line_rec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def _gather_np(data, dim, index):
156156
+ ", all dimensions of index and data should be the same size"
157157
)
158158

159-
if index.dtype != np.dtype("int_"):
159+
if index.dtype != np.int64:
160160
raise TypeError("The values of index must be integers")
161161

162162
data_swaped = np.swapaxes(data, 0, dim)

0 commit comments

Comments
 (0)