Skip to content

Commit

Permalink
🐛 switch lon/lat in haversine call
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderHulst committed Aug 31, 2023
1 parent d3a40d2 commit 25915f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adcircpy/mesh/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def node_distances_in_meters(self):
for idx in v:
x1, y1 = points.iloc[idx].values
self._node_distances_in_meters[k][idx] = haversine(
(x0, y0), (x1, y1), unit=Unit.METERS
(y0, x0), (y1, x1), unit=Unit.METERS
)
return self._node_distances_in_meters

Expand Down

0 comments on commit 25915f2

Please sign in to comment.