diff options
| author | Sam Scholten | 2025-10-30 15:31:14 +1000 |
|---|---|---|
| committer | Sam Scholten | 2025-10-30 15:31:14 +1000 |
| commit | fb256f5add760d891835c89ac26387cc4e2bac12 (patch) | |
| tree | 7fff52e17aa88ee14897bd1f4144c0d8837aa646 /src | |
| parent | 644676e661f2312f5262c49e1e3bb8a201a1c0d9 (diff) | |
| download | scopekit-fb256f5add760d891835c89ac26387cc4e2bac12.tar.gz scopekit-fb256f5add760d891835c89ac26387cc4e2bac12.zip | |
Fix: Show whole numbers for seconds labels to be less verbosev1.0.6
Previously seconds were displayed with 3 decimal places (e.g., 10.142s) which
was unnecessarily verbose for large time spans. Now displays as whole numbers
(e.g., 10s), which is more appropriate when viewing recordings at the
seconds scale where millisecond precision isn't meaningful.
Diffstat (limited to 'src')
| -rw-r--r-- | src/scopekit/display_state.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scopekit/display_state.py b/src/scopekit/display_state.py index 793bc4c..923eb6c 100644 --- a/src/scopekit/display_state.py +++ b/src/scopekit/display_state.py @@ -136,7 +136,7 @@ def _create_time_formatter( elif display_scale >= np.float32(1e3): # milliseconds return f"{x:.1f}" else: # seconds - return f"{x:.3f}" + return f"{x:.0f}" return FuncFormatter(formatter) |
