Skip to content

Commit c98519f

Browse files
committed
allow rails up to -4 in hamilton deck
1 parent 735a728 commit c98519f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pylabrobot/resources/hamilton/hamilton_decks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ def assign_child_resource(
149149

150150
# TODO: many things here should be moved to Resource and Deck, instead of just STARLetDeck
151151

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}.")
152+
if rails is not None and not -4 <= rails <= self.num_rails:
153+
raise ValueError(f"Rails must be between -4 and {self.num_rails}.")
154154

155155
# Check if resource exists.
156156
if self.has_resource(resource.name):

0 commit comments

Comments
 (0)