Skip to content

Commit 8bb35a7

Browse files
author
andy
committed
add SN and time string for z-stage leveling
1 parent 61542e9 commit 8bb35a7

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

ot3_testing/tests/zstage_leveling.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
from utils import Utils
1010
import os
1111
import asyncio
12+
import datetime
13+
1214
RequestReadyFlag = False
1315
ApplyCompensationFlag = True
1416

@@ -181,7 +183,7 @@ async def adjust_leveling(self, slot_name: str, mount: Mount):
181183
input("Judging complete ? (完成校准回车)")
182184
self.judge_complete = True
183185

184-
async def run_z_stage_test(self, project_path=None):
186+
async def run_z_stage_test(self, flex_name, project_path=None):
185187
"""
186188
main loop
187189
"""
@@ -203,6 +205,11 @@ async def run_z_stage_test(self, project_path=None):
203205
csv_title = []
204206
csv_list = []
205207

208+
now = datetime.datetime.now()
209+
time_str = now.strftime("%Y-%m-%d %H:%M:%S ")
210+
csv_list.append(time_str + flex_name)
211+
csv_title.append(time_str + flex_name)
212+
206213
for mount in [Mount.RIGHT, Mount.LEFT]:
207214
self.mount = mount
208215
test_result = {}
@@ -257,4 +264,4 @@ def save_csv(self, file_path, title, content):
257264

258265
if __name__ == '__main__':
259266
obj = ZStageLeveling(ZStagePoint, robot_ip="192.168.6.33")
260-
asyncio.run(obj.run_z_stage_test())
267+
asyncio.run(obj.run_z_stage_test("xxx"))

production_scripts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
asyncio.run(pipette_leveling.run_96ch_test(flex_name, project_path=project_path))
3535
elif "leveling-z-stage" in test_name:
3636
z_leveling = ZStageLeveling(ZStagePoint)
37-
asyncio.run(z_leveling.run_z_stage_test(project_path=project_path))
37+
asyncio.run(z_leveling.run_z_stage_test(flex_name, project_path=project_path))
3838

3939
elif "leveling-8ch" in test_name:
4040
# run 8

0 commit comments

Comments
 (0)