Преглед изворни кода

Adding comments to runSegmentationnnUNet.py

Andrej Studen пре 3 година
родитељ
комит
425922f219
1 измењених фајлова са 5 додато и 4 уклоњено
  1. 5 4
      pythonScripts/runSegmentationnnUNet.py

+ 5 - 4
pythonScripts/runSegmentationnnUNet.py

@@ -198,13 +198,14 @@ def doSegmentation(parameterFile):
 
  
     i=0
+    #for debugging
     rows=[ds['rows'][0]]
+    #production mode
     rows=ds['rows']
     for row in rows:
        
 
-        #check if file is already there
-        #dummy tf to get the suffix
+        #build file name 
         sfx=pars['images']['segmentation']['suffix']
         outpath=fb.buildPathURL(pars['project'],[pars['imageDir'],row['patientCode'],row['visitCode']])
         outName=addVersion(\
@@ -241,14 +242,14 @@ def doSegmentation(parameterFile):
 
         if len(ds1['rows'])>0:
             mode='update'
-            outRow=ds1['rows'][0]
+            outRow=ds1['rgows'][0]
         else:
             mode='insert'
             outRow={v:row[v] for v in copyFields}
         outRow['Version']= pars['version']
         outRow['Segmentation']= outName
         print(db.modifyRows(mode,pars['project'],pars['segmentationSchema'],pars['segmentationQuery'],[outRow]))
-        #pull results back to LabKey
+        #push results back to LabKey
     print("Done")