From 1932a43f2cae5f04f0fca714d50e216d559fd583 Mon Sep 17 00:00:00 2001 From: Mauro Rovezzi Date: Thu, 14 Nov 2024 14:12:09 +0100 Subject: [PATCH] fix bug if scans is None --- larch/io/rixs_esrf_id26.py | 2 ++ 1 file changed, 2 insertions(+) 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()