Skip to content

Multiprocessing compatible

Ju Feng requested to merge multiprocessing_compitable into master

In the original code of wind_turbines.py, there are lambda functions generated and attached to the power and ct function, this causes AttributeError: Can't pickle local object 'WindTurbines.from_WAsP_wtg..' in certain scenarios when using multiprocessing. These are replaced by scipy.interpolate.interp1d.

The error message looks like follows: image

Merge request reports

Loading