Files
ResInsight/GrpcInterface/Python
Kristian Bendiksen e7608536cf #13982 Python: Tighten Instance.launch/find return type and drop dead None checks
Instance.launch and Instance.find now always either return a connected
Instance or raise RipsError, so their return type narrows from
Optional[Instance] to Instance. In launch(), the unreachable `if pid:`
guard around the Popen result and the trailing `return None` are
removed; the only failure paths raise RipsError.

Update the PythonExamples that previously branched on a None return:
- Drop `if resinsight is None: exit(1)` style guards and `if resinsight
  is not None:` wrappers; dedent the body where applicable.
- export_corner_point_grid.py used the None check as a fallback to
  launch ResInsight; rewrite as try/except rips.RipsError so the
  fallback still works.
- instance_example.py is repurposed as a try/except example for
  reporting connection failure.
2026-05-13 13:47:40 +02:00
..
2021-08-14 17:16:14 +02:00
2021-01-11 15:27:45 +01:00
2021-01-11 15:27:45 +01:00
2021-01-11 15:27:45 +01:00
2021-01-11 15:27:45 +01:00

ResInsight Processing Server - rips

A Python interface for the ResInsight visualization and post-processing suite for Reservoir Simulations

Learn More