Unable to import Bastankhah_PorteAgel_2014 from py_wake.literature.gaussian_models
This is the code:
from tqdm.notebook import tqdm
from py_wake.utils import layouts
from py_wake.utils.profiling import timeit, profileit
from py_wake.examples.data.hornsrev1 import Hornsrev1Site, V80
from py_wake.literature.gaussian_models import Bastankhah_PorteAgel_2014
from py_wake.utils.plotting import setup_plot
xr.set_options(display_expand_data=False)
site = Hornsrev1Site()
x, y = site.initial_position.T
windTurbines = V80()
wf_model = Bastankhah_PorteAgel_2014(site, windTurbines, k=0.0324555)
#this allows you to see what type of engineering models you are simulating
print(wf_model)
This is the error:
ModuleNotFoundError Traceback (most recent call last)
Cell In[43], line 8
6 from py_wake.utils.profiling import timeit, profileit
7 from py_wake.examples.data.hornsrev1 import Hornsrev1Site, V80
----> 8 from py_wake.literature.gaussian_models import Bastankhah_PorteAgel_2014
9 from py_wake.utils.plotting import setup_plot
10 xr.set_options(display_expand_data=False)
ModuleNotFoundError: No module named 'py_wake.literature.gaussian_models'
I tried to installed it using pip install py_wake.literature.gaussian_models but getting below error:
Note: you may need to restart the kernel to use updated packages.
ERROR: Could not find a version that satisfies the requirement py_wake.literature.gaussian_models (from versions: none)
ERROR: No matching distribution found for py_wake.literature.gaussian_models
Edited by Mads M. Pedersen