Skip to content
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

Condition in function vindareal looks suspicious #88

Open
staspika opened this issue Feb 19, 2019 · 1 comment
Open

Condition in function vindareal looks suspicious #88

staspika opened this issue Feb 19, 2019 · 1 comment
Assignees
Labels

Comments

@staspika
Copy link
Owner

staspika commented Feb 19, 2019

In mast.py (function vindareal), the following line looks suspicious: if self.navn == "H6" and x == 5.0 or 9.0:. Because of operator precedence, the condition is equivalent to if (((self.navn == "H6") and (x == 5.0)) or 9.0) and will always return true. What is the intended condition, @oscarborke and @G-W-h ? ;)

@staspika staspika added the bug label Feb 19, 2019
@staspika staspika self-assigned this Feb 19, 2019
@staspika
Copy link
Owner Author

Related to #52?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant