Skip to content

Commit

Permalink
Update src/dls_bluesky_core/core/maths.py
Browse files Browse the repository at this point in the history
Co-authored-by: Tom C (DLS) <101418278+coretl@users.noreply.github.com>
  • Loading branch information
DiamondJoseph and coretl committed Oct 16, 2023
1 parent d5d10f4 commit 47557c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dls_bluesky_core/core/maths.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ def in_micros(t: float) -> int:
t (int): A time in microseconds, rounded up to the nearest whole microsecond,
"""
if t < 0:
raise ValueError
raise ValueError(f"Expected a positive time in seconds, got {t!r}")
return int(np.ceil(t * 1e6))

0 comments on commit 47557c6

Please sign in to comment.