Skip to content

Commit 85aa73c

Browse files
committed
Make the csv output more usefull for the 96ch lifetime script.
1 parent acce97e commit 85aa73c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

hardware-testing/hardware_testing/scripts/faster_plunger_lifetime_test.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
from typing_extensions import TypedDict
44

55
from opentrons.hardware_control.ot3api import OT3API
6+
from opentrons.types import Mount
67
from dataclasses import dataclass
78

89
import time
910
from hardware_testing.opentrons_api import helpers_ot3
1011
from hardware_testing.opentrons_api.types import Axis, OT3Mount
12+
from hardware_testing.gravimetric.helpers import get_pipette_unique_name
1113
import enum
1214
import argparse
1315
import csv
@@ -84,12 +86,14 @@ async def position_check() -> bool:
8486
print(f"Estimate: {est}, Encoder: {enc}, Aligned: {aligned}")
8587
return aligned
8688

89+
await api.cache_instruments()
8790
await api.home_z(OT3Mount.LEFT)
8891
# LOOP THROUGH CURRENTS + SPEEDS
8992
await api.home()
9093
today = datetime.now().strftime("%m-%d-%y_%H-%M")
94+
pip_id = api.attached_pipettes[Mount.LEFT]["pipette_id"]
9195
with open(
92-
f"/data/testing_data/P200H_test_plunger_speed_test_{today}.csv", "w", newline=""
96+
f"/data/testing_data/P200H_LT_{pip_id}_{today}.csv", "w", newline=""
9397
) as csvfile:
9498
test_data: TestData = {
9599
"time_sec": None,

0 commit comments

Comments
 (0)