#14772 Python: Add Reservoir.create_lgr_for_completions and export_lgr_for_completions as object methods

RimEclipseCase_createLgrForCompletions and
RimEclipseCase_exportLgrForCompletions take WellPath objects and
expose refinement and split type. Lgr::SplitType is registered as the
Python StrEnum LgrSplitType. RicfCreateLgrForCompletions forwards to
the create method. Case.create_lgr_for_completion() in Python is kept
and emits a DeprecationWarning.
This commit is contained in:
Kristian Bendiksen committed 2026-09-22 14:19:23 +02:00
1 parent b40d19f55f
commit e54363133e
5 files changed
+343 -77

No files matched your search

+7
View File
@@ -584,7 +584,14 @@ def create_lgr_for_completion(
"LGR_PER_COMPLETION" | One LGR for each completion (fracture, perforation, ...)
"LGR_PER_WELL" | One LGR for each well
Deprecated: use Reservoir.create_lgr_for_completions(well_paths=[...], ...) instead, which takes
WellPath objects.
"""
warnings.warn(
"Case.create_lgr_for_completion() is deprecated, use Reservoir.create_lgr_for_completions() instead",
DeprecationWarning,
stacklevel=3,
)
if isinstance(well_path_names, str):
well_path_names = [well_path_names]
return self._execute_command(