Skip to content

Commit b2b3ac9

Browse files
author
andy
committed
release 1.1.2
1 parent ef8e2f2 commit b2b3ac9

File tree

6 files changed

+29
-55
lines changed

6 files changed

+29
-55
lines changed

README.md

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,25 @@ Pushing some Opentrons productions test scripts in SZ team, including Flex and M
99
## Struction
1010

1111
- ot3-testing:
12-
12+
1313
- tests:
14-
1514
mainly test scripts for pruction
16-
15+
1716
- server:
18-
1917
test platform for test management
20-
18+
2119
- vue-ui:
22-
2320
frontend for test management
2421

25-
## Others
26-
27-
Any question please be free to contact our test engineer in SZ.
28-
29-
30-
31-
32-
33-
34-
35-
36-
37-
22+
## Verison
3823

24+
- build
25+
please run below command to build total project
26+
27+
```python
28+
python3 -m __verison__
29+
```
3930

31+
## Others
4032

33+
Any question please be free to contact our test engineer in SZ.

__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import subprocess
33

4-
VERSION = '1.1.1'
4+
VERSION = '1.1.2'
55

66

77
def get_version():

dist/Productions.exe

-50 Bytes
Binary file not shown.

ot3_testing/test_config/pipette_leveling_config.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class CalibrateMethod(enum.Enum):
1616
"D1-Z": {"Point": Point(51, 99, 318), "compensation": 0.5},
1717
# "B2-Z": Point(213, 324, 317),
1818
"D3-Z": {"Point": Point(377, 99, 318), "compensation": 0.44},
19-
"C2-Z": {"Point": Point(214, 210, 318), "compensation": 0.40},
19+
"C2-Z": {"Point": Point(214, 210, 318), "compensation": 0.46},
2020
"A2-Z": {"Point": Point(218, 424, 390.5), "compensation": 0.31},
2121
"UninstallPos": {"Point": Point(223, 203, 500)}
2222
}
@@ -40,19 +40,10 @@ class CalibrateMethod(enum.Enum):
4040
"right_rear": {"device_addr": 1, "channel": 5, "offset": 0},
4141
}
4242

43-
SlotLocationCH8 = {"Y-C1-Left": {"Point": Point(198.42, 198.33, 299.16), "compensation": 0.0464},
43+
SlotLocationCH8 = {"Y-C1-Left": {"Point": Point(198.42, 198.33, 299.16), "compensation": -0.015},
4444
"Y-C1-Right": {"Point": Point(172.07, 197.18, 299.16), "compensation": -0.03},
4545
"Y-C3-Right": {"Point": Point(499.83, 197.18, 299.16), "compensation": -0.03},
4646
"Y-A2-Right": {"Point": Point(335.94, 412.22, 299.16), "compensation": -0.03},
4747
"UninstallPos": {"Point": Point(223, 203, 500), "compensation": 0}
4848
}
4949

50-
# ChannelOffsetsCH8 = {"left_front": 0,
51-
# "left_rear": -0.05074,
52-
# "right_front": 0,
53-
# "right_rear": 0.01876}
54-
55-
ChannelOffsetsCH8 = {"left_front": 0,
56-
"left_rear": 0,
57-
"right_front": 0,
58-
"right_rear": 0}

ot3_testing/tests/pipette_leveling.py

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ async def run_8ch_test(self, flex_name: str, project_path=None):
281281
else:
282282
csv_list.append(item_value)
283283
csv_title.append(key + "-Result")
284-
csv_list.append(difference)
284+
csv_list.append(abs(difference))
285285

286286
# save csv
287287
if project_path is not None:
@@ -376,8 +376,8 @@ async def run_96ch_test(self, flex_name: str, project_path=None):
376376
if ApplyCompensationFlag:
377377
print(f"apply offset {compensation} to {difference}, difference -> {difference - compensation}")
378378
difference = abs(difference - compensation)
379-
max_value_idx = self.get_max_index(distance_list)
380-
distance_list[max_value_idx] = distance_list[max_value_idx] - compensation
379+
# max_value_idx = self.get_max_index(distance_list)
380+
# distance_list[max_value_idx] = distance_list[max_value_idx] - compensation
381381
print(f"{key} --> {value} (mm) --> difference: {round(difference, 3)}(mm)")
382382
for item_key, item_value in value.items():
383383
csv_title.append(key + " " + item_key)
@@ -412,15 +412,4 @@ async def run_96ch_test(self, flex_name: str, project_path=None):
412412

413413

414414
if __name__ == '__main__':
415-
# import asyncio
416-
417-
# pipette_leveling = PipetteLeveling(SlotLocationCH96, ChannelDefinitionCH96, robot_ip='192.168.6.29')
418-
# pipette_leveling.select_default = True
419-
# for i in range(1):
420-
# asyncio.run(pipette_leveling.run_96ch_test("FLXA1020240203003"))
421-
# pipette_leveling = PipetteLeveling(SlotLocationCH8, ChannelDefinitionCH8, robot_ip='192.168.6.58')
422-
# pipette_leveling.select_default = True
423-
# pipette_leveling.test_name = '8ch'
424-
# for i in range(3):
425-
# asyncio.run(pipette_leveling.run_8ch_test("FLXA1020240203003"))
426415
pass

production_scripts.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
import os,sys
1+
import os, sys
2+
3+
from ot3_testing.tests.pipette_leveling import PipetteLeveling
4+
from ot3_testing.test_config.pipette_leveling_config import SlotLocationCH96, ChannelDefinitionCH96, \
5+
SlotLocationCH8, ChannelDefinitionCH8
6+
import asyncio
7+
from tools.inquirer import prompt_flex_name, prompt_test_name, prompt_exit
8+
from tools import heat_96ch
9+
from __version__ import get_version
10+
from gravimetric_testing.openwebapp import openweb
11+
212
addpathpat = os.path.dirname(__file__)
313
addpath = os.path.dirname(os.path.dirname(__file__))
414
addpath2 = os.path.dirname(addpath)
@@ -8,14 +18,6 @@
818
sys.path.append(addpath2)
919
if addpathpat not in sys.path:
1020
sys.path.append(addpathpat)
11-
from ot3_testing.tests.pipette_leveling import PipetteLeveling
12-
from ot3_testing.test_config.pipette_leveling_config import SlotLocationCH96, ChannelDefinitionCH96, \
13-
SlotLocationCH8, ChannelDefinitionCH8
14-
import asyncio
15-
from tools.inquirer import prompt_flex_name, prompt_test_name, prompt_exit
16-
from tools import heat_96ch
17-
from __version__ import get_version
18-
from gravimetric_testing.openwebapp import openweb
1921

2022
if __name__ == '__main__':
2123
get_version()
@@ -46,4 +48,3 @@
4648
break
4749
else:
4850
pass
49-

0 commit comments

Comments
 (0)