#14772 Python: Add View.set_time_step as object method and forward setTimeStep to it

Rim3dView_setTimeStep validates the time step against the owner case
and updates the view. RicfSetTimeStep forwards to it, looping over all
views of the case when viewId is -1. The hand-written Python
View.set_time_step() wrapper is removed since the generated method has
the same name and signature.

Also fix the argument description of the new Rimc methods: the whatsThis
text is the third variadic argument of CAF_PDM_InitScriptableField.
This commit is contained in:
Kristian Bendiksen committed 2026-09-22 14:19:23 +02:00
1 parent e87e372c7b
commit ee28576c48
5 files changed
+97 -53

No files matched your search

-11
View File
@@ -82,17 +82,6 @@ def apply_flow_diagnostics_cell_result(
cell_result.update()
@add_method(View)
def set_time_step(self, time_step):
"""Set the time step for current view"""
case_id = self.case().id
return self._execute_command(
setTimeStep=Cmd.SetTimeStepParams(
caseId=case_id, viewId=self.id, timeStep=time_step
)
)
@add_method(View)
def export_sim_well_fracture_completions(
self, time_step, simulation_well_names, file_split, compdat_export