Compare commits

...

2 Commits

2 changed files with 42 additions and 43 deletions
+39 -39
View File
@@ -1,62 +1,62 @@
# Kabel für die Motoren
[MA]
100=725000015
100.0=725000015
# Kabel für die Ventile
[WD_Q]
# Länge in m zu Sivaseintrag
1=722001300
2=722001301
1.0=722001300
2.0=722001301
2.5=722001308
3=722001302
5=722001303
10=722001304
15=722001305
20=722001306
25=722001307
30=722001309
35=722001310
40=722001311
50=722001312
3.0=722001302
5.0=722001303
10.0=722001304
15.0=722001305
20.0=722001306
25.0=722001307
30.0=722001309
35.0=722001310
40.0=722001311
50.0=722001312
# Kabel für Default Sensoren
[WD_I]
1=722001330
2=722001331
1.0=722001330
2.0=722001331
2.5=722001338
3=722001332
5=722001333
10=722001334
15=722001335
20=722001336
25=722001337
30=722001339
35=722001340
40=722001341
50=722001342
3.0=722001332
5.0=722001333
10.0=722001334
15.0=722001335
20.0=722001336
25.0=722001337
30.0=722001339
35.0=722001340
40.0=722001341
50.0=722001342
# Kabel für Sensor 829422026
[WD_I-829422026]
2.5=722001358
3=722001352
5=722001353
10=722001354
15=722001355
20=722001356
30=722001357
40=722001359
3.0=722001352
5.0=722001353
10.0=722001354
15.0=722001355
20.0=722001356
30.0=722001357
40.0=722001359
# Kabel für Sensor 720002003
[WD_I-720002003]
2.5=722001358
3=722001352
5=722001353
10=722001354
15=722001355
20=722001356
30=722001357
40=722001359
3.0=722001352
5.0=722001353
10.0=722001354
15.0=722001355
20.0=722001356
30.0=722001357
40.0=722001359
# Bezeichner jeder Verbindungsleitung
+3 -4
View File
@@ -305,15 +305,14 @@ def write_excel_from_json(plines:Polylines, sens2cable: dict, outpath:str):
# Worksheet 2 - Kabelnummern und Stückzahlen
ws2 = wb.create_sheet("Cables SIVAS")
ws2.append(["Cable-ArtNr", "Ammount / total length"])
ws2.append(["Cable-ArtNr", "Amount (pcs)", "Cumm. Length (m)"])
all_artnrs = set(count_summary.keys()) | set(length_summary.keys())
for artnr in sorted(all_artnrs):
count = count_summary.get(artnr, "")
if count == "":
count = length_summary.get(artnr, "")
ws2.append([artnr, count])
cumm_length = length_summary.get(artnr, "")
ws2.append([artnr, count, cumm_length])
# Abfage ob Fehler Worsheets ausgegeben werden
if len(plines.errors_existing_sensors) > 0 or len(plines.errors_dists) > 0: