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

Force type to int in power and ct

parent 56a6e8dd
No related branches found
No related tags found
No related merge requests found
...@@ -123,7 +123,8 @@ class WindTurbines(): ...@@ -123,7 +123,8 @@ class WindTurbines():
t = np.unique(type_i) # .astype(int) t = np.unique(type_i) # .astype(int)
if len(t) > 1: if len(t) > 1:
if type_i.shape != ws_i.shape: if type_i.shape != ws_i.shape:
type_i = (np.zeros(ws_i.shape[0]) + type_i).astype(int) type_i = (np.zeros(ws_i.shape[0]) + type_i)
type_i = type_i.astype(int)
CT = np.array([self.ct_funcs[t](ws) for t, ws in zip(type_i, ws_i)]) CT = np.array([self.ct_funcs[t](ws) for t, ws in zip(type_i, ws_i)])
P = np.array([self.power_funcs[t](ws) for t, ws in zip(type_i, ws_i)]) P = np.array([self.power_funcs[t](ws) for t, ws in zip(type_i, ws_i)])
return CT, P return CT, P
......
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