Skip to content

GHE dimensions sometimes give errors on shape when they shouldn't #655

@vtnate

Description

@vtnate

Expected Behavior

This calculation should return a value above zero for any rectangle.

discriminant = perimeter**2 - 16 * area

Actual Behavior

Creating something close to square in the internal UI gives values that trigger the ValueError in the code above.

If a geojson specifies a GHE with area=10277 and perimeter=404, the result is below zero:
404 ^2 = 163,216
16 * 10277 = 164,432

Steps to Reproduce

Version Information

Modelica Buildings Library: X.Y.Z
Modelica Standard Library: X.Y.Z
TEASER: X.Y.Z
Python: X.Y.Z

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions