소스 검색

Correcting debugging error

Andrej Studen 5 년 전
부모
커밋
0f0f740819
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  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: