Skip to content

Commit

Permalink
fix bug if scans is None
Browse files Browse the repository at this point in the history
  • Loading branch information
maurov committed Nov 14, 2024
1 parent 79ce72f commit 1932a43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions larch/io/rixs_esrf_id26.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 1932a43

Please sign in to comment.