- foxes.models.turbine_models.Calculator(in_vars, out_vars, func, **kwargs)[source]
Constructor.
Parameters¶
- in_vars: list of str
The input farm variables
- out_vars: list of str
The output variables
- func: Function
The function: f(in0, in1, …, stsel) -> (out0, out1, …) where inX and outY are numpy.ndarrays and st_sel is the state-turbine selection slice or array. All arrays have shape (n_states, n_turbines).
- kwargs: dict, optional
Additional arguments for TurbineModel