Skip to content

Commit

Permalink
ignored non-dicom files in dicom directory
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Nov 16, 2023
1 parent 3cfe6e8 commit 0027b26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xnat_ingest/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0027b26

Please sign in to comment.