Skip to content

Commit

Permalink
fix carrier capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
rickwierenga committed Nov 23, 2023
1 parent 1456e84 commit 7748275
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pylabrobot/resources/carrier.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,16 @@ def __init__(
model=model)

sites = sites if sites is not None else []
self.capacity = len(sites)

self.sites: List[CarrierSite] = []
for site in sites:
site.name = f"carrier-{self.name}-spot-{site.spot}"
self.assign_child_resource(site, location=site.location)

@property
def capacity(self):
return len(self.sites)

def assign_child_resource(
self,
resource: Resource,
Expand Down

0 comments on commit 7748275

Please sign in to comment.