Skip to content
Snippets Groups Projects
Commit edccd939 authored by Mikkel Friis-Møller's avatar Mikkel Friis-Møller Committed by Mads M. Pedersen
Browse files

sort wd or you get negative prob. distr.

parent f96bb66f
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,8 @@ class WindFarmModel(ABC):
-------
SimulationResult
"""
if time is False and np.ndim(wd):
wd = np.sort(wd)
assert len(x) == len(y)
self.verbose = verbose
h, _ = self.windTurbines.get_defaults(len(x), type, h)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment