mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 07:00:17 -05:00
#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:
1 parent
e87e372c7b
commit
ee28576c48
5 files changed
+97
-53
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user