Skip to content

Commit 7fd2f22

Browse files
committed
set difference-pf=7pf, format csv
1 parent 59e13d0 commit 7fd2f22

File tree

1 file changed

+9
-9
lines changed
  • hardware-testing/hardware_testing/production_qc/gripper_assembly_qc_ot3

1 file changed

+9
-9
lines changed

hardware-testing/hardware_testing/production_qc/gripper_assembly_qc_ot3/test_probe.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
# PROBE_PF_MAX = 6.0
3535
# DECK_PF_MIN = 9.0
3636
# DECK_PF_MAX = 15.0
37-
PROBE_DIFF_MAX = 9.5
38-
PROBE_DIFF_MIN = 7.5
37+
# PROBE_DIFF_MAX = 9.5
38+
PROBE_DIFF_MIN = 7
3939

4040

4141
def _get_test_tag(probe: GripperProbe) -> str:
@@ -48,10 +48,10 @@ def build_csv_lines() -> List[Union[CSVLine, CSVLineRepeating]]:
4848
for p in GripperProbe:
4949
tag = _get_test_tag(p)
5050
lines.append(CSVLine(f"{tag}-open-air-pf", [float]))
51-
lines.append(CSVLine(f"{tag}-probe-pf", [float]))
52-
lines.append(CSVLine(f"{tag}-probe-pf-difference-min", [float]))
5351
lines.append(CSVLine(f"{tag}-deck-pf", [float]))
54-
lines.append(CSVLine(f"{tag}-probe-pf-difference-max", [float]))
52+
lines.append(CSVLine(f"{tag}-probe-difference", [float]))
53+
lines.append(CSVLine(f"{tag}-probe-pf-difference-min", [float]))
54+
lines.append(CSVLine(f"{tag}-probe-pf-difference-max", [str]))
5555
lines.append(CSVLine(f"{tag}-result", [CSVResult]))
5656
for p in GripperProbe:
5757
lines.append(CSVLine(f"jaw-probe-{p.name.lower()}-xyz", [float, float, float]))
@@ -163,14 +163,14 @@ async def run(api: OT3API, report: CSVReport, section: str) -> None:
163163
print(f"Reading on deck: {deck_pf}")
164164

165165
result = (
166-
PROBE_DIFF_MIN < (deck_pf - open_air_pf) < PROBE_DIFF_MAX
166+
PROBE_DIFF_MIN < (deck_pf - open_air_pf)
167167
)
168168
_tag = _get_test_tag(probe)
169169
report(section, f"{_tag}-open-air-pf", [open_air_pf])
170-
report(section, f"{_tag}-probe-pf", [probe_pf])
171-
report(section, f"{_tag}-probe-pf-difference-min", [PROBE_DIFF_MIN])
172170
report(section, f"{_tag}-deck-pf", [deck_pf])
173-
report(section, f"{_tag}-probe-pf-difference-max", [PROBE_DIFF_MAX])
171+
report(section, f"{_tag}-probe-difference", [(deck_pf - open_air_pf)])
172+
report(section, f"{_tag}-probe-pf-difference-min", [PROBE_DIFF_MIN])
173+
report(section, f"{_tag}-probe-pf-difference-max", ["None"])
174174
report(section, f"{_tag}-result", [CSVResult.from_bool(result)])
175175
await api.home_z()
176176
await api.ungrip()

0 commit comments

Comments
 (0)