Skip to content
Snippets Groups Projects
Commit 1647aaf2 authored by Mads M. Pedersen's avatar Mads M. Pedersen
Browse files

Update wind_farm_model.py

parent 806d3c82
No related branches found
No related tags found
No related merge requests found
...@@ -48,7 +48,7 @@ class WindFarmModel(ABC): ...@@ -48,7 +48,7 @@ class WindFarmModel(ABC):
self.verbose = verbose self.verbose = verbose
h, _ = self.windTurbines.get_defaults(len(x), type, h) h, _ = self.windTurbines.get_defaults(len(x), type, h)
I, L, K, = len(x), len(np.atleast_1d(wd)), (1, len(np.atleast_1d(ws)))[time is False] I, L, K, = len(x), len(np.atleast_1d(wd)), (1, len(np.atleast_1d(ws)))[time is False]
if len([k for k in kwargs if 'yaw' in k.lower() and k != 'yaw']): if len([k for k in kwargs if 'yaw' in k.lower() and k != 'yaw' and not k.startswith('yawc_')]):
raise ValueError( raise ValueError(
'Custom *yaw*-keyword arguments not allowed to avoid confusion with the default "yaw" keyword') 'Custom *yaw*-keyword arguments not allowed to avoid confusion with the default "yaw" keyword')
yaw_ilk = fix_shape(yaw, (I, L, K), allow_None=True) yaw_ilk = fix_shape(yaw, (I, L, K), allow_None=True)
......
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