Преглед на файлове

Allowing for getSegmentations to look in setup set segmentationDataset

nixWorker преди 1 ден
родител
ревизия
29dff5049a
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      pythonScripts/statUtils.py

+ 2 - 1
pythonScripts/statUtils.py

@@ -65,10 +65,11 @@ def getImage(setup, row, field, extraPath=None):
     return localPath
 
 def getSegmentations(setup,row):
+    segName=setup.get('segmentationDataset','Segmentations')
     idField=setup['idField']
     visitField=setup['visitField']
     qFilter=[{'variable':x,'value':row[x],'oper':'eq'} for x in [idField,visitField]]
-    dsSeg=setup['db'].selectRows(setup['project'],'study','Segmentations',qFilter)
+    dsSeg=setup['db'].selectRows(setup['project'],'study',segName,qFilter)
     if len(dsSeg['rows'])<1:
         print('Failed to find segmentation for {}/{}'.format(row[idField],row[visitField]))
         return {0:"NONE"}