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

Add test of nans in inputs to wind data objects #1007

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

paulf81
Copy link
Collaborator

@paulf81 paulf81 commented Oct 21, 2024

Add tests of nans in inputs to wind data objects

Working with flasc, it's possible to generate data series where wind_directions or wind_speeds contain NaN values, in flasc this typically signifies missing or faulty data. However within the WindData objects in FLORIS, the presense of NaNs in certain inputs can yield ambiguous errors. Further, since inputs like wind_directions and wind_speeds within WindData objects will be used to drive FlorisModel simulations, containing NaN values will further generate additional errors at that point.

This pull request adds a check at inputs to of WindData objects that input arrays wind_directions, wind_speeds, turbulence_intensities and values do not contain NaN values. Some additional tests are added to confirm correct behavior.

@paulf81 paulf81 added the enhancement An improvement of an existing feature label Oct 21, 2024
@paulf81 paulf81 requested a review from misi9170 October 21, 2024 20:36
@paulf81 paulf81 self-assigned this Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement of an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant