Runden der Kabel jetzt auf 5m Längen
This commit is contained in:
+1
-1
@@ -137,7 +137,7 @@ def write_excel_from_json(plines:Polylines, outpath:str):
|
|||||||
|
|
||||||
for pl in plines.kabel:
|
for pl in plines.kabel:
|
||||||
length = pl.length /1000 # Umrechnung von mm in m
|
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
|
length_summary[rounded_len] +=1
|
||||||
ws1.append([pl.id, length, int(rounded_len)])
|
ws1.append([pl.id, length, int(rounded_len)])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user