mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Added Python example for replace case
(and replaced tabs with spaces in CMake file for GRPCinterface)
This commit is contained in:
parent
75f507e2ef
commit
df51c9becb
@ -202,6 +202,7 @@ if (RESINSIGHT_GRPC_PYTHON_EXECUTABLE)
|
|||||||
"rips/PythonExamples/soil_porv_sync.py"
|
"rips/PythonExamples/soil_porv_sync.py"
|
||||||
"rips/PythonExamples/selected_cases.py"
|
"rips/PythonExamples/selected_cases.py"
|
||||||
"rips/PythonExamples/all_cases.py"
|
"rips/PythonExamples/all_cases.py"
|
||||||
|
"rips/PythonExamples/replace_case.py"
|
||||||
"rips/PythonExamples/set_grid_properties.py"
|
"rips/PythonExamples/set_grid_properties.py"
|
||||||
"rips/PythonExamples/set_cell_result.py"
|
"rips/PythonExamples/set_cell_result.py"
|
||||||
"rips/PythonExamples/set_flow_diagnostics_result.py"
|
"rips/PythonExamples/set_flow_diagnostics_result.py"
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
# Load ResInsight Processing Server Client Library
|
||||||
|
import rips
|
||||||
|
# Connect to ResInsight instance
|
||||||
|
resinsight = rips.Instance.find()
|
||||||
|
# Example code
|
||||||
|
print("ResInsight version: " + resinsight.version_string())
|
||||||
|
|
||||||
|
case = resinsight.project.case(case_id=0)
|
||||||
|
case.replace(new_grid_file='C:/Users/lindkvis/Projects/ResInsight/TestModels/Case_with_10_timesteps/Real0/BRUGGE_0000.EGRID')
|
Loading…
Reference in New Issue
Block a user