Skip to content

Solve #69, error msg - #87

Merged
SabineHaas merged 8 commits into
devfrom
error_message_issue_69
Jan 21, 2020
Merged

Solve #69, error msg#87
SabineHaas merged 8 commits into
devfrom
error_message_issue_69

Conversation

@SabineHaas

Copy link
Copy Markdown
Member

Addresses issue #69.

Comment threadwindpowerlib/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))

Copy link
Copy Markdown
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
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Good point, thanks!

@uvchikuvchik added this to the v0.2.1 milestone Dec 9, 2019
@SabineHaas

Copy link
Copy Markdown
MemberAuthor

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

@uvchik

Copy link
Copy Markdown
Member

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

@uvchik

Copy link
Copy Markdown
Member

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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@SabineHaas@uvchik@stickler-ci