From f65222f59766b10b6fd6c346bd315aa7148ee96e Mon Sep 17 00:00:00 2001 From: Unknown Date: Mon, 3 Aug 2020 12:18:25 -0400 Subject: [PATCH] Round vertex to 2 decimals (cm) --- translater/trnsys.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/translater/trnsys.py b/translater/trnsys.py index f937190..5a2717f 100644 --- a/translater/trnsys.py +++ b/translater/trnsys.py @@ -1778,7 +1778,7 @@ def _write_zone_buildingSurf_fenestrationSurf( # surface _relative_to_absolute(fenestrationSurf, incrX, incrY, incrZ) - # Round vertex to 4 decimal digit max + # Round vertex to 2 decimal digit max _round_vertex(fenestrationSurf) # Polygon from vector's window surface @@ -1860,7 +1860,7 @@ def _write_zone_buildingSurf_fenestrationSurf( ) raise NotImplementedError(msg) - # Round vertex to 4 decimal digit max + # Round vertex to 2 decimal digit max _round_vertex(buildingSurf) # Makes sure idf object key is not all upper string @@ -1968,7 +1968,7 @@ def _inverse_vertices_surf(buildingSurf, idf, outside_bound_surf, idfobject_key) ] = buildingSurf["Vertex_" + str(k) + "_Zcoordinate"] -def _round_vertex(surface, nbr_decimal=4): +def _round_vertex(surface, nbr_decimal=2): """Round vertex to the number of decimal (nbr_decimal) wanted Args: