Skip to content

Conversation

@SabineHaas
Copy link
Member

Addresses issue #69.

@SabineHaas SabineHaas requested review from birgits and uvchik December 5, 2019 13:53
"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))
Copy link
Member

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}")

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, thanks!

@uvchik uvchik added this to the v0.2.1 milestone Dec 9, 2019
@SabineHaas
Copy link
Member Author

I found another one of these messages.. nice to have when there is time: check for all messages.

@uvchik
Copy link
Member

uvchik commented Jan 8, 2020

There was a merge conflict due to the stickler-PR I just merged but I fixed it. Sorry 😄

@uvchik
Copy link
Member

uvchik commented Jan 8, 2020

I found another one of these messages.. nice to have when there is time: check for all messages.

I would not fix it here but rather open a new issue and merge this.

@uvchik uvchik self-requested a review January 8, 2020 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants