Skip to content

Commit

Permalink
make compatible with numpy>=2 (#2282)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdeelH authored Nov 27, 2024
1 parent df76d1f commit e777796
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def get_kernel(rectangle: RotatedRectange,
element_rect: RotatedRectange = (pos, dim, angle)
element_contour = cv2.boxPoints(box=element_rect)
# https://stackoverflow.com/questions/48350693/what-is-numpy-method-int0
element_contour = np.int0(element_contour)
element_contour = np.intp(element_contour)

cv2.drawContours(
image=kernel,
Expand Down
2 changes: 1 addition & 1 deletion rastervision_core/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ tqdm==4.66.5
xarray==2024.7.0
scikit-image==0.24.0
boto3==1.34.155
stackstac==0.5.0
stackstac==0.5.1
humanize==4.10.0
triangle==20230923

0 comments on commit e777796

Please sign in to comment.