Skip to content

Commit

Permalink
encoder decimals increased to 5
Browse files Browse the repository at this point in the history
  • Loading branch information
andySigler committed Sep 18, 2023
1 parent 72a967c commit 5366483
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions hardware-testing/hardware_testing/gravimetric/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,36 +455,36 @@ def store_encoder(
encoder_aspirated: float,
) -> None:
"""Store encoder information."""
vol_in_tag = str(round(volume, 2))
vol_in_tag = str(round(volume, 5))
report(
"ENCODER",
f"encoder-volume-{vol_in_tag}-channel_{channel}-trial-{trial + 1}-start-target",
[round(estimate_bottom, 2)],
[round(estimate_bottom, 5)],
)
report(
"ENCODER",
f"encoder-volume-{vol_in_tag}-channel_{channel}-trial-{trial + 1}-start-encoder",
[round(encoder_bottom, 2)],
[round(encoder_bottom, 5)],
)
report(
"ENCODER",
f"encoder-volume-{vol_in_tag}-channel_{channel}-trial-{trial + 1}-start-drift",
[round(encoder_bottom - estimate_bottom, 2)],
[round(encoder_bottom - estimate_bottom, 5)],
)
report(
"ENCODER",
f"encoder-volume-{vol_in_tag}-channel_{channel}-trial-{trial + 1}-end-target",
[round(estimate_aspirated, 2)],
[round(estimate_aspirated, 5)],
)
report(
"ENCODER",
f"encoder-volume-{vol_in_tag}-channel_{channel}-trial-{trial + 1}-end-encoder",
[round(encoder_aspirated, 2)],
[round(encoder_aspirated, 5)],
)
report(
"ENCODER",
f"encoder-volume-{vol_in_tag}-channel_{channel}-trial-{trial + 1}-end-drift",
[round(encoder_aspirated - estimate_aspirated, 2)],
[round(encoder_aspirated - estimate_aspirated, 5)],
)


Expand Down

0 comments on commit 5366483

Please sign in to comment.