Toleranzen für Sensor und Kabelpritschen aus der Config holen
This commit is contained in:
+9
-17
@@ -1,18 +1,10 @@
|
|||||||
[Eingänge]
|
# Vorgaben für die Toleranzen
|
||||||
0-0_ILS_EINGANG
|
# bei den Kabelpritschen
|
||||||
|
[Racks]
|
||||||
|
SnapTolerances=200.
|
||||||
|
SnapStep=10.
|
||||||
|
|
||||||
[Ausgänge]
|
# bei den Sensoren
|
||||||
AUSGANG
|
[Sensoren]
|
||||||
MOTOR
|
ConnectionTolerances=1000.
|
||||||
|
ConnectSnap=50.
|
||||||
[Pritsche]
|
|
||||||
PRITSCHE_100-60-SCHRAFF
|
|
||||||
PRITSCHE_200-60
|
|
||||||
|
|
||||||
[Unterverteiler]
|
|
||||||
Breite = 320
|
|
||||||
Hoehe = 350
|
|
||||||
|
|
||||||
[Sensor_Marker]
|
|
||||||
Breite = 80
|
|
||||||
Hoehe = 90
|
|
||||||
|
|||||||
@@ -140,6 +140,11 @@ if __name__ == "__main__":
|
|||||||
rawdata = load_json(sensors_path)
|
rawdata = load_json(sensors_path)
|
||||||
(racks, sensors, subdists, mapping) = prepare_data(rawdata)
|
(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
|
# virtuelle Anlage erstellen
|
||||||
cable_paths = create_plant(racks, sensors, subdists, mapping)
|
cable_paths = create_plant(racks, sensors, subdists, mapping)
|
||||||
if args.console:
|
if args.console:
|
||||||
|
|||||||
Reference in New Issue
Block a user