Skip to content

Commit

Permalink
Merge pull request #101 from tallarium/misc-fixes
Browse files Browse the repository at this point in the history
ensure bbox_hat has right dimensions
  • Loading branch information
mdbartos authored Aug 12, 2023
2 parents 8175353 + 1fffbee commit 1795a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rrcf/rrcf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,7 @@ def _insert_point_cut(self, point, bbox):
(0, 0.9758881798109296)
"""
# Generate the bounding box
bbox_hat = np.empty(bbox.shape)
bbox_hat = np.empty((2, bbox.shape[1]))
# Update the bounding box based on the internal point
bbox_hat[0, :] = np.minimum(bbox[0, :], point)
bbox_hat[-1, :] = np.maximum(bbox[-1, :], point)
Expand Down

0 comments on commit 1795a1b

Please sign in to comment.