Rahmeneinträge mit A,B,C, usw. werden vom ioconverter in Zukunft ignoriert. Nur Rahmen mit IO werden verwendet

This commit is contained in:
2025-07-15 17:05:32 +02:00
parent 3a68ae9022
commit a007f22819
2 changed files with 35 additions and 0 deletions
+31
View File
@@ -1,6 +1,7 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Python Debugger: Current File",
"type": "debugpy",
@@ -39,6 +40,36 @@
"easy_positions.json"
]
},
{
"name": "getpositions with ST500592_Omniflo.dxf",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"args": [
"--filename",
"ST500592_Omniflo.dxf",
"--sensors",
"--rack",
"--console",
"--write",
"ST500592_Omniflo_positions.json"
]
},
{
"name": "portalexport with ST500592_Omniflo.dxf",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"args": [
"--filename",
"ST500592_Omniflo_positions.json",
"--outname",
"ST500592_Omniflo"
]
},
call portalexport.bat --filename %JSON_POS% --outname %FILENAME%
{
"name": "getpositions with ST-Fortna.dxf",
"type": "debugpy",
+4
View File
@@ -33,6 +33,8 @@ def prepare_data(rawdata:dict):
lsensors = list()
for sname, sdata in sensors.items():
if "IO" not in sdata:
continue
csvstr, sps_nr = process_item(sname, sdata)
if sps_nr:
if sps_nr not in dsensors:
@@ -42,6 +44,8 @@ def prepare_data(rawdata:dict):
lsensors.append(csvstr)
for schaltele, sdata in schaltschrank_elemente.items():
if "IO" not in sdata:
continue
csvstr, sps_nr = process_item(schaltele, sdata)
if sps_nr:
if sps_nr not in dsensors: