From 0bba613a4b2261e9dc59b7ccc72c3827e1d9a0f1 Mon Sep 17 00:00:00 2001 From: Julian Stirling Date: Tue, 13 Jan 2026 11:45:32 +0000 Subject: [PATCH] Apply suggestions from code review of branch fast-sim Co-authored-by: Joe Knapper --- src/openflexure_microscope_server/things/camera/simulation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openflexure_microscope_server/things/camera/simulation.py b/src/openflexure_microscope_server/things/camera/simulation.py index 786f5c06..9678b18c 100644 --- a/src/openflexure_microscope_server/things/camera/simulation.py +++ b/src/openflexure_microscope_server/things/camera/simulation.py @@ -80,8 +80,8 @@ def _downsample_shape( def colour_str_to_colour(colour_str: str) -> tuple[int, int, int]: """Convert a colour string into RGB colour values. - :param colour_str: Should be a hex colour such as #33aa33 or a list separated by - semicolons. + :param colour_str: Should be a hex colour such as #33aa33 or a list of hex + colours separated by semicolons (with optional spaces). :return: The colour as a tuple of 3 integers from 0 to 255 in value :raises ValueError: If the hex string is not valid. This should never happen if the user enters a bad colour string as the colour property setter checks the