Skip to content

Commit

Permalink
update module fixture and addressable area defs to include version nu…
Browse files Browse the repository at this point in the history
…mber
  • Loading branch information
CaseyBatten committed Mar 20, 2024
1 parent aca73c4 commit a8b71f9
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 93 deletions.
58 changes: 29 additions & 29 deletions api/src/opentrons/protocol_api/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,18 +370,18 @@ def ensure_and_convert_module_fixture_location(
]
]
addressable_areas = [
"magneticBlockA1",
"magneticBlockB1",
"magneticBlockC1",
"magneticBlockD1",
"magneticBlockA2",
"magneticBlockB2",
"magneticBlockC2",
"magneticBlockD2",
"magneticBlockA3",
"magneticBlockB3",
"magneticBlockC3",
"magneticBlockD3",
"magneticBlockV1A1",
"magneticBlockV1B1",
"magneticBlockV1C1",
"magneticBlockV1D1",
"magneticBlockV1A2",
"magneticBlockV1B2",
"magneticBlockV1C2",
"magneticBlockV1D2",
"magneticBlockV1A3",
"magneticBlockV1B3",
"magneticBlockV1C3",
"magneticBlockV1D3",
]

elif isinstance(model, HeaterShakerModuleModel):
Expand All @@ -390,32 +390,32 @@ def ensure_and_convert_module_fixture_location(
for slot in ["A1", "B1", "C1", "D1", "A3", "B3", "C3", "D3"]
]
addressable_areas = [
"heaterShakerA1",
"heaterShakerB1",
"heaterShakerC1",
"heaterShakerD1",
"heaterShakerA3",
"heaterShakerB3",
"heaterShakerC3",
"heaterShakerD3",
"heaterShakerV1A1",
"heaterShakerV1B1",
"heaterShakerV1C1",
"heaterShakerV1D1",
"heaterShakerV1A3",
"heaterShakerV1B3",
"heaterShakerV1C3",
"heaterShakerV1D3",
]
elif isinstance(model, TemperatureModuleModel):
valid_slots = [
DeckSlotName(slot)
for slot in ["A1", "B1", "C1", "D1", "A3", "B3", "C3", "D3"]
]
addressable_areas = [
"temperatureModuleA1",
"temperatureModuleB1",
"temperatureModuleC1",
"temperatureModuleD1",
"temperatureModuleA3",
"temperatureModuleB3",
"temperatureModuleC3",
"temperatureModuleD3",
"temperatureModuleV2A1",
"temperatureModuleV2B1",
"temperatureModuleV2C1",
"temperatureModuleV2D1",
"temperatureModuleV2A3",
"temperatureModuleV2B3",
"temperatureModuleV2C3",
"temperatureModuleV2D3",
]
elif isinstance(model, ThermocyclerModuleModel):
return "thermocyclerModule"
return "thermocyclerModuleV2"
else:
return None

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ def get_addressable_area_position(
"""
addressable_area = self._get_addressable_area_from_deck_data(
addressable_area_name=addressable_area_name,
do_compatibility_check=False, # This should probably not default to false
do_compatibility_check=False, # This should probably not default to false
)
position = addressable_area.position
return Point(x=position.x, y=position.y, z=position.z)
Expand Down
Loading

0 comments on commit a8b71f9

Please sign in to comment.