Runden der Kabel jetzt auf 5m Längen

This commit is contained in:
2025-06-05 15:58:29 +02:00
parent a3656faf6d
commit a0e7fdfa5b
+1 -1
View File
@@ -137,7 +137,7 @@ def write_excel_from_json(plines:Polylines, outpath:str):
for pl in plines.kabel:
length = pl.length /1000 # Umrechnung von mm in m
rounded_len = math.ceil(length/10)*10
rounded_len = math.ceil(length/5)*5
length_summary[rounded_len] +=1
ws1.append([pl.id, length, int(rounded_len)])