Skip to content

Commit

Permalink
set min_pass_current 0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Andiiiiiiyy committed Aug 5, 2024
1 parent 32f7897 commit bee52c6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
DEFAULT_CURRENT = DEFAULT_RUN_CURRENT.low_throughput[OT3AxisKind.Z_G]
SPEEDS_TO_TEST = [DEFAULT_SPEED]
# MIN_PASS_CURRENT = round(DEFAULT_CURRENT * 0.6, 1) # 0.67 * 0.6 = ~0.4
MIN_PASS_CURRENT = 0.3
MIN_PASS_CURRENT = 0.4
CURRENTS_SPEEDS: Dict[float, List[float]] = {
# round(MIN_PASS_CURRENT - 0.2, 1): SPEEDS_TO_TEST,
round(MIN_PASS_CURRENT , 1): SPEEDS_TO_TEST,
MIN_PASS_CURRENT + 0.1: SPEEDS_TO_TEST,
round(MIN_PASS_CURRENT - 1 , 1): SPEEDS_TO_TEST,
MIN_PASS_CURRENT: SPEEDS_TO_TEST,
DEFAULT_CURRENT: SPEEDS_TO_TEST,
}

Expand All @@ -50,7 +50,7 @@ def build_csv_lines() -> List[Union[CSVLine, CSVLineRepeating]]:
for dir in ["down", "up"]:
for step in ["start", "end"]:
tag = _get_test_tag(current, speed, dir, step)
if current < MIN_PASS_CURRENT:
if current <= MIN_PASS_CURRENT:
lines.append(CSVLine(tag, [float, float]))
else:
lines.append(CSVLine(tag, [float, float, CSVResult]))
Expand Down

0 comments on commit bee52c6

Please sign in to comment.