Toleranzen für Sensor und Kabelpritschen aus der Config holen
This commit is contained in:
+9
-17
@@ -1,18 +1,10 @@
|
||||
[Eingänge]
|
||||
0-0_ILS_EINGANG
|
||||
# Vorgaben für die Toleranzen
|
||||
# bei den Kabelpritschen
|
||||
[Racks]
|
||||
SnapTolerances=200.
|
||||
SnapStep=10.
|
||||
|
||||
[Ausgänge]
|
||||
AUSGANG
|
||||
MOTOR
|
||||
|
||||
[Pritsche]
|
||||
PRITSCHE_100-60-SCHRAFF
|
||||
PRITSCHE_200-60
|
||||
|
||||
[Unterverteiler]
|
||||
Breite = 320
|
||||
Hoehe = 350
|
||||
|
||||
[Sensor_Marker]
|
||||
Breite = 80
|
||||
Hoehe = 90
|
||||
# bei den Sensoren
|
||||
[Sensoren]
|
||||
ConnectionTolerances=1000.
|
||||
ConnectSnap=50.
|
||||
|
||||
@@ -140,6 +140,11 @@ if __name__ == "__main__":
|
||||
rawdata = load_json(sensors_path)
|
||||
(racks, sensors, subdists, mapping) = prepare_data(rawdata)
|
||||
|
||||
config = configparser.ConfigParser(allow_no_value=True, delimiters=("="))
|
||||
config.optionxform = lambda option: option # preserve case for letters
|
||||
config.read(os.path.join(config_dir, "routing.cfg"))
|
||||
|
||||
|
||||
# virtuelle Anlage erstellen
|
||||
cable_paths = create_plant(racks, sensors, subdists, mapping)
|
||||
if args.console:
|
||||
|
||||
Reference in New Issue
Block a user