Files
ResInsight/docs/source/PythonExamples.rst
T

164 lines
5.3 KiB
ReStructuredText
Raw Normal View History

2020-03-20 19:01:04 +01:00
Python Examples
---------------
This pages is created based on the content in the **PythonExamples** folder located inside the **rips** module, made available online for convenience.
========
AllCases
========
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/all_cases.py
==================
AllSimulationWells
==================
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/all_simulation_wells.py
========
AllWells
========
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/all_wells.py
2020-04-16 16:06:18 +02:00
============
2020-03-20 19:01:04 +01:00
AlterWbsPlot
2020-04-16 16:06:18 +02:00
============
2020-03-20 19:01:04 +01:00
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/alter_wbs_plot.py
2020-04-16 16:06:18 +02:00
=============
2020-03-20 19:01:04 +01:00
CaseGridGroup
2020-04-16 16:06:18 +02:00
=============
2020-03-20 19:01:04 +01:00
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/case_grid_group.py
2020-04-16 16:06:18 +02:00
=================
CaseInfoStreaming
=================
2020-03-20 19:01:04 +01:00
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/case_info_streaming_example.py
2020-04-16 16:06:18 +02:00
==============
2020-03-20 19:01:04 +01:00
CellResultData
2020-04-16 16:06:18 +02:00
==============
2020-03-20 19:01:04 +01:00
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/cell_result_data.py
2020-04-16 16:06:18 +02:00
==============
2020-03-20 19:01:04 +01:00
CommandExample
2020-04-16 16:06:18 +02:00
==============
2020-03-20 19:01:04 +01:00
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/command_example.py
2020-04-16 16:06:18 +02:00
===============
2020-03-20 19:01:04 +01:00
Create WBS Plot
2020-04-16 16:06:18 +02:00
===============
2020-03-20 19:01:04 +01:00
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/create_wbs_plot.py
2020-04-16 16:06:18 +02:00
=============
2020-03-20 19:01:04 +01:00
ErrorHandling
2020-04-16 16:06:18 +02:00
=============
2020-03-20 19:01:04 +01:00
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/error_handling.py
2020-04-16 16:06:18 +02:00
=================
2020-03-20 19:01:04 +01:00
ExportContourMaps
2020-04-16 16:06:18 +02:00
=================
2020-03-20 19:01:04 +01:00
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/export_contour_maps.py
2020-04-16 16:06:18 +02:00
===========
2020-03-20 19:01:04 +01:00
ExportPlots
2020-04-16 16:06:18 +02:00
===========
2020-03-20 19:01:04 +01:00
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/export_plots.py
2020-04-16 16:06:18 +02:00
===============
2020-03-20 19:01:04 +01:00
ExportSnapshots
2020-04-16 16:06:18 +02:00
===============
2020-03-20 19:01:04 +01:00
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/export_snapshots.py
2020-04-16 16:06:18 +02:00
===============
2020-03-20 19:01:04 +01:00
GridInformation
2020-04-16 16:06:18 +02:00
===============
2020-03-20 19:01:04 +01:00
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/grid_information.py
2020-04-16 16:06:18 +02:00
=================
2020-03-20 19:01:04 +01:00
Import Well Paths
2020-04-16 16:06:18 +02:00
=================
2020-03-20 19:01:04 +01:00
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/import_well_paths_and_logs.py
2020-04-16 16:06:18 +02:00
==================
2020-03-20 19:01:04 +01:00
InputPropTestAsync
2020-04-16 16:06:18 +02:00
==================
2020-03-20 19:01:04 +01:00
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/input_prop_test_async.py
2020-04-16 16:06:18 +02:00
=================
2020-03-20 19:01:04 +01:00
InputPropTestSync
2020-04-16 16:06:18 +02:00
=================
2020-03-20 19:01:04 +01:00
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/input_prop_test_sync.py
2020-04-16 16:06:18 +02:00
===============
2020-03-20 19:01:04 +01:00
InstanceExample
2020-04-16 16:06:18 +02:00
===============
2020-03-20 19:01:04 +01:00
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/instance_example.py
2020-04-16 16:06:18 +02:00
============================
2020-03-20 19:01:04 +01:00
LaunchWithCommandLineOptions
2020-04-16 16:06:18 +02:00
============================
2020-03-20 19:01:04 +01:00
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/launch_with_commandline_options.py
2020-04-16 16:06:18 +02:00
=================================
2020-03-20 19:01:04 +01:00
Launch Using Command Line Options
2020-04-16 16:06:18 +02:00
=================================
2020-03-20 19:01:04 +01:00
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/launch_with_commandline_options.py
2020-04-16 16:06:18 +02:00
==============
2020-03-20 19:01:04 +01:00
NewSummaryPlot
2020-04-16 16:06:18 +02:00
==============
2020-03-20 19:01:04 +01:00
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/new_summary_plot.py
2020-04-16 16:06:18 +02:00
==============
2020-03-20 19:01:04 +01:00
SelectedCases
2020-04-16 16:06:18 +02:00
==============
2020-03-20 19:01:04 +01:00
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/selected_cases.py
2020-04-16 16:06:18 +02:00
==============
2020-03-20 19:01:04 +01:00
SelectedCells
2020-04-16 16:06:18 +02:00
==============
2020-03-20 19:01:04 +01:00
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/selected_cells.py
2020-04-16 16:06:18 +02:00
==============
2020-03-20 19:01:04 +01:00
SetCellResult
2020-04-16 16:06:18 +02:00
==============
2020-03-20 19:01:04 +01:00
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/set_cell_result.py
2020-04-16 16:06:18 +02:00
========================
2020-03-20 19:01:04 +01:00
SetFlowDiagnosticsResult
2020-04-16 16:06:18 +02:00
========================
2020-03-20 19:01:04 +01:00
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/set_flow_diagnostics_result.py
2020-04-16 16:06:18 +02:00
==================
2020-03-20 19:01:04 +01:00
SetGridProperties
2020-04-16 16:06:18 +02:00
==================
2020-03-20 19:01:04 +01:00
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/set_grid_properties.py
2020-04-16 16:06:18 +02:00
==================================
2020-03-20 19:01:04 +01:00
SoilAverageAsync
2020-04-16 16:06:18 +02:00
==================================
2020-03-20 19:01:04 +01:00
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/soil_average_async.py
2020-04-16 16:06:18 +02:00
==================================
2020-03-20 19:01:04 +01:00
SoilAverageSync
2020-04-16 16:06:18 +02:00
==================================
2020-03-20 19:01:04 +01:00
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/soil_average_sync.py
2020-04-16 16:06:18 +02:00
==================================
2020-03-20 19:01:04 +01:00
SoilPorvAsync
2020-04-16 16:06:18 +02:00
==================================
2020-03-20 19:01:04 +01:00
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/soil_porv_async.py
2020-04-16 16:06:18 +02:00
==================================
2020-03-20 19:01:04 +01:00
SoilPorvSync
2020-04-16 16:06:18 +02:00
==================================
2020-03-20 19:01:04 +01:00
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/soil_porv_sync.py
2020-04-16 16:06:18 +02:00
==================================
SummaryVectors
==================================
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/summary_vectors.py
==================================
2020-03-20 19:01:04 +01:00
ViewExample
2020-04-16 16:06:18 +02:00
==================================
2020-03-20 19:01:04 +01:00
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/view_example.py