diff --git a/larch/io/rixs_esrf_id26.py b/larch/io/rixs_esrf_id26.py index 73cd52582..a15a6c674 100644 --- a/larch/io/rixs_esrf_id26.py +++ b/larch/io/rixs_esrf_id26.py @@ -124,6 +124,8 @@ def get_rixs_id26( if isinstance(scans, str): scans = _str2rng(scans) + if scans is None: + scans = [scn[0] for scn in ds.get_scans()] assert isinstance(scans, list), "scans should be a list" mode = mode.lower()