|
@@ -75,9 +75,11 @@ def main(configFile):
|
|
|
try:
|
|
|
if not xconfig['recalculate']:
|
|
|
print('Entry done')
|
|
|
+ getData.updateStatus(db,r,xconfig,'convertToNRRD')
|
|
|
continue
|
|
|
except KeyError:
|
|
|
print('Entry done')
|
|
|
+ getData.updateStatus(db,r,xconfig,'convertToNRRD')
|
|
|
continue
|
|
|
|
|
|
print('Forced recalculation')
|
|
@@ -88,6 +90,7 @@ def main(configFile):
|
|
|
patient=loadPatient(ofb,r,xconfig)
|
|
|
if not patient:
|
|
|
print(f'{code} failed to load from Orthanc')
|
|
|
+ getData.updateStatus(db,r,xconfig,'convertToNRRD',status=False)
|
|
|
continue
|
|
|
#convert to nodes
|
|
|
addCT(r,patient,xconfig)
|
|
@@ -117,7 +120,7 @@ def main(configFile):
|
|
|
clearNodes(r,xconfig)
|
|
|
#addCT and addFrames fill r['ct'] and r['spect']
|
|
|
db.modifyRows('update',xconfig['project'],xconfig['schemaName'],xconfig['queryName'],[r])
|
|
|
- getData.updateStatus(db,r,setup,'convertToNRRD')
|
|
|
+ getData.updateStatus(db,r,xconfig,'convertToNRRD')
|
|
|
|
|
|
|
|
|
def clearNodes(row,xconfig):
|