Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: fix Wuhan crash #151

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions neatnet/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,7 @@ def _rotate_loop_coords(
loop_points.geometry, predicate="dwithin", distance=1e-4
)

_shared_node = loop_points.loc[loop_points_ix].geometry.get_coordinates().values
new_start = np.unique(_shared_node, axis=0)
new_start = loop_points.loc[loop_points_ix].geometry.mode().get_coordinates().values
_coords_match = (loop_coords == new_start).all(axis=1)
new_start_idx = np.where(_coords_match)[0].squeeze()

Expand Down
Loading