Skip to content

Commit 2708f7f

Browse files
authored
get_absolute_location works if parent has no location (#709)
1 parent ce95fa2 commit 2708f7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylabrobot/resources/resource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def get_absolute_location(self, x: str = "l", y: str = "f", z: str = "b") -> Coo
226226
)
227227
)
228228

229-
if self.parent is None:
229+
if self.parent is None or self.parent.location is None:
230230
return self.location + rotated_anchor
231231

232232
parent_pos = self.parent.get_absolute_location()

0 commit comments

Comments
 (0)