Skip to content

Conversation

@BioCam
Copy link
Collaborator

@BioCam BioCam commented Feb 4, 2026

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the deck dimensions for Hamilton STAR and STARlet systems to reflect their actual working deck sizes, excluding the rightmost waste block area. The changes ensure that deck size calculations are consistent with the usable rail space for labware placement.

Changes:

  • Reduced STARLET_SIZE_X from 1360mm to 1005mm and STAR_SIZE_X from 1900mm to 1545mm to reflect actual deck dimensions
  • Refactored trash positioning to be relative to the waste block location instead of using a hardcoded offset from the right edge
  • Added with_waste_block parameter to control waste block creation independently of teaching rack

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
pylabrobot/resources/hamilton/hamilton_decks.py Updated STAR/STARlet deck size constants, refactored trash/waste block initialization order, and excluded Trash from collision detection
pylabrobot/resources/deck.py Updated default deck size_x to match new STARlet dimensions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

def serialize(self) -> dict:
return {
**super().serialize(),
"with_waste_block": False, # data encoded as child. (not very pretty to have this key though...)
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The serialized value for with_waste_block should reflect the actual parameter value passed to __init__, not be hardcoded to False. This will cause incorrect deserialization when the deck was created with with_waste_block=True.

Suggested change
"with_waste_block": False, # data encoded as child. (not very pretty to have this key though...)
"with_waste_block": any(child.name == "waste_block" for child in self.children),

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant