Skip to content

Condition in function vindareal looks suspicious #88

@staspika

Description

@staspika

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 ? ;)

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions