Skip to content

Commit

Permalink
set difference-pf=7pf, format csv
Browse files Browse the repository at this point in the history
  • Loading branch information
Andiiiiiiyy committed Jul 26, 2024
1 parent 59e13d0 commit 7fd2f22
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
# PROBE_PF_MAX = 6.0
# DECK_PF_MIN = 9.0
# DECK_PF_MAX = 15.0
PROBE_DIFF_MAX = 9.5
PROBE_DIFF_MIN = 7.5
# PROBE_DIFF_MAX = 9.5
PROBE_DIFF_MIN = 7


def _get_test_tag(probe: GripperProbe) -> str:
Expand All @@ -48,10 +48,10 @@ def build_csv_lines() -> List[Union[CSVLine, CSVLineRepeating]]:
for p in GripperProbe:
tag = _get_test_tag(p)
lines.append(CSVLine(f"{tag}-open-air-pf", [float]))
lines.append(CSVLine(f"{tag}-probe-pf", [float]))
lines.append(CSVLine(f"{tag}-probe-pf-difference-min", [float]))
lines.append(CSVLine(f"{tag}-deck-pf", [float]))
lines.append(CSVLine(f"{tag}-probe-pf-difference-max", [float]))
lines.append(CSVLine(f"{tag}-probe-difference", [float]))
lines.append(CSVLine(f"{tag}-probe-pf-difference-min", [float]))
lines.append(CSVLine(f"{tag}-probe-pf-difference-max", [str]))
lines.append(CSVLine(f"{tag}-result", [CSVResult]))
for p in GripperProbe:
lines.append(CSVLine(f"jaw-probe-{p.name.lower()}-xyz", [float, float, float]))
Expand Down Expand Up @@ -163,14 +163,14 @@ async def run(api: OT3API, report: CSVReport, section: str) -> None:
print(f"Reading on deck: {deck_pf}")

result = (
PROBE_DIFF_MIN < (deck_pf - open_air_pf) < PROBE_DIFF_MAX
PROBE_DIFF_MIN < (deck_pf - open_air_pf)
)
_tag = _get_test_tag(probe)
report(section, f"{_tag}-open-air-pf", [open_air_pf])
report(section, f"{_tag}-probe-pf", [probe_pf])
report(section, f"{_tag}-probe-pf-difference-min", [PROBE_DIFF_MIN])
report(section, f"{_tag}-deck-pf", [deck_pf])
report(section, f"{_tag}-probe-pf-difference-max", [PROBE_DIFF_MAX])
report(section, f"{_tag}-probe-difference", [(deck_pf - open_air_pf)])
report(section, f"{_tag}-probe-pf-difference-min", [PROBE_DIFF_MIN])
report(section, f"{_tag}-probe-pf-difference-max", ["None"])
report(section, f"{_tag}-result", [CSVResult.from_bool(result)])
await api.home_z()
await api.ungrip()
Expand Down

0 comments on commit 7fd2f22

Please sign in to comment.