-
I tried calculating the farm AEP with a wind rose by using get_farm_AEP_wind_rose_class, but I get the following error message:
It is about these lines:
It looks like df is defined nowhere. How can I fix this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
hi @JarneVB, I would like to help. Just to check something quickly, do you get this error if you run the example script: 08_calc_aep_from_rose_use_class.py ? |
Beta Was this translation helpful? Give feedback.
-
Would it be possible for you to post a minimal version of the script that produces the error? I'd be happy to debug |
Beta Was this translation helpful? Give feedback.
Hi! Ok, I think there is an issue in our code, the function make_wind_rose_from_weibull() both returns a dataframe, and updates the member dataframe of the WindRose class. We have a TODO item to remove the redundant return which I'll convert into an issue now. In the meanwhile, this code works for me (ignoring the returned df and using the updated wind_rose object)