From 47557c6cabadc538684ecac364b5920db766bf0b Mon Sep 17 00:00:00 2001 From: DiamondJoseph <53935796+DiamondJoseph@users.noreply.github.com> Date: Mon, 16 Oct 2023 15:13:11 +0100 Subject: [PATCH] Update src/dls_bluesky_core/core/maths.py Co-authored-by: Tom C (DLS) <101418278+coretl@users.noreply.github.com> --- src/dls_bluesky_core/core/maths.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dls_bluesky_core/core/maths.py b/src/dls_bluesky_core/core/maths.py index aaa9ebb..ff0779a 100644 --- a/src/dls_bluesky_core/core/maths.py +++ b/src/dls_bluesky_core/core/maths.py @@ -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))