Skip to content

Conversation

@surgura
Copy link
Contributor

@surgura surgura commented Aug 7, 2024

verified when checking the waypoints, not during simulation

closes #25

@surgura surgura marked this pull request as ready for review August 7, 2024 10:20
Comment on lines 449 to 456
land_waypoints = [
(wp_i, wp)
for wp_i, wp in enumerate(waypoints)
if fieldset.UV.eval(
0, 0, wp.location.lat, wp.location.lon, applyConversion=False
)
== (0.0, 0.0)
]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make this a more general method, so that someone could later change the way in which landpoints are defined (e.g. through a mask-array, instead of zero-velocity condition)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see update

@surgura surgura requested a review from erikvansebille August 10, 2024 23:15
@surgura surgura merged commit b14530b into development Aug 12, 2024
@surgura surgura deleted the sail_on_land branch August 12, 2024 16:00
surgura added a commit that referenced this pull request Aug 18, 2024
* verify waypoints are on water

* Make zero uv on land check a function

* add test for sailship verify

* comments
VeckoTheGecko pushed a commit that referenced this pull request Sep 25, 2024
* verify waypoints are on water

* Make zero uv on land check a function

* add test for sailship verify

* comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants