#14772 Python: Update examples to use the object methods instead of deprecated wrappers

This commit is contained in:
Kristian Bendiksen committed 2026-09-22 14:19:23 +02:00
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)