mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-24 14:58:13 -06:00
#14772 Python: Update examples to use the object methods instead of deprecated wrappers
This commit is contained in:
1 parent
072ef45909
commit
eac6fa3482
8 files changed
+34
-21
No files matched your search
@@ -7,6 +7,10 @@ resinsight = rips.Instance.find()
|
||||
print("ResInsight version: " + resinsight.version_string())
|
||||
|
||||
case = resinsight.project.case(case_id=0)
|
||||
case.replace(
|
||||
case.replace_grid(
|
||||
new_grid_file="C:/Users/lindkvis/Projects/ResInsight/TestModels/Case_with_10_timesteps/Real0/BRUGGE_0000.EGRID"
|
||||
)
|
||||
|
||||
# The project is reloaded, so retrieve the case object again
|
||||
case = resinsight.project.case(case_id=0)
|
||||
print("New case name: " + case.name)
|
||||
Reference in new issue
Block a user