소스 검색

Adding entry filter to allow for selection in processing, also, debug parameter in template stops processing after the first entry

Andrej Studen 1 년 전
부모
커밋
6ddf9fcc67
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      pythonScripts/runSegmentationDM.py

+ 4 - 3
pythonScripts/runSegmentationDM.py

@@ -224,8 +224,9 @@ def doSegmentation(parameterFile):
 
 
     #all images from database
-    ds=db.selectRows(project,schema,dataset,[])
-
+    qFilter=pars['entryFilter']
+    ds=db.selectRows(project,schema,dataset,qFilter)
+    print('Got {} rows'.format(len(ds['rows'])))
     
     #input
     #use webdav to transfer file (even though it is localhost)
@@ -278,7 +279,7 @@ def doSegmentation(parameterFile):
         print(db.modifyRows(mode,pars['project'],pars['segmentationSchema'],pars['segmentationQuery'],[outRow]))
         #push results back to LabKey
         i+=1
-        if i==1:
+        if i==1 and pars['debug']:
             break
     print("Done")