Skip to content

Unknown df in get_farm_AEP_wind_rose_class #529

Answered by paulf81
JarneVB asked this question in Q&A
Discussion options

You must be logged in to vote

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)

from floris.tools.floris_interface import FlorisInterface 
from floris.tools import FlorisInterface, WindRose

D = 112
X_farm = [1*D, 10*D, 20*D]
Y_farm = [1*D, 10*D, 20*D]

fi_weibull_jensen = FlorisInterface("inputs/jensen.yaml")
fi_weibull_jensen.reinitialize(layout_x=X_farm, layout_y=Y_farm)

wind_rose = WindRose()
_ =  win…

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
1 reply
@JarneVB
Comment options

Comment options

You must be logged in to vote
9 replies
@JarneVB
Comment options

@paulf81
Comment options

Answer selected by rafmudaf
@JarneVB
Comment options

@JarneVB
Comment options

@paulf81
Comment options

@paulf81
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants