mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4526 enable setting flow diagnostics results through Python
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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()
|
||||
Reference in New Issue
Block a user