Skip to content

Commit

Permalink
Update packaging_for_DDIM.py
Browse files Browse the repository at this point in the history
  • Loading branch information
EduReyes authored Aug 2, 2021
1 parent eb6e219 commit 94a00d3
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packaging_for_DDIM/packaging_for_DDIM.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import warnings
warnings.filterwarnings("ignore")
import dicom
#import SimpleITK as sitk
import glob
from pathlib import Path

Expand All @@ -27,8 +26,7 @@ def createDataframe(ds, own, job_id, mol):
except Exception as e:
print("(0040|0280) --> Job_ID cannot be empty or 'none'")
print()
#job_id = input("0040|0280) --> Job_ID cannot be empty, enter a new one: ")
#print("Job_ID: " + str(job_id))

exceptions.append("(0040|0280) --> Job_ID cannot be empty")
return None

Expand All @@ -37,7 +35,6 @@ def createDataframe(ds, own, job_id, mol):
molecule = ds.OtherPatientIDs
assert '' != str(molecule)
except Exception as e:
#print("(0040|0280) --> Job_ID cannot be empty or 'none'")if '' == str(molecule):
molecule = "None"


Expand Down Expand Up @@ -73,11 +70,9 @@ def createDataframe(ds, own, job_id, mol):
linked_experiment_id = ""

if exceptions:
# print("There were " + str(len(exceptions)) + " exceptions:")
for e in exceptions:
print("- " + e)
print()
#else:
return CT_DataFrame(job_id, molecule, technique, experiment_id, institute,
owner, date, time, subject_id, linked_experiment_id)

Expand Down Expand Up @@ -140,7 +135,7 @@ def askMolecule():
molecule = askMolecule()
return molecule

#---------------------------------------------------------------------------
#---------------------------------------------------------------------------#

if len(sys.argv) != 2 :
print("Error")
Expand Down

0 comments on commit 94a00d3

Please sign in to comment.