Racks zeichnen: geometry-dict in ausgabe eingepflegt
This commit is contained in:
+13
-3
@@ -640,10 +640,20 @@ class Anlage():
|
||||
|
||||
pfade["kabel"].append(ld)
|
||||
|
||||
pfade["rack_lengths"] = {
|
||||
rname: round(length, 1)
|
||||
for rname, length in self._rack_lengths.items()
|
||||
pfade["rack_geometry"] = {
|
||||
rname: {
|
||||
"length": round(length, 1),
|
||||
"coordinates": [
|
||||
{
|
||||
"x": round(p.x, 1),
|
||||
"y": round(p.y, 1),
|
||||
"z": round(p.z if shapely.has_z(p) else 0.0, 1)
|
||||
}
|
||||
for p in self.get_points_from_rack(rname)
|
||||
]
|
||||
}
|
||||
for rname, length in self._rack_lengths.items()
|
||||
}
|
||||
|
||||
pfade["errors_routing"] = dict()
|
||||
lOfDistErrors = list() # sammeln wo keine Verbindung zwischen Dist und Senor möglich war
|
||||
|
||||
Reference in New Issue
Block a user