Skip to content

Commit

Permalink
add numpy deprecation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felixT2K committed Jul 10, 2023
1 parent ac5edc2 commit b70de51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/common/test_utils_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def test_extract_rcrops(mock_pdf): # noqa: F811
abs_boxes = deepcopy(rel_boxes)
abs_boxes[:, :, 0] *= doc_img.shape[1]
abs_boxes[:, :, 1] *= doc_img.shape[0]
abs_boxes = abs_boxes.astype(np.int)
abs_boxes = abs_boxes.astype(np.int64)

with pytest.raises(AssertionError):
geometry.extract_rcrops(doc_img, np.zeros((1, 8)))
Expand Down

0 comments on commit b70de51

Please sign in to comment.