Skip to content

Commit eddcedd

Browse files
committed
Update path for tmp file
/tmp doesnt exist on windows computers. Add C:/Windows/Temp
1 parent 4225454 commit eddcedd

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

pylabrobot/resources/opentrons/adapters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
def opentrons_96_deep_well_temp_mod_adapter(name: str) -> PlateHolder:
66
z_offset = 5.1
77
return load_ot_plate_holder(
8-
"opentrons_96_well_aluminum_block", z_offset=z_offset, plr_resource_name=name
8+
"opentrons_96_deep_well_temp_mod_adapter", z_offset=z_offset, plr_resource_name=name
99
)

pylabrobot/resources/opentrons/load.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ def _download_ot_resource_file(ot_name: str, force_download: bool):
2727
The labware definition as a dictionary.
2828
"""
2929
url = f"https://raw.githubusercontent.com/Opentrons/opentrons/5b51a98ce736b2bb5aff780bf3fdf91941a038fa/shared-data/labware/definitions/2/{ot_name}/1.json"
30-
path = f"/tmp/{ot_name}.json"
30+
if os.path.exists("/tmp"):
31+
path = f"/tmp/{ot_name}.json" # only works with linux/mac systems
32+
else:
33+
path = f"C:/Windows/Temp/{ot_name}.json"
3134
if force_download or not os.path.exists(path):
3235
data = _download_file(url=url, local_path=path)
3336
else:
@@ -169,5 +172,6 @@ def load_ot_plate_holder(
169172
size_y=data["dimensions"]["yDimension"],
170173
size_z=data["dimensions"]["zDimension"],
171174
child_location=Coordinate(location["x"], location["y"], z_offset),
175+
pedestal_size_z = 0,
172176
model=data["metadata"]["displayName"],
173177
)

0 commit comments

Comments
 (0)