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