|
@@ -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"}
|