Skip to content

Commit

Permalink
skips series check if seris is None
Browse files Browse the repository at this point in the history
Former-commit-id: eb8fb65
  • Loading branch information
skim2257 committed Jun 24, 2022
1 parent 290fe0a commit 9c6259a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imgtools/io/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def read_dicom_auto(path, series=None):
dcms = glob.glob(pathlib.Path(path, "*.dcm").as_posix())
for dcm in dcms:
meta = dcmread(dcm)
if meta.SeriesInstanceUID != series:
if meta.SeriesInstanceUID != series and series is not None:
continue
modality = meta.Modality
all_modality_metadata = all_modalities_metadata(meta)
Expand Down

0 comments on commit 9c6259a

Please sign in to comment.