浏览代码

Updating preprocess.py

Andrej Studen/Merlin 4 年之前
父节点
当前提交
d23fdfb3fd
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      pythonScripts/preprocess.py

+ 3 - 3
pythonScripts/preprocess.py

@@ -78,7 +78,7 @@ def getDicom(ofb,row,zipDir,rawDir,im,imageSelector,\
 
     return True    
 
-def updateRow(project,dataset,row,imageResampledField,gzFileNames,\
+def updateRow(db,project,dataset,row,imageResampledField,gzFileNames,\
         participantField='PatientId'):
     row['patientCode']=getPatientLabel(row,participantField)
     row['visitCode']=getVisitLabel(row)
@@ -170,7 +170,7 @@ def main(parameterFile):
 
         if all(remoteFilePresent):
             print("Entry for row done.")
-            updateRow(project,dataset,row,imageResampledField,\
+            updateRow(db,project,dataset,row,imageResampledField,\
                 gzFileNames,participantField)
             continue
 
@@ -233,7 +233,7 @@ def main(parameterFile):
 
 
         #update row and let it know where the processed files are
-        updateRow(project,dataset,row,imageResampledField,gzFileNames,\
+        updateRow(db,project,dataset,row,imageResampledField,gzFileNames,\
             participantField)