fix bioyond resource io

This commit is contained in:
Junhan Chang
2025-09-30 17:02:38 +08:00
parent 3fe8f4ca44
commit 1c9d2ee98a
4 changed files with 152 additions and 24 deletions

View File

@@ -99,7 +99,7 @@ class ItemizedCarrier(ResourcePLR):
raise ValueError(f"resource {resource} has no location")
if resource is not None:
self.child_locations[spot] = resource.location
self.child_size[spot] = {"width": resource.size_x, "height": resource.size_y, "depth": resource.size_z}
self.child_size[spot] = {"width": resource._size_x, "height": resource._size_y, "depth": resource._size_z}
else:
self.child_locations[spot] = Coordinate.zero()
self.child_size[spot] = {"width": 0, "height": 0, "depth": 0}