#4526 enable setting flow diagnostics results through Python

This commit is contained in:
Gaute Lindkvist
2019-07-30 09:21:43 +02:00
parent 979101fe96
commit f61df01694
6 changed files with 70 additions and 35 deletions

View File

@@ -56,8 +56,6 @@ class PdmObject:
for val in value:
listofstrings.append(self.__fromValue(val))
return "[" + ", ".join(listofstrings) + "]"
elif isinstance(value, str):
return "\"" + str(value) + "\""
else:
return str(value)

View File

@@ -0,0 +1,14 @@
import rips
resInsight = rips.Instance.find()
view = resInsight.project.view(0)
cellResult = view.cellResult()
cellResult.printObjectInfo()
cellResult.setValue("ResultType", "FLOW_DIAGNOSTICS")
cellResult.setValue("ResultVariable", "TOF")
cellResult.update()