We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 735a728 commit c98519fCopy full SHA for c98519f
pylabrobot/resources/hamilton/hamilton_decks.py
@@ -149,8 +149,8 @@ def assign_child_resource(
149
150
# TODO: many things here should be moved to Resource and Deck, instead of just STARLetDeck
151
152
- if rails is not None and not 0 <= rails <= self.num_rails:
153
- raise ValueError(f"Rails must be between 0 and {self.num_rails}.")
+ if rails is not None and not -4 <= rails <= self.num_rails:
+ raise ValueError(f"Rails must be between -4 and {self.num_rails}.")
154
155
# Check if resource exists.
156
if self.has_resource(resource.name):
0 commit comments