Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skim2257 quick fix #26

Merged
merged 2 commits into from
Apr 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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