diff --git a/bliss/scanning/scan_info.py b/bliss/scanning/scan_info.py index 86e8bd6ad9adcc1ab0e459b527ad2c234bdc7e5b..a972cd7e9c7c322799f1f6721380955fb58ee4b0 100644 --- a/bliss/scanning/scan_info.py +++ b/bliss/scanning/scan_info.py @@ -152,6 +152,10 @@ API import typing import typeguard import numbers +import logging + + +_logger = logging.getLogger(__name__) class ScanInfo(dict): @@ -257,6 +261,17 @@ class ScanInfo(dict): if axis_points_hint is not None: meta["axis-points-hint"] = axis_points_hint + if axis_kind is not None: + # If a kind is set the orientation of the scan have to be known + if start is None: + _logger.warning( + "A 'start' position for the channel '%s' should be set", name + ) + if stop is None: + _logger.warning( + "A 'stop' position for the channel '%s' should be set", name + ) + @typeguard.typechecked def add_scatter_plot( self,