Skip to content

Commit

Permalink
Fixed issue #4
Browse files Browse the repository at this point in the history
  • Loading branch information
SWHL committed Dec 13, 2023
1 parent 2f905a5 commit 50eef11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lineless_table_rec/lineless_table_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def _gather(data: np.ndarray, dim: int, index: np.ndarray) -> np.ndarray:
+ ", all dimensions of index and data should be the same size"
)

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

data_swaped = np.swapaxes(data, 0, dim)
Expand Down
2 changes: 1 addition & 1 deletion wired_table_rec/utils_table_line_rec.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def _gather_np(data, dim, index):
+ ", all dimensions of index and data should be the same size"
)

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

data_swaped = np.swapaxes(data, 0, dim)
Expand Down

0 comments on commit 50eef11

Please sign in to comment.