Skip to content

Commit bb5f7f9

Browse files
committed
add compatibility to old pre-2020 datasets
1 parent 027c684 commit bb5f7f9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/sed/loader/mpes/loader.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,14 @@ def get_files_from_run_id(
792792
recursive=True,
793793
),
794794
)
795+
# Compatibility for old scan format
796+
if not run_files:
797+
run_files = natsorted(
798+
glob.glob(
799+
folder + "/**/Scan" + str(run_id).zfill(3) + "_*." + extension,
800+
recursive=True,
801+
),
802+
)
795803
files.extend(run_files)
796804

797805
# Check if any files are found

0 commit comments

Comments
 (0)