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.
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
andvalues
do not contain NaN values. Some additional tests are added to confirm correct behavior.