Parcourir la source

Updating preprocess.py

Andrej Studen/Merlin il y a 4 ans
Parent
commit
d23fdfb3fd
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  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)