Parcourir la source

Correcting debugging error

Andrej Studen il y a 5 ans
Parent
commit
0f0f740819
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      DICOMtools/loadDicom.py

+ 3 - 1
DICOMtools/loadDicom.py

@@ -417,7 +417,6 @@ def isDicom(file):
 
 def dicomValue(file,tag,seqTag=None,shell=False):
     #query dicom value of file using dcmdump (DCMTK routine)
-    debug=False
     dcmdump=os.path.join(os.environ['SLICER_HOME'],"bin","dcmdump")
     try:
         out=subprocess.check_output([dcmdump,'+p','+P',tag,file],shell=shell)
@@ -429,6 +428,9 @@ def dicomValue(file,tag,seqTag=None,shell=False):
     
 def getTagValue(lst,tag,seqTag=None):
     #report tag value from a list lst of lines reported by dcmdump        
+    
+    debug=False
+    
     if debug:
         print("Tag {} Line '{}'").format(tag,out)
     if len(out)==0: