-
Notifications
You must be signed in to change notification settings - Fork 110
Solve #69, error msg #87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
windpowerlib/wind_farm.py
Outdated
| "If you use `wake_losses_model` '{model}' your WindFarm " | ||
| "needs an efficiency but `efficiency` of {farm} is {eff}.") | ||
| raise ValueError(msg.format(model=wake_losses_model, farm=self, | ||
| eff=self.efficiency)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The output of farm is quite long and people may miss the rest of the message. Is it possible to change the order?
Something like this:
- "If you use `wake_losses_model` '{model}' your WindFarm "
- "needs an efficiency but `efficiency` of {farm} is {eff}.")
+ "If you use `wake_losses_model` '{model}' your WindFarm "
+ "needs an efficiency but `efficiency` is {eff}.\n\n"
+ "Failing farm:\n {farm}")There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, thanks!
|
I found another one of these messages.. nice to have when there is time: check for all messages. |
|
There was a merge conflict due to the stickler-PR I just merged but I fixed it. Sorry 😄 |
I would not fix it here but rather open a new issue and merge this. |
Addresses issue #69.