Skip to content

Commit

Permalink
Skim2257 quick fix (#26)
Browse files Browse the repository at this point in the history
* Updated crawler to force String on all meta fields

* Update setup.py

Former-commit-id: e942f7e [formerly d83fb0135155c4c94846c23614e75805db63cf37] [formerly 5e93381]
Former-commit-id: 65d66d2
Former-commit-id: 8a58ea10fb3416e01953eea428dac12e97f2fb8f
  • Loading branch information
skim2257 authored Apr 26, 2022
1 parent b9314ca commit dd6ca1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions imgtools/utils/crawl.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ def crawl_one(folder):
# instance (slice) information
for dcm in dicoms:
meta = dcmread(dcm)
patient = meta.PatientID
study = meta.StudyInstanceUID
series = meta.SeriesInstanceUID
instance = meta.SOPInstanceUID
patient = str(meta.PatientID)
study = str(meta.StudyInstanceUID)
series = str(meta.SeriesInstanceUID)
instance = str(meta.SOPInstanceUID)

reference_ct, reference_rs, reference_pl = " ", " ", " "
try: #RTSTRUCT
Expand Down Expand Up @@ -136,4 +136,4 @@ def crawl(top,

args = parser.parse_args()
db = crawl(args.directory, n_jobs=args.n_jobs)
print("# patients:", len(db))
print("# patients:", len(db))
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name="med-imagetools",
version="0.2.2",
version="0.2.3",
author="Michal Kazmierski, Sejin Kim, Vishwesh Ramanathan, Benjamin Haibe-Kains",
author_email="benjamin.haibe.kains@utoronto.ca",
description="Transparent and reproducible image processing pipelines in Python.",
Expand Down

0 comments on commit dd6ca1b

Please sign in to comment.