From bad1db509434110946f244b7eb581ef3e9362c59 Mon Sep 17 00:00:00 2001 From: Xuwznln <18435084+Xuwznln@users.noreply.github.com> Date: Thu, 8 Jan 2026 03:04:57 +0800 Subject: [PATCH] location not passed to ItemizedCarrier when assign child resource --- unilabos/resources/itemized_carrier.py | 1 + 1 file changed, 1 insertion(+) diff --git a/unilabos/resources/itemized_carrier.py b/unilabos/resources/itemized_carrier.py index 3b3454a..a5207d4 100644 --- a/unilabos/resources/itemized_carrier.py +++ b/unilabos/resources/itemized_carrier.py @@ -149,6 +149,7 @@ class ItemizedCarrier(ResourcePLR): if not reassign and self.sites[idx] is not None: raise ValueError(f"a site with index {idx} already exists") + location = list(self.child_locations.values())[idx] super().assign_child_resource(resource, location=location, reassign=reassign) self.sites[idx] = resource