From 0027b263e2a91ef43330a250490ee1b2f80c0d34 Mon Sep 17 00:00:00 2001 From: Tom Close Date: Thu, 16 Nov 2023 21:42:04 +1100 Subject: [PATCH] ignored non-dicom files in dicom directory --- xnat_ingest/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xnat_ingest/session.py b/xnat_ingest/session.py index 1b7f3a2..6bfd556 100644 --- a/xnat_ingest/session.py +++ b/xnat_ingest/session.py @@ -230,7 +230,7 @@ def construct( # Sort loaded series by StudyInstanceUID (imaging session) logger.info("Loading DICOM series from %s", str(dicoms_path)) dicom_sessions = defaultdict(list) - for series in from_paths(dicom_fspaths, DicomSeries): + for series in from_paths(dicom_fspaths, DicomSeries, ignore=".*"): dicom_sessions[series["StudyInstanceUID"]].append(series) # Construct sessions from sorted series