mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Configuration for Sphinx
This commit is contained in:
parent
73dabc323d
commit
b49492535a
4
docs/.gitignore
vendored
Normal file
4
docs/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
__pycache__
|
||||
build
|
||||
_build
|
||||
.vscode
|
8
docs/README.md
Normal file
8
docs/README.md
Normal file
@ -0,0 +1,8 @@
|
||||
# ResInsight Scripting API - rips
|
||||
|
||||
A Python interface for the ResInsight visualization and post-processing suite for Reservoir Simulations
|
||||
|
||||
## Please note
|
||||
The folder **rips** is a local copy for testing purposes. We need to be able to communicate the generated files to readthedocs in some way.
|
||||
|
||||
[Learn More](https://www.resinsight.org)
|
35
docs/make.bat
Normal file
35
docs/make.bat
Normal file
@ -0,0 +1,35 @@
|
||||
@ECHO OFF
|
||||
|
||||
pushd %~dp0
|
||||
|
||||
REM Command file for Sphinx documentation
|
||||
|
||||
if "%SPHINXBUILD%" == "" (
|
||||
set SPHINXBUILD=sphinx-build
|
||||
)
|
||||
set SOURCEDIR=source
|
||||
set BUILDDIR=build
|
||||
|
||||
if "%1" == "" goto help
|
||||
|
||||
%SPHINXBUILD% >NUL 2>NUL
|
||||
if errorlevel 9009 (
|
||||
echo.
|
||||
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
|
||||
echo.installed, then set the SPHINXBUILD environment variable to point
|
||||
echo.to the full path of the 'sphinx-build' executable. Alternatively you
|
||||
echo.may add the Sphinx directory to PATH.
|
||||
echo.
|
||||
echo.If you don't have Sphinx installed, grab it from
|
||||
echo.http://sphinx-doc.org/
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
|
||||
goto end
|
||||
|
||||
:help
|
||||
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
|
||||
|
||||
:end
|
||||
popd
|
18
docs/rips/__init__.py
Normal file
18
docs/rips/__init__.py
Normal file
@ -0,0 +1,18 @@
|
||||
name = "rips"
|
||||
|
||||
import os
|
||||
import sys
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'generated'))
|
||||
|
||||
from rips.case import Case, EclipseCase, GeoMechCase
|
||||
from rips.grid import Grid
|
||||
from rips.instance import Instance
|
||||
from rips.pdmobject import PdmObject
|
||||
from rips.view import View
|
||||
from rips.project import Project
|
||||
from rips.plot import Plot, PlotWindow
|
||||
from rips.contour_map import EclipseContourMap, GeoMechContourMap
|
||||
from rips.well_log_plot import WellLogPlot
|
||||
from rips.simulation_well import SimulationWell
|
||||
|
||||
from rips.generated.pdm_objects import *
|
1149
docs/rips/case.py
Normal file
1149
docs/rips/case.py
Normal file
File diff suppressed because it is too large
Load Diff
45
docs/rips/contour_map.py
Normal file
45
docs/rips/contour_map.py
Normal file
@ -0,0 +1,45 @@
|
||||
"""
|
||||
ResInsight 3d contour map module
|
||||
"""
|
||||
import rips.generated.Commands_pb2 as Cmd
|
||||
|
||||
from rips.pdmobject import PdmObject, add_method
|
||||
from rips.view import View
|
||||
from rips.generated.pdm_objects import EclipseContourMap, GeoMechContourMap
|
||||
|
||||
@add_method(EclipseContourMap)
|
||||
def export_to_text(self, export_file_name='', export_local_coordinates=False, undefined_value_label="NaN", exclude_undefined_values=False):
|
||||
""" Export snapshot for the current view
|
||||
|
||||
Arguments:
|
||||
export_file_name(str): The file location to store results in.
|
||||
export_local_coordinates(bool): Should we export local coordinates, or UTM.
|
||||
undefined_value_label(str): Replace undefined values with this label.
|
||||
exclude_undefined_values(bool): Skip undefined values.
|
||||
"""
|
||||
return self._execute_command(
|
||||
exportContourMapToText=Cmd.ExportContourMapToTextRequest(
|
||||
exportFileName=export_file_name,
|
||||
exportLocalCoordinates=export_local_coordinates,
|
||||
undefinedValueLabel=undefined_value_label,
|
||||
excludeUndefinedValues=exclude_undefined_values,
|
||||
viewId=self.id))
|
||||
|
||||
@add_method(GeoMechContourMap)
|
||||
def export_to_text(self, export_file_name='', export_local_coordinates=False, undefined_value_label="NaN", exclude_undefined_values=False):
|
||||
""" Export snapshot for the current view
|
||||
|
||||
Arguments:
|
||||
export_file_name(str): The file location to store results in.
|
||||
export_local_coordinates(bool): Should we export local coordinates, or UTM.
|
||||
undefined_value_label(str): Replace undefined values with this label.
|
||||
exclude_undefined_values(bool): Skip undefined values.
|
||||
"""
|
||||
return self._execute_command(
|
||||
exportContourMapToText=Cmd.ExportContourMapToTextRequest(
|
||||
exportFileName=export_file_name,
|
||||
exportLocalCoordinates=export_local_coordinates,
|
||||
undefinedValueLabel=undefined_value_label,
|
||||
excludeUndefinedValues=exclude_undefined_values,
|
||||
viewId=self.id))
|
||||
|
195
docs/rips/generated/App_pb2.py
Normal file
195
docs/rips/generated/App_pb2.py
Normal file
@ -0,0 +1,195 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: App.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf.internal import enum_type_wrapper
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
import Definitions_pb2 as Definitions__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='App.proto',
|
||||
package='rips',
|
||||
syntax='proto3',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n\tApp.proto\x12\x04rips\x1a\x11\x44\x65\x66initions.proto\"N\n\x07Version\x12\x15\n\rmajor_version\x18\x01 \x01(\x05\x12\x15\n\rminor_version\x18\x02 \x01(\x05\x12\x15\n\rpatch_version\x18\x03 \x01(\x05\":\n\x0bRuntimeInfo\x12+\n\x08\x61pp_type\x18\x01 \x01(\x0e\x32\x19.rips.ApplicationTypeEnum*C\n\x13\x41pplicationTypeEnum\x12\x13\n\x0fGUI_APPLICATION\x10\x00\x12\x17\n\x13\x43ONSOLE_APPLICATION\x10\x01\x32\x89\x01\n\x03\x41pp\x12*\n\nGetVersion\x12\x0b.rips.Empty\x1a\r.rips.Version\"\x00\x12\"\n\x04\x45xit\x12\x0b.rips.Empty\x1a\x0b.rips.Empty\"\x00\x12\x32\n\x0eGetRuntimeInfo\x12\x0b.rips.Empty\x1a\x11.rips.RuntimeInfo\"\x00\x62\x06proto3')
|
||||
,
|
||||
dependencies=[Definitions__pb2.DESCRIPTOR,])
|
||||
|
||||
_APPLICATIONTYPEENUM = _descriptor.EnumDescriptor(
|
||||
name='ApplicationTypeEnum',
|
||||
full_name='rips.ApplicationTypeEnum',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='GUI_APPLICATION', index=0, number=0,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='CONSOLE_APPLICATION', index=1, number=1,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
serialized_options=None,
|
||||
serialized_start=178,
|
||||
serialized_end=245,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_APPLICATIONTYPEENUM)
|
||||
|
||||
ApplicationTypeEnum = enum_type_wrapper.EnumTypeWrapper(_APPLICATIONTYPEENUM)
|
||||
GUI_APPLICATION = 0
|
||||
CONSOLE_APPLICATION = 1
|
||||
|
||||
|
||||
|
||||
_VERSION = _descriptor.Descriptor(
|
||||
name='Version',
|
||||
full_name='rips.Version',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='major_version', full_name='rips.Version.major_version', index=0,
|
||||
number=1, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='minor_version', full_name='rips.Version.minor_version', index=1,
|
||||
number=2, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='patch_version', full_name='rips.Version.patch_version', index=2,
|
||||
number=3, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=38,
|
||||
serialized_end=116,
|
||||
)
|
||||
|
||||
|
||||
_RUNTIMEINFO = _descriptor.Descriptor(
|
||||
name='RuntimeInfo',
|
||||
full_name='rips.RuntimeInfo',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='app_type', full_name='rips.RuntimeInfo.app_type', index=0,
|
||||
number=1, type=14, cpp_type=8, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=118,
|
||||
serialized_end=176,
|
||||
)
|
||||
|
||||
_RUNTIMEINFO.fields_by_name['app_type'].enum_type = _APPLICATIONTYPEENUM
|
||||
DESCRIPTOR.message_types_by_name['Version'] = _VERSION
|
||||
DESCRIPTOR.message_types_by_name['RuntimeInfo'] = _RUNTIMEINFO
|
||||
DESCRIPTOR.enum_types_by_name['ApplicationTypeEnum'] = _APPLICATIONTYPEENUM
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
Version = _reflection.GeneratedProtocolMessageType('Version', (_message.Message,), dict(
|
||||
DESCRIPTOR = _VERSION,
|
||||
__module__ = 'App_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.Version)
|
||||
))
|
||||
_sym_db.RegisterMessage(Version)
|
||||
|
||||
RuntimeInfo = _reflection.GeneratedProtocolMessageType('RuntimeInfo', (_message.Message,), dict(
|
||||
DESCRIPTOR = _RUNTIMEINFO,
|
||||
__module__ = 'App_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.RuntimeInfo)
|
||||
))
|
||||
_sym_db.RegisterMessage(RuntimeInfo)
|
||||
|
||||
|
||||
|
||||
_APP = _descriptor.ServiceDescriptor(
|
||||
name='App',
|
||||
full_name='rips.App',
|
||||
file=DESCRIPTOR,
|
||||
index=0,
|
||||
serialized_options=None,
|
||||
serialized_start=248,
|
||||
serialized_end=385,
|
||||
methods=[
|
||||
_descriptor.MethodDescriptor(
|
||||
name='GetVersion',
|
||||
full_name='rips.App.GetVersion',
|
||||
index=0,
|
||||
containing_service=None,
|
||||
input_type=Definitions__pb2._EMPTY,
|
||||
output_type=_VERSION,
|
||||
serialized_options=None,
|
||||
),
|
||||
_descriptor.MethodDescriptor(
|
||||
name='Exit',
|
||||
full_name='rips.App.Exit',
|
||||
index=1,
|
||||
containing_service=None,
|
||||
input_type=Definitions__pb2._EMPTY,
|
||||
output_type=Definitions__pb2._EMPTY,
|
||||
serialized_options=None,
|
||||
),
|
||||
_descriptor.MethodDescriptor(
|
||||
name='GetRuntimeInfo',
|
||||
full_name='rips.App.GetRuntimeInfo',
|
||||
index=2,
|
||||
containing_service=None,
|
||||
input_type=Definitions__pb2._EMPTY,
|
||||
output_type=_RUNTIMEINFO,
|
||||
serialized_options=None,
|
||||
),
|
||||
])
|
||||
_sym_db.RegisterServiceDescriptor(_APP)
|
||||
|
||||
DESCRIPTOR.services_by_name['App'] = _APP
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
81
docs/rips/generated/App_pb2_grpc.py
Normal file
81
docs/rips/generated/App_pb2_grpc.py
Normal file
@ -0,0 +1,81 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
import grpc
|
||||
|
||||
import App_pb2 as App__pb2
|
||||
import Definitions_pb2 as Definitions__pb2
|
||||
|
||||
|
||||
class AppStub(object):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
|
||||
def __init__(self, channel):
|
||||
"""Constructor.
|
||||
|
||||
Args:
|
||||
channel: A grpc.Channel.
|
||||
"""
|
||||
self.GetVersion = channel.unary_unary(
|
||||
'/rips.App/GetVersion',
|
||||
request_serializer=Definitions__pb2.Empty.SerializeToString,
|
||||
response_deserializer=App__pb2.Version.FromString,
|
||||
)
|
||||
self.Exit = channel.unary_unary(
|
||||
'/rips.App/Exit',
|
||||
request_serializer=Definitions__pb2.Empty.SerializeToString,
|
||||
response_deserializer=Definitions__pb2.Empty.FromString,
|
||||
)
|
||||
self.GetRuntimeInfo = channel.unary_unary(
|
||||
'/rips.App/GetRuntimeInfo',
|
||||
request_serializer=Definitions__pb2.Empty.SerializeToString,
|
||||
response_deserializer=App__pb2.RuntimeInfo.FromString,
|
||||
)
|
||||
|
||||
|
||||
class AppServicer(object):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
|
||||
def GetVersion(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def Exit(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetRuntimeInfo(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
|
||||
def add_AppServicer_to_server(servicer, server):
|
||||
rpc_method_handlers = {
|
||||
'GetVersion': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetVersion,
|
||||
request_deserializer=Definitions__pb2.Empty.FromString,
|
||||
response_serializer=App__pb2.Version.SerializeToString,
|
||||
),
|
||||
'Exit': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Exit,
|
||||
request_deserializer=Definitions__pb2.Empty.FromString,
|
||||
response_serializer=Definitions__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'GetRuntimeInfo': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetRuntimeInfo,
|
||||
request_deserializer=Definitions__pb2.Empty.FromString,
|
||||
response_serializer=App__pb2.RuntimeInfo.SerializeToString,
|
||||
),
|
||||
}
|
||||
generic_handler = grpc.method_handlers_generic_handler(
|
||||
'rips.App', rpc_method_handlers)
|
||||
server.add_generic_rpc_handlers((generic_handler,))
|
1053
docs/rips/generated/Case_pb2.py
Normal file
1053
docs/rips/generated/Case_pb2.py
Normal file
File diff suppressed because it is too large
Load Diff
235
docs/rips/generated/Case_pb2_grpc.py
Normal file
235
docs/rips/generated/Case_pb2_grpc.py
Normal file
@ -0,0 +1,235 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
import grpc
|
||||
|
||||
import Case_pb2 as Case__pb2
|
||||
import Definitions_pb2 as Definitions__pb2
|
||||
import PdmObject_pb2 as PdmObject__pb2
|
||||
|
||||
|
||||
class CaseStub(object):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
|
||||
def __init__(self, channel):
|
||||
"""Constructor.
|
||||
|
||||
Args:
|
||||
channel: A grpc.Channel.
|
||||
"""
|
||||
self.GetGridCount = channel.unary_unary(
|
||||
'/rips.Case/GetGridCount',
|
||||
request_serializer=Case__pb2.CaseRequest.SerializeToString,
|
||||
response_deserializer=Case__pb2.GridCount.FromString,
|
||||
)
|
||||
self.GetCellCount = channel.unary_unary(
|
||||
'/rips.Case/GetCellCount',
|
||||
request_serializer=Case__pb2.CellInfoRequest.SerializeToString,
|
||||
response_deserializer=Case__pb2.CellCount.FromString,
|
||||
)
|
||||
self.GetCellInfoForActiveCells = channel.unary_stream(
|
||||
'/rips.Case/GetCellInfoForActiveCells',
|
||||
request_serializer=Case__pb2.CellInfoRequest.SerializeToString,
|
||||
response_deserializer=Case__pb2.CellInfoArray.FromString,
|
||||
)
|
||||
self.GetCellCenterForActiveCells = channel.unary_stream(
|
||||
'/rips.Case/GetCellCenterForActiveCells',
|
||||
request_serializer=Case__pb2.CellInfoRequest.SerializeToString,
|
||||
response_deserializer=Definitions__pb2.CellCenters.FromString,
|
||||
)
|
||||
self.GetCellCornersForActiveCells = channel.unary_stream(
|
||||
'/rips.Case/GetCellCornersForActiveCells',
|
||||
request_serializer=Case__pb2.CellInfoRequest.SerializeToString,
|
||||
response_deserializer=Definitions__pb2.CellCornersArray.FromString,
|
||||
)
|
||||
self.GetCoarseningInfoArray = channel.unary_unary(
|
||||
'/rips.Case/GetCoarseningInfoArray',
|
||||
request_serializer=Case__pb2.CaseRequest.SerializeToString,
|
||||
response_deserializer=Case__pb2.CoarseningInfoArray.FromString,
|
||||
)
|
||||
self.GetTimeSteps = channel.unary_unary(
|
||||
'/rips.Case/GetTimeSteps',
|
||||
request_serializer=Case__pb2.CaseRequest.SerializeToString,
|
||||
response_deserializer=Case__pb2.TimeStepDates.FromString,
|
||||
)
|
||||
self.GetSelectedCells = channel.unary_stream(
|
||||
'/rips.Case/GetSelectedCells',
|
||||
request_serializer=Case__pb2.CaseRequest.SerializeToString,
|
||||
response_deserializer=Case__pb2.SelectedCells.FromString,
|
||||
)
|
||||
self.GetDaysSinceStart = channel.unary_unary(
|
||||
'/rips.Case/GetDaysSinceStart',
|
||||
request_serializer=Case__pb2.CaseRequest.SerializeToString,
|
||||
response_deserializer=Case__pb2.DaysSinceStart.FromString,
|
||||
)
|
||||
self.GetCaseInfo = channel.unary_unary(
|
||||
'/rips.Case/GetCaseInfo',
|
||||
request_serializer=Case__pb2.CaseRequest.SerializeToString,
|
||||
response_deserializer=Case__pb2.CaseInfo.FromString,
|
||||
)
|
||||
self.GetPdmObject = channel.unary_unary(
|
||||
'/rips.Case/GetPdmObject',
|
||||
request_serializer=Case__pb2.CaseRequest.SerializeToString,
|
||||
response_deserializer=PdmObject__pb2.PdmObject.FromString,
|
||||
)
|
||||
self.GetReservoirBoundingBox = channel.unary_unary(
|
||||
'/rips.Case/GetReservoirBoundingBox',
|
||||
request_serializer=Case__pb2.CaseRequest.SerializeToString,
|
||||
response_deserializer=Case__pb2.BoundingBox.FromString,
|
||||
)
|
||||
|
||||
|
||||
class CaseServicer(object):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
|
||||
def GetGridCount(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetCellCount(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetCellInfoForActiveCells(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetCellCenterForActiveCells(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetCellCornersForActiveCells(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetCoarseningInfoArray(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetTimeSteps(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetSelectedCells(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetDaysSinceStart(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetCaseInfo(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetPdmObject(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetReservoirBoundingBox(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
|
||||
def add_CaseServicer_to_server(servicer, server):
|
||||
rpc_method_handlers = {
|
||||
'GetGridCount': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetGridCount,
|
||||
request_deserializer=Case__pb2.CaseRequest.FromString,
|
||||
response_serializer=Case__pb2.GridCount.SerializeToString,
|
||||
),
|
||||
'GetCellCount': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetCellCount,
|
||||
request_deserializer=Case__pb2.CellInfoRequest.FromString,
|
||||
response_serializer=Case__pb2.CellCount.SerializeToString,
|
||||
),
|
||||
'GetCellInfoForActiveCells': grpc.unary_stream_rpc_method_handler(
|
||||
servicer.GetCellInfoForActiveCells,
|
||||
request_deserializer=Case__pb2.CellInfoRequest.FromString,
|
||||
response_serializer=Case__pb2.CellInfoArray.SerializeToString,
|
||||
),
|
||||
'GetCellCenterForActiveCells': grpc.unary_stream_rpc_method_handler(
|
||||
servicer.GetCellCenterForActiveCells,
|
||||
request_deserializer=Case__pb2.CellInfoRequest.FromString,
|
||||
response_serializer=Definitions__pb2.CellCenters.SerializeToString,
|
||||
),
|
||||
'GetCellCornersForActiveCells': grpc.unary_stream_rpc_method_handler(
|
||||
servicer.GetCellCornersForActiveCells,
|
||||
request_deserializer=Case__pb2.CellInfoRequest.FromString,
|
||||
response_serializer=Definitions__pb2.CellCornersArray.SerializeToString,
|
||||
),
|
||||
'GetCoarseningInfoArray': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetCoarseningInfoArray,
|
||||
request_deserializer=Case__pb2.CaseRequest.FromString,
|
||||
response_serializer=Case__pb2.CoarseningInfoArray.SerializeToString,
|
||||
),
|
||||
'GetTimeSteps': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetTimeSteps,
|
||||
request_deserializer=Case__pb2.CaseRequest.FromString,
|
||||
response_serializer=Case__pb2.TimeStepDates.SerializeToString,
|
||||
),
|
||||
'GetSelectedCells': grpc.unary_stream_rpc_method_handler(
|
||||
servicer.GetSelectedCells,
|
||||
request_deserializer=Case__pb2.CaseRequest.FromString,
|
||||
response_serializer=Case__pb2.SelectedCells.SerializeToString,
|
||||
),
|
||||
'GetDaysSinceStart': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetDaysSinceStart,
|
||||
request_deserializer=Case__pb2.CaseRequest.FromString,
|
||||
response_serializer=Case__pb2.DaysSinceStart.SerializeToString,
|
||||
),
|
||||
'GetCaseInfo': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetCaseInfo,
|
||||
request_deserializer=Case__pb2.CaseRequest.FromString,
|
||||
response_serializer=Case__pb2.CaseInfo.SerializeToString,
|
||||
),
|
||||
'GetPdmObject': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetPdmObject,
|
||||
request_deserializer=Case__pb2.CaseRequest.FromString,
|
||||
response_serializer=PdmObject__pb2.PdmObject.SerializeToString,
|
||||
),
|
||||
'GetReservoirBoundingBox': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetReservoirBoundingBox,
|
||||
request_deserializer=Case__pb2.CaseRequest.FromString,
|
||||
response_serializer=Case__pb2.BoundingBox.SerializeToString,
|
||||
),
|
||||
}
|
||||
generic_handler = grpc.method_handlers_generic_handler(
|
||||
'rips.Case', rpc_method_handlers)
|
||||
server.add_generic_rpc_handlers((generic_handler,))
|
3174
docs/rips/generated/Commands_pb2.py
Normal file
3174
docs/rips/generated/Commands_pb2.py
Normal file
File diff suppressed because one or more lines are too long
56
docs/rips/generated/Commands_pb2_grpc.py
Normal file
56
docs/rips/generated/Commands_pb2_grpc.py
Normal file
@ -0,0 +1,56 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
import grpc
|
||||
|
||||
import Commands_pb2 as Commands__pb2
|
||||
|
||||
|
||||
class CommandsStub(object):
|
||||
"""
|
||||
The Commands service handles generic ResInsight RicfCommandObject-commands
|
||||
The CommandParams is used to deduce command name from the chosen oneof-message
|
||||
.. and the parameters are in the oneof-message itself.
|
||||
Note that we several times duplicate nearly the same message. This is because
|
||||
it is not recommended to reuse existing messages for different purposes.
|
||||
"""
|
||||
|
||||
def __init__(self, channel):
|
||||
"""Constructor.
|
||||
|
||||
Args:
|
||||
channel: A grpc.Channel.
|
||||
"""
|
||||
self.Execute = channel.unary_unary(
|
||||
'/rips.Commands/Execute',
|
||||
request_serializer=Commands__pb2.CommandParams.SerializeToString,
|
||||
response_deserializer=Commands__pb2.CommandReply.FromString,
|
||||
)
|
||||
|
||||
|
||||
class CommandsServicer(object):
|
||||
"""
|
||||
The Commands service handles generic ResInsight RicfCommandObject-commands
|
||||
The CommandParams is used to deduce command name from the chosen oneof-message
|
||||
.. and the parameters are in the oneof-message itself.
|
||||
Note that we several times duplicate nearly the same message. This is because
|
||||
it is not recommended to reuse existing messages for different purposes.
|
||||
"""
|
||||
|
||||
def Execute(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
|
||||
def add_CommandsServicer_to_server(servicer, server):
|
||||
rpc_method_handlers = {
|
||||
'Execute': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Execute,
|
||||
request_deserializer=Commands__pb2.CommandParams.FromString,
|
||||
response_serializer=Commands__pb2.CommandReply.SerializeToString,
|
||||
),
|
||||
}
|
||||
generic_handler = grpc.method_handlers_generic_handler(
|
||||
'rips.Commands', rpc_method_handlers)
|
||||
server.add_generic_rpc_handlers((generic_handler,))
|
384
docs/rips/generated/Definitions_pb2.py
Normal file
384
docs/rips/generated/Definitions_pb2.py
Normal file
@ -0,0 +1,384 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: Definitions.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='Definitions.proto',
|
||||
package='rips',
|
||||
syntax='proto3',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n\x11\x44\x65\x66initions.proto\x12\x04rips\"\x07\n\x05\x45mpty\"9\n\x19\x43lientToServerStreamReply\x12\x1c\n\x14\x61\x63\x63\x65pted_value_count\x18\x01 \x01(\x03\"(\n\x05Vec3i\x12\t\n\x01i\x18\x01 \x01(\x05\x12\t\n\x01j\x18\x02 \x01(\x05\x12\t\n\x01k\x18\x03 \x01(\x05\"(\n\x05Vec3d\x12\t\n\x01x\x18\x01 \x01(\x01\x12\t\n\x01y\x18\x02 \x01(\x01\x12\t\n\x01z\x18\x03 \x01(\x01\"+\n\x0b\x43\x65llCenters\x12\x1c\n\x07\x63\x65nters\x18\x01 \x03(\x0b\x32\x0b.rips.Vec3d\"\xd5\x01\n\x0b\x43\x65llCorners\x12\x17\n\x02\x63\x30\x18\x01 \x01(\x0b\x32\x0b.rips.Vec3d\x12\x17\n\x02\x63\x31\x18\x02 \x01(\x0b\x32\x0b.rips.Vec3d\x12\x17\n\x02\x63\x32\x18\x03 \x01(\x0b\x32\x0b.rips.Vec3d\x12\x17\n\x02\x63\x33\x18\x04 \x01(\x0b\x32\x0b.rips.Vec3d\x12\x17\n\x02\x63\x34\x18\x05 \x01(\x0b\x32\x0b.rips.Vec3d\x12\x17\n\x02\x63\x35\x18\x06 \x01(\x0b\x32\x0b.rips.Vec3d\x12\x17\n\x02\x63\x36\x18\x07 \x01(\x0b\x32\x0b.rips.Vec3d\x12\x17\n\x02\x63\x37\x18\x08 \x01(\x0b\x32\x0b.rips.Vec3d\"4\n\x10\x43\x65llCornersArray\x12 \n\x05\x63\x65lls\x18\x01 \x03(\x0b\x32\x11.rips.CellCornersb\x06proto3')
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
_EMPTY = _descriptor.Descriptor(
|
||||
name='Empty',
|
||||
full_name='rips.Empty',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=27,
|
||||
serialized_end=34,
|
||||
)
|
||||
|
||||
|
||||
_CLIENTTOSERVERSTREAMREPLY = _descriptor.Descriptor(
|
||||
name='ClientToServerStreamReply',
|
||||
full_name='rips.ClientToServerStreamReply',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='accepted_value_count', full_name='rips.ClientToServerStreamReply.accepted_value_count', index=0,
|
||||
number=1, type=3, cpp_type=2, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=36,
|
||||
serialized_end=93,
|
||||
)
|
||||
|
||||
|
||||
_VEC3I = _descriptor.Descriptor(
|
||||
name='Vec3i',
|
||||
full_name='rips.Vec3i',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='i', full_name='rips.Vec3i.i', index=0,
|
||||
number=1, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='j', full_name='rips.Vec3i.j', index=1,
|
||||
number=2, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='k', full_name='rips.Vec3i.k', index=2,
|
||||
number=3, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=95,
|
||||
serialized_end=135,
|
||||
)
|
||||
|
||||
|
||||
_VEC3D = _descriptor.Descriptor(
|
||||
name='Vec3d',
|
||||
full_name='rips.Vec3d',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='x', full_name='rips.Vec3d.x', index=0,
|
||||
number=1, type=1, cpp_type=5, label=1,
|
||||
has_default_value=False, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='y', full_name='rips.Vec3d.y', index=1,
|
||||
number=2, type=1, cpp_type=5, label=1,
|
||||
has_default_value=False, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='z', full_name='rips.Vec3d.z', index=2,
|
||||
number=3, type=1, cpp_type=5, label=1,
|
||||
has_default_value=False, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=137,
|
||||
serialized_end=177,
|
||||
)
|
||||
|
||||
|
||||
_CELLCENTERS = _descriptor.Descriptor(
|
||||
name='CellCenters',
|
||||
full_name='rips.CellCenters',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='centers', full_name='rips.CellCenters.centers', index=0,
|
||||
number=1, type=11, cpp_type=10, label=3,
|
||||
has_default_value=False, default_value=[],
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=179,
|
||||
serialized_end=222,
|
||||
)
|
||||
|
||||
|
||||
_CELLCORNERS = _descriptor.Descriptor(
|
||||
name='CellCorners',
|
||||
full_name='rips.CellCorners',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='c0', full_name='rips.CellCorners.c0', index=0,
|
||||
number=1, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='c1', full_name='rips.CellCorners.c1', index=1,
|
||||
number=2, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='c2', full_name='rips.CellCorners.c2', index=2,
|
||||
number=3, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='c3', full_name='rips.CellCorners.c3', index=3,
|
||||
number=4, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='c4', full_name='rips.CellCorners.c4', index=4,
|
||||
number=5, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='c5', full_name='rips.CellCorners.c5', index=5,
|
||||
number=6, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='c6', full_name='rips.CellCorners.c6', index=6,
|
||||
number=7, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='c7', full_name='rips.CellCorners.c7', index=7,
|
||||
number=8, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=225,
|
||||
serialized_end=438,
|
||||
)
|
||||
|
||||
|
||||
_CELLCORNERSARRAY = _descriptor.Descriptor(
|
||||
name='CellCornersArray',
|
||||
full_name='rips.CellCornersArray',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='cells', full_name='rips.CellCornersArray.cells', index=0,
|
||||
number=1, type=11, cpp_type=10, label=3,
|
||||
has_default_value=False, default_value=[],
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=440,
|
||||
serialized_end=492,
|
||||
)
|
||||
|
||||
_CELLCENTERS.fields_by_name['centers'].message_type = _VEC3D
|
||||
_CELLCORNERS.fields_by_name['c0'].message_type = _VEC3D
|
||||
_CELLCORNERS.fields_by_name['c1'].message_type = _VEC3D
|
||||
_CELLCORNERS.fields_by_name['c2'].message_type = _VEC3D
|
||||
_CELLCORNERS.fields_by_name['c3'].message_type = _VEC3D
|
||||
_CELLCORNERS.fields_by_name['c4'].message_type = _VEC3D
|
||||
_CELLCORNERS.fields_by_name['c5'].message_type = _VEC3D
|
||||
_CELLCORNERS.fields_by_name['c6'].message_type = _VEC3D
|
||||
_CELLCORNERS.fields_by_name['c7'].message_type = _VEC3D
|
||||
_CELLCORNERSARRAY.fields_by_name['cells'].message_type = _CELLCORNERS
|
||||
DESCRIPTOR.message_types_by_name['Empty'] = _EMPTY
|
||||
DESCRIPTOR.message_types_by_name['ClientToServerStreamReply'] = _CLIENTTOSERVERSTREAMREPLY
|
||||
DESCRIPTOR.message_types_by_name['Vec3i'] = _VEC3I
|
||||
DESCRIPTOR.message_types_by_name['Vec3d'] = _VEC3D
|
||||
DESCRIPTOR.message_types_by_name['CellCenters'] = _CELLCENTERS
|
||||
DESCRIPTOR.message_types_by_name['CellCorners'] = _CELLCORNERS
|
||||
DESCRIPTOR.message_types_by_name['CellCornersArray'] = _CELLCORNERSARRAY
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
Empty = _reflection.GeneratedProtocolMessageType('Empty', (_message.Message,), dict(
|
||||
DESCRIPTOR = _EMPTY,
|
||||
__module__ = 'Definitions_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.Empty)
|
||||
))
|
||||
_sym_db.RegisterMessage(Empty)
|
||||
|
||||
ClientToServerStreamReply = _reflection.GeneratedProtocolMessageType('ClientToServerStreamReply', (_message.Message,), dict(
|
||||
DESCRIPTOR = _CLIENTTOSERVERSTREAMREPLY,
|
||||
__module__ = 'Definitions_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.ClientToServerStreamReply)
|
||||
))
|
||||
_sym_db.RegisterMessage(ClientToServerStreamReply)
|
||||
|
||||
Vec3i = _reflection.GeneratedProtocolMessageType('Vec3i', (_message.Message,), dict(
|
||||
DESCRIPTOR = _VEC3I,
|
||||
__module__ = 'Definitions_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.Vec3i)
|
||||
))
|
||||
_sym_db.RegisterMessage(Vec3i)
|
||||
|
||||
Vec3d = _reflection.GeneratedProtocolMessageType('Vec3d', (_message.Message,), dict(
|
||||
DESCRIPTOR = _VEC3D,
|
||||
__module__ = 'Definitions_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.Vec3d)
|
||||
))
|
||||
_sym_db.RegisterMessage(Vec3d)
|
||||
|
||||
CellCenters = _reflection.GeneratedProtocolMessageType('CellCenters', (_message.Message,), dict(
|
||||
DESCRIPTOR = _CELLCENTERS,
|
||||
__module__ = 'Definitions_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.CellCenters)
|
||||
))
|
||||
_sym_db.RegisterMessage(CellCenters)
|
||||
|
||||
CellCorners = _reflection.GeneratedProtocolMessageType('CellCorners', (_message.Message,), dict(
|
||||
DESCRIPTOR = _CELLCORNERS,
|
||||
__module__ = 'Definitions_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.CellCorners)
|
||||
))
|
||||
_sym_db.RegisterMessage(CellCorners)
|
||||
|
||||
CellCornersArray = _reflection.GeneratedProtocolMessageType('CellCornersArray', (_message.Message,), dict(
|
||||
DESCRIPTOR = _CELLCORNERSARRAY,
|
||||
__module__ = 'Definitions_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.CellCornersArray)
|
||||
))
|
||||
_sym_db.RegisterMessage(CellCornersArray)
|
||||
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
3
docs/rips/generated/Definitions_pb2_grpc.py
Normal file
3
docs/rips/generated/Definitions_pb2_grpc.py
Normal file
@ -0,0 +1,3 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
import grpc
|
||||
|
163
docs/rips/generated/Grid_pb2.py
Normal file
163
docs/rips/generated/Grid_pb2.py
Normal file
@ -0,0 +1,163 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: Grid.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
import Definitions_pb2 as Definitions__pb2
|
||||
import Case_pb2 as Case__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='Grid.proto',
|
||||
package='rips',
|
||||
syntax='proto3',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n\nGrid.proto\x12\x04rips\x1a\x11\x44\x65\x66initions.proto\x1a\nCase.proto\"J\n\x0bGridRequest\x12\'\n\x0c\x63\x61se_request\x18\x01 \x01(\x0b\x32\x11.rips.CaseRequest\x12\x12\n\ngrid_index\x18\x02 \x01(\x05\"1\n\x0eGridDimensions\x12\x1f\n\ndimensions\x18\x01 \x01(\x0b\x32\x0b.rips.Vec3i2\xbf\x01\n\x04Grid\x12:\n\x0eGetCellCenters\x12\x11.rips.GridRequest\x1a\x11.rips.CellCenters\"\x00\x30\x01\x12?\n\x0eGetCellCorners\x12\x11.rips.GridRequest\x1a\x16.rips.CellCornersArray\"\x00\x30\x01\x12:\n\rGetDimensions\x12\x11.rips.GridRequest\x1a\x14.rips.GridDimensions\"\x00\x62\x06proto3')
|
||||
,
|
||||
dependencies=[Definitions__pb2.DESCRIPTOR,Case__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
|
||||
_GRIDREQUEST = _descriptor.Descriptor(
|
||||
name='GridRequest',
|
||||
full_name='rips.GridRequest',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='case_request', full_name='rips.GridRequest.case_request', index=0,
|
||||
number=1, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='grid_index', full_name='rips.GridRequest.grid_index', index=1,
|
||||
number=2, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=51,
|
||||
serialized_end=125,
|
||||
)
|
||||
|
||||
|
||||
_GRIDDIMENSIONS = _descriptor.Descriptor(
|
||||
name='GridDimensions',
|
||||
full_name='rips.GridDimensions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='dimensions', full_name='rips.GridDimensions.dimensions', index=0,
|
||||
number=1, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=127,
|
||||
serialized_end=176,
|
||||
)
|
||||
|
||||
_GRIDREQUEST.fields_by_name['case_request'].message_type = Case__pb2._CASEREQUEST
|
||||
_GRIDDIMENSIONS.fields_by_name['dimensions'].message_type = Definitions__pb2._VEC3I
|
||||
DESCRIPTOR.message_types_by_name['GridRequest'] = _GRIDREQUEST
|
||||
DESCRIPTOR.message_types_by_name['GridDimensions'] = _GRIDDIMENSIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
GridRequest = _reflection.GeneratedProtocolMessageType('GridRequest', (_message.Message,), dict(
|
||||
DESCRIPTOR = _GRIDREQUEST,
|
||||
__module__ = 'Grid_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.GridRequest)
|
||||
))
|
||||
_sym_db.RegisterMessage(GridRequest)
|
||||
|
||||
GridDimensions = _reflection.GeneratedProtocolMessageType('GridDimensions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _GRIDDIMENSIONS,
|
||||
__module__ = 'Grid_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.GridDimensions)
|
||||
))
|
||||
_sym_db.RegisterMessage(GridDimensions)
|
||||
|
||||
|
||||
|
||||
_GRID = _descriptor.ServiceDescriptor(
|
||||
name='Grid',
|
||||
full_name='rips.Grid',
|
||||
file=DESCRIPTOR,
|
||||
index=0,
|
||||
serialized_options=None,
|
||||
serialized_start=179,
|
||||
serialized_end=370,
|
||||
methods=[
|
||||
_descriptor.MethodDescriptor(
|
||||
name='GetCellCenters',
|
||||
full_name='rips.Grid.GetCellCenters',
|
||||
index=0,
|
||||
containing_service=None,
|
||||
input_type=_GRIDREQUEST,
|
||||
output_type=Definitions__pb2._CELLCENTERS,
|
||||
serialized_options=None,
|
||||
),
|
||||
_descriptor.MethodDescriptor(
|
||||
name='GetCellCorners',
|
||||
full_name='rips.Grid.GetCellCorners',
|
||||
index=1,
|
||||
containing_service=None,
|
||||
input_type=_GRIDREQUEST,
|
||||
output_type=Definitions__pb2._CELLCORNERSARRAY,
|
||||
serialized_options=None,
|
||||
),
|
||||
_descriptor.MethodDescriptor(
|
||||
name='GetDimensions',
|
||||
full_name='rips.Grid.GetDimensions',
|
||||
index=2,
|
||||
containing_service=None,
|
||||
input_type=_GRIDREQUEST,
|
||||
output_type=_GRIDDIMENSIONS,
|
||||
serialized_options=None,
|
||||
),
|
||||
])
|
||||
_sym_db.RegisterServiceDescriptor(_GRID)
|
||||
|
||||
DESCRIPTOR.services_by_name['Grid'] = _GRID
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
81
docs/rips/generated/Grid_pb2_grpc.py
Normal file
81
docs/rips/generated/Grid_pb2_grpc.py
Normal file
@ -0,0 +1,81 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
import grpc
|
||||
|
||||
import Definitions_pb2 as Definitions__pb2
|
||||
import Grid_pb2 as Grid__pb2
|
||||
|
||||
|
||||
class GridStub(object):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
|
||||
def __init__(self, channel):
|
||||
"""Constructor.
|
||||
|
||||
Args:
|
||||
channel: A grpc.Channel.
|
||||
"""
|
||||
self.GetCellCenters = channel.unary_stream(
|
||||
'/rips.Grid/GetCellCenters',
|
||||
request_serializer=Grid__pb2.GridRequest.SerializeToString,
|
||||
response_deserializer=Definitions__pb2.CellCenters.FromString,
|
||||
)
|
||||
self.GetCellCorners = channel.unary_stream(
|
||||
'/rips.Grid/GetCellCorners',
|
||||
request_serializer=Grid__pb2.GridRequest.SerializeToString,
|
||||
response_deserializer=Definitions__pb2.CellCornersArray.FromString,
|
||||
)
|
||||
self.GetDimensions = channel.unary_unary(
|
||||
'/rips.Grid/GetDimensions',
|
||||
request_serializer=Grid__pb2.GridRequest.SerializeToString,
|
||||
response_deserializer=Grid__pb2.GridDimensions.FromString,
|
||||
)
|
||||
|
||||
|
||||
class GridServicer(object):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
|
||||
def GetCellCenters(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetCellCorners(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetDimensions(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
|
||||
def add_GridServicer_to_server(servicer, server):
|
||||
rpc_method_handlers = {
|
||||
'GetCellCenters': grpc.unary_stream_rpc_method_handler(
|
||||
servicer.GetCellCenters,
|
||||
request_deserializer=Grid__pb2.GridRequest.FromString,
|
||||
response_serializer=Definitions__pb2.CellCenters.SerializeToString,
|
||||
),
|
||||
'GetCellCorners': grpc.unary_stream_rpc_method_handler(
|
||||
servicer.GetCellCorners,
|
||||
request_deserializer=Grid__pb2.GridRequest.FromString,
|
||||
response_serializer=Definitions__pb2.CellCornersArray.SerializeToString,
|
||||
),
|
||||
'GetDimensions': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetDimensions,
|
||||
request_deserializer=Grid__pb2.GridRequest.FromString,
|
||||
response_serializer=Grid__pb2.GridDimensions.SerializeToString,
|
||||
),
|
||||
}
|
||||
generic_handler = grpc.method_handlers_generic_handler(
|
||||
'rips.Grid', rpc_method_handlers)
|
||||
server.add_generic_rpc_handlers((generic_handler,))
|
524
docs/rips/generated/NNCProperties_pb2.py
Normal file
524
docs/rips/generated/NNCProperties_pb2.py
Normal file
@ -0,0 +1,524 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: NNCProperties.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf.internal import enum_type_wrapper
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
import Case_pb2 as Case__pb2
|
||||
import Definitions_pb2 as Definitions__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='NNCProperties.proto',
|
||||
package='rips',
|
||||
syntax='proto3',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n\x13NNCProperties.proto\x12\x04rips\x1a\nCase.proto\x1a\x11\x44\x65\x66initions.proto\"R\n\x14\x41vailableNNCProperty\x12\x0c\n\x04name\x18\x01 \x01(\t\x12,\n\rproperty_type\x18\x02 \x01(\x0e\x32\x15.rips.NNCPropertyType\"H\n\x16\x41vailableNNCProperties\x12.\n\nproperties\x18\x01 \x03(\x0b\x32\x1a.rips.AvailableNNCProperty\"{\n\rNNCConnection\x12\x18\n\x10\x63\x65ll_grid_index1\x18\x01 \x01(\x05\x12\x18\n\x10\x63\x65ll_grid_index2\x18\x02 \x01(\x05\x12\x1a\n\x05\x63\x65ll1\x18\x03 \x01(\x0b\x32\x0b.rips.Vec3i\x12\x1a\n\x05\x63\x65ll2\x18\x04 \x01(\x0b\x32\x0b.rips.Vec3i\":\n\x0eNNCConnections\x12(\n\x0b\x63onnections\x18\x01 \x03(\x0b\x32\x13.rips.NNCConnection\"{\n\x10NNCValuesRequest\x12\x0f\n\x07\x63\x61se_id\x18\x01 \x01(\x05\x12\x15\n\rproperty_name\x18\x02 \x01(\t\x12,\n\rproperty_type\x18\x03 \x01(\x0e\x32\x15.rips.NNCPropertyType\x12\x11\n\ttime_step\x18\x04 \x01(\x05\"\x1b\n\tNNCValues\x12\x0e\n\x06values\x18\x01 \x03(\x01\"\x83\x01\n\x15NNCValuesInputRequest\x12\x0f\n\x07\x63\x61se_id\x18\x01 \x01(\x05\x12\x15\n\rproperty_name\x18\x02 \x01(\t\x12/\n\x0eporosity_model\x18\x03 \x01(\x0e\x32\x17.rips.PorosityModelType\x12\x11\n\ttime_step\x18\x04 \x01(\x05\"o\n\x0eNNCValuesChunk\x12-\n\x06params\x18\x01 \x01(\x0b\x32\x1b.rips.NNCValuesInputRequestH\x00\x12!\n\x06values\x18\x02 \x01(\x0b\x32\x0f.rips.NNCValuesH\x00\x42\x0b\n\tChunkType*E\n\x0fNNCPropertyType\x12\x0f\n\x0bNNC_DYNAMIC\x10\x00\x12\x0e\n\nNNC_STATIC\x10\x01\x12\x11\n\rNNC_GENERATED\x10\x02\x32\xa9\x02\n\rNNCProperties\x12N\n\x19GetAvailableNNCProperties\x12\x11.rips.CaseRequest\x1a\x1c.rips.AvailableNNCProperties\"\x00\x12@\n\x11GetNNCConnections\x12\x11.rips.CaseRequest\x1a\x14.rips.NNCConnections\"\x00\x30\x01\x12;\n\x0cGetNNCValues\x12\x16.rips.NNCValuesRequest\x1a\x0f.rips.NNCValues\"\x00\x30\x01\x12I\n\x0cSetNNCValues\x12\x14.rips.NNCValuesChunk\x1a\x1f.rips.ClientToServerStreamReply\"\x00(\x01\x62\x06proto3')
|
||||
,
|
||||
dependencies=[Case__pb2.DESCRIPTOR,Definitions__pb2.DESCRIPTOR,])
|
||||
|
||||
_NNCPROPERTYTYPE = _descriptor.EnumDescriptor(
|
||||
name='NNCPropertyType',
|
||||
full_name='rips.NNCPropertyType',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='NNC_DYNAMIC', index=0, number=0,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='NNC_STATIC', index=1, number=1,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='NNC_GENERATED', index=2, number=2,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
serialized_options=None,
|
||||
serialized_start=804,
|
||||
serialized_end=873,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_NNCPROPERTYTYPE)
|
||||
|
||||
NNCPropertyType = enum_type_wrapper.EnumTypeWrapper(_NNCPROPERTYTYPE)
|
||||
NNC_DYNAMIC = 0
|
||||
NNC_STATIC = 1
|
||||
NNC_GENERATED = 2
|
||||
|
||||
|
||||
|
||||
_AVAILABLENNCPROPERTY = _descriptor.Descriptor(
|
||||
name='AvailableNNCProperty',
|
||||
full_name='rips.AvailableNNCProperty',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='name', full_name='rips.AvailableNNCProperty.name', index=0,
|
||||
number=1, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='property_type', full_name='rips.AvailableNNCProperty.property_type', index=1,
|
||||
number=2, type=14, cpp_type=8, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=60,
|
||||
serialized_end=142,
|
||||
)
|
||||
|
||||
|
||||
_AVAILABLENNCPROPERTIES = _descriptor.Descriptor(
|
||||
name='AvailableNNCProperties',
|
||||
full_name='rips.AvailableNNCProperties',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='properties', full_name='rips.AvailableNNCProperties.properties', index=0,
|
||||
number=1, type=11, cpp_type=10, label=3,
|
||||
has_default_value=False, default_value=[],
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=144,
|
||||
serialized_end=216,
|
||||
)
|
||||
|
||||
|
||||
_NNCCONNECTION = _descriptor.Descriptor(
|
||||
name='NNCConnection',
|
||||
full_name='rips.NNCConnection',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='cell_grid_index1', full_name='rips.NNCConnection.cell_grid_index1', index=0,
|
||||
number=1, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='cell_grid_index2', full_name='rips.NNCConnection.cell_grid_index2', index=1,
|
||||
number=2, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='cell1', full_name='rips.NNCConnection.cell1', index=2,
|
||||
number=3, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='cell2', full_name='rips.NNCConnection.cell2', index=3,
|
||||
number=4, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=218,
|
||||
serialized_end=341,
|
||||
)
|
||||
|
||||
|
||||
_NNCCONNECTIONS = _descriptor.Descriptor(
|
||||
name='NNCConnections',
|
||||
full_name='rips.NNCConnections',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='connections', full_name='rips.NNCConnections.connections', index=0,
|
||||
number=1, type=11, cpp_type=10, label=3,
|
||||
has_default_value=False, default_value=[],
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=343,
|
||||
serialized_end=401,
|
||||
)
|
||||
|
||||
|
||||
_NNCVALUESREQUEST = _descriptor.Descriptor(
|
||||
name='NNCValuesRequest',
|
||||
full_name='rips.NNCValuesRequest',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='case_id', full_name='rips.NNCValuesRequest.case_id', index=0,
|
||||
number=1, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='property_name', full_name='rips.NNCValuesRequest.property_name', index=1,
|
||||
number=2, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='property_type', full_name='rips.NNCValuesRequest.property_type', index=2,
|
||||
number=3, type=14, cpp_type=8, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='time_step', full_name='rips.NNCValuesRequest.time_step', index=3,
|
||||
number=4, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=403,
|
||||
serialized_end=526,
|
||||
)
|
||||
|
||||
|
||||
_NNCVALUES = _descriptor.Descriptor(
|
||||
name='NNCValues',
|
||||
full_name='rips.NNCValues',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='values', full_name='rips.NNCValues.values', index=0,
|
||||
number=1, type=1, cpp_type=5, label=3,
|
||||
has_default_value=False, default_value=[],
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=528,
|
||||
serialized_end=555,
|
||||
)
|
||||
|
||||
|
||||
_NNCVALUESINPUTREQUEST = _descriptor.Descriptor(
|
||||
name='NNCValuesInputRequest',
|
||||
full_name='rips.NNCValuesInputRequest',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='case_id', full_name='rips.NNCValuesInputRequest.case_id', index=0,
|
||||
number=1, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='property_name', full_name='rips.NNCValuesInputRequest.property_name', index=1,
|
||||
number=2, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='porosity_model', full_name='rips.NNCValuesInputRequest.porosity_model', index=2,
|
||||
number=3, type=14, cpp_type=8, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='time_step', full_name='rips.NNCValuesInputRequest.time_step', index=3,
|
||||
number=4, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=558,
|
||||
serialized_end=689,
|
||||
)
|
||||
|
||||
|
||||
_NNCVALUESCHUNK = _descriptor.Descriptor(
|
||||
name='NNCValuesChunk',
|
||||
full_name='rips.NNCValuesChunk',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='params', full_name='rips.NNCValuesChunk.params', index=0,
|
||||
number=1, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='values', full_name='rips.NNCValuesChunk.values', index=1,
|
||||
number=2, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
_descriptor.OneofDescriptor(
|
||||
name='ChunkType', full_name='rips.NNCValuesChunk.ChunkType',
|
||||
index=0, containing_type=None, fields=[]),
|
||||
],
|
||||
serialized_start=691,
|
||||
serialized_end=802,
|
||||
)
|
||||
|
||||
_AVAILABLENNCPROPERTY.fields_by_name['property_type'].enum_type = _NNCPROPERTYTYPE
|
||||
_AVAILABLENNCPROPERTIES.fields_by_name['properties'].message_type = _AVAILABLENNCPROPERTY
|
||||
_NNCCONNECTION.fields_by_name['cell1'].message_type = Definitions__pb2._VEC3I
|
||||
_NNCCONNECTION.fields_by_name['cell2'].message_type = Definitions__pb2._VEC3I
|
||||
_NNCCONNECTIONS.fields_by_name['connections'].message_type = _NNCCONNECTION
|
||||
_NNCVALUESREQUEST.fields_by_name['property_type'].enum_type = _NNCPROPERTYTYPE
|
||||
_NNCVALUESINPUTREQUEST.fields_by_name['porosity_model'].enum_type = Case__pb2._POROSITYMODELTYPE
|
||||
_NNCVALUESCHUNK.fields_by_name['params'].message_type = _NNCVALUESINPUTREQUEST
|
||||
_NNCVALUESCHUNK.fields_by_name['values'].message_type = _NNCVALUES
|
||||
_NNCVALUESCHUNK.oneofs_by_name['ChunkType'].fields.append(
|
||||
_NNCVALUESCHUNK.fields_by_name['params'])
|
||||
_NNCVALUESCHUNK.fields_by_name['params'].containing_oneof = _NNCVALUESCHUNK.oneofs_by_name['ChunkType']
|
||||
_NNCVALUESCHUNK.oneofs_by_name['ChunkType'].fields.append(
|
||||
_NNCVALUESCHUNK.fields_by_name['values'])
|
||||
_NNCVALUESCHUNK.fields_by_name['values'].containing_oneof = _NNCVALUESCHUNK.oneofs_by_name['ChunkType']
|
||||
DESCRIPTOR.message_types_by_name['AvailableNNCProperty'] = _AVAILABLENNCPROPERTY
|
||||
DESCRIPTOR.message_types_by_name['AvailableNNCProperties'] = _AVAILABLENNCPROPERTIES
|
||||
DESCRIPTOR.message_types_by_name['NNCConnection'] = _NNCCONNECTION
|
||||
DESCRIPTOR.message_types_by_name['NNCConnections'] = _NNCCONNECTIONS
|
||||
DESCRIPTOR.message_types_by_name['NNCValuesRequest'] = _NNCVALUESREQUEST
|
||||
DESCRIPTOR.message_types_by_name['NNCValues'] = _NNCVALUES
|
||||
DESCRIPTOR.message_types_by_name['NNCValuesInputRequest'] = _NNCVALUESINPUTREQUEST
|
||||
DESCRIPTOR.message_types_by_name['NNCValuesChunk'] = _NNCVALUESCHUNK
|
||||
DESCRIPTOR.enum_types_by_name['NNCPropertyType'] = _NNCPROPERTYTYPE
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
AvailableNNCProperty = _reflection.GeneratedProtocolMessageType('AvailableNNCProperty', (_message.Message,), dict(
|
||||
DESCRIPTOR = _AVAILABLENNCPROPERTY,
|
||||
__module__ = 'NNCProperties_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.AvailableNNCProperty)
|
||||
))
|
||||
_sym_db.RegisterMessage(AvailableNNCProperty)
|
||||
|
||||
AvailableNNCProperties = _reflection.GeneratedProtocolMessageType('AvailableNNCProperties', (_message.Message,), dict(
|
||||
DESCRIPTOR = _AVAILABLENNCPROPERTIES,
|
||||
__module__ = 'NNCProperties_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.AvailableNNCProperties)
|
||||
))
|
||||
_sym_db.RegisterMessage(AvailableNNCProperties)
|
||||
|
||||
NNCConnection = _reflection.GeneratedProtocolMessageType('NNCConnection', (_message.Message,), dict(
|
||||
DESCRIPTOR = _NNCCONNECTION,
|
||||
__module__ = 'NNCProperties_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.NNCConnection)
|
||||
))
|
||||
_sym_db.RegisterMessage(NNCConnection)
|
||||
|
||||
NNCConnections = _reflection.GeneratedProtocolMessageType('NNCConnections', (_message.Message,), dict(
|
||||
DESCRIPTOR = _NNCCONNECTIONS,
|
||||
__module__ = 'NNCProperties_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.NNCConnections)
|
||||
))
|
||||
_sym_db.RegisterMessage(NNCConnections)
|
||||
|
||||
NNCValuesRequest = _reflection.GeneratedProtocolMessageType('NNCValuesRequest', (_message.Message,), dict(
|
||||
DESCRIPTOR = _NNCVALUESREQUEST,
|
||||
__module__ = 'NNCProperties_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.NNCValuesRequest)
|
||||
))
|
||||
_sym_db.RegisterMessage(NNCValuesRequest)
|
||||
|
||||
NNCValues = _reflection.GeneratedProtocolMessageType('NNCValues', (_message.Message,), dict(
|
||||
DESCRIPTOR = _NNCVALUES,
|
||||
__module__ = 'NNCProperties_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.NNCValues)
|
||||
))
|
||||
_sym_db.RegisterMessage(NNCValues)
|
||||
|
||||
NNCValuesInputRequest = _reflection.GeneratedProtocolMessageType('NNCValuesInputRequest', (_message.Message,), dict(
|
||||
DESCRIPTOR = _NNCVALUESINPUTREQUEST,
|
||||
__module__ = 'NNCProperties_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.NNCValuesInputRequest)
|
||||
))
|
||||
_sym_db.RegisterMessage(NNCValuesInputRequest)
|
||||
|
||||
NNCValuesChunk = _reflection.GeneratedProtocolMessageType('NNCValuesChunk', (_message.Message,), dict(
|
||||
DESCRIPTOR = _NNCVALUESCHUNK,
|
||||
__module__ = 'NNCProperties_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.NNCValuesChunk)
|
||||
))
|
||||
_sym_db.RegisterMessage(NNCValuesChunk)
|
||||
|
||||
|
||||
|
||||
_NNCPROPERTIES = _descriptor.ServiceDescriptor(
|
||||
name='NNCProperties',
|
||||
full_name='rips.NNCProperties',
|
||||
file=DESCRIPTOR,
|
||||
index=0,
|
||||
serialized_options=None,
|
||||
serialized_start=876,
|
||||
serialized_end=1173,
|
||||
methods=[
|
||||
_descriptor.MethodDescriptor(
|
||||
name='GetAvailableNNCProperties',
|
||||
full_name='rips.NNCProperties.GetAvailableNNCProperties',
|
||||
index=0,
|
||||
containing_service=None,
|
||||
input_type=Case__pb2._CASEREQUEST,
|
||||
output_type=_AVAILABLENNCPROPERTIES,
|
||||
serialized_options=None,
|
||||
),
|
||||
_descriptor.MethodDescriptor(
|
||||
name='GetNNCConnections',
|
||||
full_name='rips.NNCProperties.GetNNCConnections',
|
||||
index=1,
|
||||
containing_service=None,
|
||||
input_type=Case__pb2._CASEREQUEST,
|
||||
output_type=_NNCCONNECTIONS,
|
||||
serialized_options=None,
|
||||
),
|
||||
_descriptor.MethodDescriptor(
|
||||
name='GetNNCValues',
|
||||
full_name='rips.NNCProperties.GetNNCValues',
|
||||
index=2,
|
||||
containing_service=None,
|
||||
input_type=_NNCVALUESREQUEST,
|
||||
output_type=_NNCVALUES,
|
||||
serialized_options=None,
|
||||
),
|
||||
_descriptor.MethodDescriptor(
|
||||
name='SetNNCValues',
|
||||
full_name='rips.NNCProperties.SetNNCValues',
|
||||
index=3,
|
||||
containing_service=None,
|
||||
input_type=_NNCVALUESCHUNK,
|
||||
output_type=Definitions__pb2._CLIENTTOSERVERSTREAMREPLY,
|
||||
serialized_options=None,
|
||||
),
|
||||
])
|
||||
_sym_db.RegisterServiceDescriptor(_NNCPROPERTIES)
|
||||
|
||||
DESCRIPTOR.services_by_name['NNCProperties'] = _NNCPROPERTIES
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
99
docs/rips/generated/NNCProperties_pb2_grpc.py
Normal file
99
docs/rips/generated/NNCProperties_pb2_grpc.py
Normal file
@ -0,0 +1,99 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
import grpc
|
||||
|
||||
import Case_pb2 as Case__pb2
|
||||
import Definitions_pb2 as Definitions__pb2
|
||||
import NNCProperties_pb2 as NNCProperties__pb2
|
||||
|
||||
|
||||
class NNCPropertiesStub(object):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
|
||||
def __init__(self, channel):
|
||||
"""Constructor.
|
||||
|
||||
Args:
|
||||
channel: A grpc.Channel.
|
||||
"""
|
||||
self.GetAvailableNNCProperties = channel.unary_unary(
|
||||
'/rips.NNCProperties/GetAvailableNNCProperties',
|
||||
request_serializer=Case__pb2.CaseRequest.SerializeToString,
|
||||
response_deserializer=NNCProperties__pb2.AvailableNNCProperties.FromString,
|
||||
)
|
||||
self.GetNNCConnections = channel.unary_stream(
|
||||
'/rips.NNCProperties/GetNNCConnections',
|
||||
request_serializer=Case__pb2.CaseRequest.SerializeToString,
|
||||
response_deserializer=NNCProperties__pb2.NNCConnections.FromString,
|
||||
)
|
||||
self.GetNNCValues = channel.unary_stream(
|
||||
'/rips.NNCProperties/GetNNCValues',
|
||||
request_serializer=NNCProperties__pb2.NNCValuesRequest.SerializeToString,
|
||||
response_deserializer=NNCProperties__pb2.NNCValues.FromString,
|
||||
)
|
||||
self.SetNNCValues = channel.stream_unary(
|
||||
'/rips.NNCProperties/SetNNCValues',
|
||||
request_serializer=NNCProperties__pb2.NNCValuesChunk.SerializeToString,
|
||||
response_deserializer=Definitions__pb2.ClientToServerStreamReply.FromString,
|
||||
)
|
||||
|
||||
|
||||
class NNCPropertiesServicer(object):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
|
||||
def GetAvailableNNCProperties(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetNNCConnections(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetNNCValues(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def SetNNCValues(self, request_iterator, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
|
||||
def add_NNCPropertiesServicer_to_server(servicer, server):
|
||||
rpc_method_handlers = {
|
||||
'GetAvailableNNCProperties': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetAvailableNNCProperties,
|
||||
request_deserializer=Case__pb2.CaseRequest.FromString,
|
||||
response_serializer=NNCProperties__pb2.AvailableNNCProperties.SerializeToString,
|
||||
),
|
||||
'GetNNCConnections': grpc.unary_stream_rpc_method_handler(
|
||||
servicer.GetNNCConnections,
|
||||
request_deserializer=Case__pb2.CaseRequest.FromString,
|
||||
response_serializer=NNCProperties__pb2.NNCConnections.SerializeToString,
|
||||
),
|
||||
'GetNNCValues': grpc.unary_stream_rpc_method_handler(
|
||||
servicer.GetNNCValues,
|
||||
request_deserializer=NNCProperties__pb2.NNCValuesRequest.FromString,
|
||||
response_serializer=NNCProperties__pb2.NNCValues.SerializeToString,
|
||||
),
|
||||
'SetNNCValues': grpc.stream_unary_rpc_method_handler(
|
||||
servicer.SetNNCValues,
|
||||
request_deserializer=NNCProperties__pb2.NNCValuesChunk.FromString,
|
||||
response_serializer=Definitions__pb2.ClientToServerStreamReply.SerializeToString,
|
||||
),
|
||||
}
|
||||
generic_handler = grpc.method_handlers_generic_handler(
|
||||
'rips.NNCProperties', rpc_method_handlers)
|
||||
server.add_generic_rpc_handlers((generic_handler,))
|
876
docs/rips/generated/PdmObject_pb2.py
Normal file
876
docs/rips/generated/PdmObject_pb2.py
Normal file
@ -0,0 +1,876 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: PdmObject.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
import Definitions_pb2 as Definitions__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='PdmObject.proto',
|
||||
package='rips',
|
||||
syntax='proto3',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n\x0fPdmObject.proto\x12\x04rips\x1a\x11\x44\x65\x66initions.proto\"T\n\x1aPdmDescendantObjectRequest\x12\x1f\n\x06object\x18\x01 \x01(\x0b\x32\x0f.rips.PdmObject\x12\x15\n\rchild_keyword\x18\x02 \x01(\t\"M\n\x15PdmChildObjectRequest\x12\x1f\n\x06object\x18\x01 \x01(\x0b\x32\x0f.rips.PdmObject\x12\x13\n\x0b\x63hild_field\x18\x02 \x01(\t\"S\n\x1b\x43reatePdmChildObjectRequest\x12\x1f\n\x06object\x18\x01 \x01(\x0b\x32\x0f.rips.PdmObject\x12\x13\n\x0b\x63hild_field\x18\x02 \x01(\t\"Q\n\x16PdmParentObjectRequest\x12\x1f\n\x06object\x18\x01 \x01(\x0b\x32\x0f.rips.PdmObject\x12\x16\n\x0eparent_keyword\x18\x02 \x01(\t\"\xc0\x01\n\tPdmObject\x12\x15\n\rclass_keyword\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x02 \x01(\x04\x12\x33\n\nparameters\x18\x03 \x03(\x0b\x32\x1f.rips.PdmObject.ParametersEntry\x12\x0f\n\x07visible\x18\x04 \x01(\x08\x12\x12\n\npersistent\x18\x05 \x01(\x08\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"2\n\x0ePdmObjectArray\x12 \n\x07objects\x18\x01 \x03(\x0b\x32\x0f.rips.PdmObject\"I\n\x16PdmObjectGetterRequest\x12\x1f\n\x06object\x18\x01 \x01(\x0b\x32\x0f.rips.PdmObject\x12\x0e\n\x06method\x18\x02 \x01(\t\"[\n\x16PdmObjectSetterRequest\x12-\n\x07request\x18\x01 \x01(\x0b\x32\x1c.rips.PdmObjectGetterRequest\x12\x12\n\ndata_count\x18\x02 \x01(\x05\"\xbf\x01\n\x14PdmObjectSetterChunk\x12\x33\n\x0bset_request\x18\x01 \x01(\x0b\x32\x1c.rips.PdmObjectSetterRequestH\x00\x12$\n\x07\x64oubles\x18\x02 \x01(\x0b\x32\x11.rips.DoubleArrayH\x00\x12\x1e\n\x04ints\x18\x03 \x01(\x0b\x32\x0e.rips.IntArrayH\x00\x12$\n\x07strings\x18\x04 \x01(\x0b\x32\x11.rips.StringArrayH\x00\x42\x06\n\x04\x64\x61ta\"\x1b\n\x0b\x44oubleArray\x12\x0c\n\x04\x64\x61ta\x18\x01 \x03(\x01\"\x18\n\x08IntArray\x12\x0c\n\x04\x64\x61ta\x18\x01 \x03(\x05\"\x1b\n\x0bStringArray\x12\x0c\n\x04\x64\x61ta\x18\x01 \x03(\t\"\x8a\x01\n\x14PdmObjectGetterReply\x12$\n\x07\x64oubles\x18\x01 \x01(\x0b\x32\x11.rips.DoubleArrayH\x00\x12\x1e\n\x04ints\x18\x02 \x01(\x0b\x32\x0e.rips.IntArrayH\x00\x12$\n\x07strings\x18\x03 \x01(\x0b\x32\x11.rips.StringArrayH\x00\x42\x06\n\x04\x64\x61ta\"j\n\x16PdmObjectMethodRequest\x12\x1f\n\x06object\x18\x01 \x01(\x0b\x32\x0f.rips.PdmObject\x12\x0e\n\x06method\x18\x02 \x01(\t\x12\x1f\n\x06params\x18\x03 \x01(\x0b\x32\x0f.rips.PdmObject2\xf9\x04\n\x10PdmObjectService\x12S\n\x17GetDescendantPdmObjects\x12 .rips.PdmDescendantObjectRequest\x1a\x14.rips.PdmObjectArray\"\x00\x12I\n\x12GetChildPdmObjects\x12\x1b.rips.PdmChildObjectRequest\x1a\x14.rips.PdmObjectArray\"\x00\x12G\n\x14GetAncestorPdmObject\x12\x1c.rips.PdmParentObjectRequest\x1a\x0f.rips.PdmObject\"\x00\x12L\n\x14\x43reateChildPdmObject\x12!.rips.CreatePdmChildObjectRequest\x1a\x0f.rips.PdmObject\"\x00\x12\x39\n\x17UpdateExistingPdmObject\x12\x0f.rips.PdmObject\x1a\x0b.rips.Empty\"\x00\x12S\n\x13\x43\x61llPdmObjectGetter\x12\x1c.rips.PdmObjectGetterRequest\x1a\x1a.rips.PdmObjectGetterReply\"\x00\x30\x01\x12V\n\x13\x43\x61llPdmObjectSetter\x12\x1a.rips.PdmObjectSetterChunk\x1a\x1f.rips.ClientToServerStreamReply\"\x00(\x01\x12\x46\n\x13\x43\x61llPdmObjectMethod\x12\x1c.rips.PdmObjectMethodRequest\x1a\x0f.rips.PdmObject\"\x00\x62\x06proto3')
|
||||
,
|
||||
dependencies=[Definitions__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
|
||||
_PDMDESCENDANTOBJECTREQUEST = _descriptor.Descriptor(
|
||||
name='PdmDescendantObjectRequest',
|
||||
full_name='rips.PdmDescendantObjectRequest',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='object', full_name='rips.PdmDescendantObjectRequest.object', index=0,
|
||||
number=1, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='child_keyword', full_name='rips.PdmDescendantObjectRequest.child_keyword', index=1,
|
||||
number=2, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=44,
|
||||
serialized_end=128,
|
||||
)
|
||||
|
||||
|
||||
_PDMCHILDOBJECTREQUEST = _descriptor.Descriptor(
|
||||
name='PdmChildObjectRequest',
|
||||
full_name='rips.PdmChildObjectRequest',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='object', full_name='rips.PdmChildObjectRequest.object', index=0,
|
||||
number=1, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='child_field', full_name='rips.PdmChildObjectRequest.child_field', index=1,
|
||||
number=2, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=130,
|
||||
serialized_end=207,
|
||||
)
|
||||
|
||||
|
||||
_CREATEPDMCHILDOBJECTREQUEST = _descriptor.Descriptor(
|
||||
name='CreatePdmChildObjectRequest',
|
||||
full_name='rips.CreatePdmChildObjectRequest',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='object', full_name='rips.CreatePdmChildObjectRequest.object', index=0,
|
||||
number=1, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='child_field', full_name='rips.CreatePdmChildObjectRequest.child_field', index=1,
|
||||
number=2, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=209,
|
||||
serialized_end=292,
|
||||
)
|
||||
|
||||
|
||||
_PDMPARENTOBJECTREQUEST = _descriptor.Descriptor(
|
||||
name='PdmParentObjectRequest',
|
||||
full_name='rips.PdmParentObjectRequest',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='object', full_name='rips.PdmParentObjectRequest.object', index=0,
|
||||
number=1, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='parent_keyword', full_name='rips.PdmParentObjectRequest.parent_keyword', index=1,
|
||||
number=2, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=294,
|
||||
serialized_end=375,
|
||||
)
|
||||
|
||||
|
||||
_PDMOBJECT_PARAMETERSENTRY = _descriptor.Descriptor(
|
||||
name='ParametersEntry',
|
||||
full_name='rips.PdmObject.ParametersEntry',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='key', full_name='rips.PdmObject.ParametersEntry.key', index=0,
|
||||
number=1, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='value', full_name='rips.PdmObject.ParametersEntry.value', index=1,
|
||||
number=2, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=_b('8\001'),
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=521,
|
||||
serialized_end=570,
|
||||
)
|
||||
|
||||
_PDMOBJECT = _descriptor.Descriptor(
|
||||
name='PdmObject',
|
||||
full_name='rips.PdmObject',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='class_keyword', full_name='rips.PdmObject.class_keyword', index=0,
|
||||
number=1, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='address', full_name='rips.PdmObject.address', index=1,
|
||||
number=2, type=4, cpp_type=4, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='parameters', full_name='rips.PdmObject.parameters', index=2,
|
||||
number=3, type=11, cpp_type=10, label=3,
|
||||
has_default_value=False, default_value=[],
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='visible', full_name='rips.PdmObject.visible', index=3,
|
||||
number=4, type=8, cpp_type=7, label=1,
|
||||
has_default_value=False, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='persistent', full_name='rips.PdmObject.persistent', index=4,
|
||||
number=5, type=8, cpp_type=7, label=1,
|
||||
has_default_value=False, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[_PDMOBJECT_PARAMETERSENTRY, ],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=378,
|
||||
serialized_end=570,
|
||||
)
|
||||
|
||||
|
||||
_PDMOBJECTARRAY = _descriptor.Descriptor(
|
||||
name='PdmObjectArray',
|
||||
full_name='rips.PdmObjectArray',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='objects', full_name='rips.PdmObjectArray.objects', index=0,
|
||||
number=1, type=11, cpp_type=10, label=3,
|
||||
has_default_value=False, default_value=[],
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=572,
|
||||
serialized_end=622,
|
||||
)
|
||||
|
||||
|
||||
_PDMOBJECTGETTERREQUEST = _descriptor.Descriptor(
|
||||
name='PdmObjectGetterRequest',
|
||||
full_name='rips.PdmObjectGetterRequest',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='object', full_name='rips.PdmObjectGetterRequest.object', index=0,
|
||||
number=1, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='method', full_name='rips.PdmObjectGetterRequest.method', index=1,
|
||||
number=2, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=624,
|
||||
serialized_end=697,
|
||||
)
|
||||
|
||||
|
||||
_PDMOBJECTSETTERREQUEST = _descriptor.Descriptor(
|
||||
name='PdmObjectSetterRequest',
|
||||
full_name='rips.PdmObjectSetterRequest',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='request', full_name='rips.PdmObjectSetterRequest.request', index=0,
|
||||
number=1, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='data_count', full_name='rips.PdmObjectSetterRequest.data_count', index=1,
|
||||
number=2, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=699,
|
||||
serialized_end=790,
|
||||
)
|
||||
|
||||
|
||||
_PDMOBJECTSETTERCHUNK = _descriptor.Descriptor(
|
||||
name='PdmObjectSetterChunk',
|
||||
full_name='rips.PdmObjectSetterChunk',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='set_request', full_name='rips.PdmObjectSetterChunk.set_request', index=0,
|
||||
number=1, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='doubles', full_name='rips.PdmObjectSetterChunk.doubles', index=1,
|
||||
number=2, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ints', full_name='rips.PdmObjectSetterChunk.ints', index=2,
|
||||
number=3, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='strings', full_name='rips.PdmObjectSetterChunk.strings', index=3,
|
||||
number=4, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
_descriptor.OneofDescriptor(
|
||||
name='data', full_name='rips.PdmObjectSetterChunk.data',
|
||||
index=0, containing_type=None, fields=[]),
|
||||
],
|
||||
serialized_start=793,
|
||||
serialized_end=984,
|
||||
)
|
||||
|
||||
|
||||
_DOUBLEARRAY = _descriptor.Descriptor(
|
||||
name='DoubleArray',
|
||||
full_name='rips.DoubleArray',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='data', full_name='rips.DoubleArray.data', index=0,
|
||||
number=1, type=1, cpp_type=5, label=3,
|
||||
has_default_value=False, default_value=[],
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=986,
|
||||
serialized_end=1013,
|
||||
)
|
||||
|
||||
|
||||
_INTARRAY = _descriptor.Descriptor(
|
||||
name='IntArray',
|
||||
full_name='rips.IntArray',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='data', full_name='rips.IntArray.data', index=0,
|
||||
number=1, type=5, cpp_type=1, label=3,
|
||||
has_default_value=False, default_value=[],
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=1015,
|
||||
serialized_end=1039,
|
||||
)
|
||||
|
||||
|
||||
_STRINGARRAY = _descriptor.Descriptor(
|
||||
name='StringArray',
|
||||
full_name='rips.StringArray',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='data', full_name='rips.StringArray.data', index=0,
|
||||
number=1, type=9, cpp_type=9, label=3,
|
||||
has_default_value=False, default_value=[],
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=1041,
|
||||
serialized_end=1068,
|
||||
)
|
||||
|
||||
|
||||
_PDMOBJECTGETTERREPLY = _descriptor.Descriptor(
|
||||
name='PdmObjectGetterReply',
|
||||
full_name='rips.PdmObjectGetterReply',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='doubles', full_name='rips.PdmObjectGetterReply.doubles', index=0,
|
||||
number=1, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ints', full_name='rips.PdmObjectGetterReply.ints', index=1,
|
||||
number=2, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='strings', full_name='rips.PdmObjectGetterReply.strings', index=2,
|
||||
number=3, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
_descriptor.OneofDescriptor(
|
||||
name='data', full_name='rips.PdmObjectGetterReply.data',
|
||||
index=0, containing_type=None, fields=[]),
|
||||
],
|
||||
serialized_start=1071,
|
||||
serialized_end=1209,
|
||||
)
|
||||
|
||||
|
||||
_PDMOBJECTMETHODREQUEST = _descriptor.Descriptor(
|
||||
name='PdmObjectMethodRequest',
|
||||
full_name='rips.PdmObjectMethodRequest',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='object', full_name='rips.PdmObjectMethodRequest.object', index=0,
|
||||
number=1, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='method', full_name='rips.PdmObjectMethodRequest.method', index=1,
|
||||
number=2, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='params', full_name='rips.PdmObjectMethodRequest.params', index=2,
|
||||
number=3, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=1211,
|
||||
serialized_end=1317,
|
||||
)
|
||||
|
||||
_PDMDESCENDANTOBJECTREQUEST.fields_by_name['object'].message_type = _PDMOBJECT
|
||||
_PDMCHILDOBJECTREQUEST.fields_by_name['object'].message_type = _PDMOBJECT
|
||||
_CREATEPDMCHILDOBJECTREQUEST.fields_by_name['object'].message_type = _PDMOBJECT
|
||||
_PDMPARENTOBJECTREQUEST.fields_by_name['object'].message_type = _PDMOBJECT
|
||||
_PDMOBJECT_PARAMETERSENTRY.containing_type = _PDMOBJECT
|
||||
_PDMOBJECT.fields_by_name['parameters'].message_type = _PDMOBJECT_PARAMETERSENTRY
|
||||
_PDMOBJECTARRAY.fields_by_name['objects'].message_type = _PDMOBJECT
|
||||
_PDMOBJECTGETTERREQUEST.fields_by_name['object'].message_type = _PDMOBJECT
|
||||
_PDMOBJECTSETTERREQUEST.fields_by_name['request'].message_type = _PDMOBJECTGETTERREQUEST
|
||||
_PDMOBJECTSETTERCHUNK.fields_by_name['set_request'].message_type = _PDMOBJECTSETTERREQUEST
|
||||
_PDMOBJECTSETTERCHUNK.fields_by_name['doubles'].message_type = _DOUBLEARRAY
|
||||
_PDMOBJECTSETTERCHUNK.fields_by_name['ints'].message_type = _INTARRAY
|
||||
_PDMOBJECTSETTERCHUNK.fields_by_name['strings'].message_type = _STRINGARRAY
|
||||
_PDMOBJECTSETTERCHUNK.oneofs_by_name['data'].fields.append(
|
||||
_PDMOBJECTSETTERCHUNK.fields_by_name['set_request'])
|
||||
_PDMOBJECTSETTERCHUNK.fields_by_name['set_request'].containing_oneof = _PDMOBJECTSETTERCHUNK.oneofs_by_name['data']
|
||||
_PDMOBJECTSETTERCHUNK.oneofs_by_name['data'].fields.append(
|
||||
_PDMOBJECTSETTERCHUNK.fields_by_name['doubles'])
|
||||
_PDMOBJECTSETTERCHUNK.fields_by_name['doubles'].containing_oneof = _PDMOBJECTSETTERCHUNK.oneofs_by_name['data']
|
||||
_PDMOBJECTSETTERCHUNK.oneofs_by_name['data'].fields.append(
|
||||
_PDMOBJECTSETTERCHUNK.fields_by_name['ints'])
|
||||
_PDMOBJECTSETTERCHUNK.fields_by_name['ints'].containing_oneof = _PDMOBJECTSETTERCHUNK.oneofs_by_name['data']
|
||||
_PDMOBJECTSETTERCHUNK.oneofs_by_name['data'].fields.append(
|
||||
_PDMOBJECTSETTERCHUNK.fields_by_name['strings'])
|
||||
_PDMOBJECTSETTERCHUNK.fields_by_name['strings'].containing_oneof = _PDMOBJECTSETTERCHUNK.oneofs_by_name['data']
|
||||
_PDMOBJECTGETTERREPLY.fields_by_name['doubles'].message_type = _DOUBLEARRAY
|
||||
_PDMOBJECTGETTERREPLY.fields_by_name['ints'].message_type = _INTARRAY
|
||||
_PDMOBJECTGETTERREPLY.fields_by_name['strings'].message_type = _STRINGARRAY
|
||||
_PDMOBJECTGETTERREPLY.oneofs_by_name['data'].fields.append(
|
||||
_PDMOBJECTGETTERREPLY.fields_by_name['doubles'])
|
||||
_PDMOBJECTGETTERREPLY.fields_by_name['doubles'].containing_oneof = _PDMOBJECTGETTERREPLY.oneofs_by_name['data']
|
||||
_PDMOBJECTGETTERREPLY.oneofs_by_name['data'].fields.append(
|
||||
_PDMOBJECTGETTERREPLY.fields_by_name['ints'])
|
||||
_PDMOBJECTGETTERREPLY.fields_by_name['ints'].containing_oneof = _PDMOBJECTGETTERREPLY.oneofs_by_name['data']
|
||||
_PDMOBJECTGETTERREPLY.oneofs_by_name['data'].fields.append(
|
||||
_PDMOBJECTGETTERREPLY.fields_by_name['strings'])
|
||||
_PDMOBJECTGETTERREPLY.fields_by_name['strings'].containing_oneof = _PDMOBJECTGETTERREPLY.oneofs_by_name['data']
|
||||
_PDMOBJECTMETHODREQUEST.fields_by_name['object'].message_type = _PDMOBJECT
|
||||
_PDMOBJECTMETHODREQUEST.fields_by_name['params'].message_type = _PDMOBJECT
|
||||
DESCRIPTOR.message_types_by_name['PdmDescendantObjectRequest'] = _PDMDESCENDANTOBJECTREQUEST
|
||||
DESCRIPTOR.message_types_by_name['PdmChildObjectRequest'] = _PDMCHILDOBJECTREQUEST
|
||||
DESCRIPTOR.message_types_by_name['CreatePdmChildObjectRequest'] = _CREATEPDMCHILDOBJECTREQUEST
|
||||
DESCRIPTOR.message_types_by_name['PdmParentObjectRequest'] = _PDMPARENTOBJECTREQUEST
|
||||
DESCRIPTOR.message_types_by_name['PdmObject'] = _PDMOBJECT
|
||||
DESCRIPTOR.message_types_by_name['PdmObjectArray'] = _PDMOBJECTARRAY
|
||||
DESCRIPTOR.message_types_by_name['PdmObjectGetterRequest'] = _PDMOBJECTGETTERREQUEST
|
||||
DESCRIPTOR.message_types_by_name['PdmObjectSetterRequest'] = _PDMOBJECTSETTERREQUEST
|
||||
DESCRIPTOR.message_types_by_name['PdmObjectSetterChunk'] = _PDMOBJECTSETTERCHUNK
|
||||
DESCRIPTOR.message_types_by_name['DoubleArray'] = _DOUBLEARRAY
|
||||
DESCRIPTOR.message_types_by_name['IntArray'] = _INTARRAY
|
||||
DESCRIPTOR.message_types_by_name['StringArray'] = _STRINGARRAY
|
||||
DESCRIPTOR.message_types_by_name['PdmObjectGetterReply'] = _PDMOBJECTGETTERREPLY
|
||||
DESCRIPTOR.message_types_by_name['PdmObjectMethodRequest'] = _PDMOBJECTMETHODREQUEST
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
PdmDescendantObjectRequest = _reflection.GeneratedProtocolMessageType('PdmDescendantObjectRequest', (_message.Message,), dict(
|
||||
DESCRIPTOR = _PDMDESCENDANTOBJECTREQUEST,
|
||||
__module__ = 'PdmObject_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.PdmDescendantObjectRequest)
|
||||
))
|
||||
_sym_db.RegisterMessage(PdmDescendantObjectRequest)
|
||||
|
||||
PdmChildObjectRequest = _reflection.GeneratedProtocolMessageType('PdmChildObjectRequest', (_message.Message,), dict(
|
||||
DESCRIPTOR = _PDMCHILDOBJECTREQUEST,
|
||||
__module__ = 'PdmObject_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.PdmChildObjectRequest)
|
||||
))
|
||||
_sym_db.RegisterMessage(PdmChildObjectRequest)
|
||||
|
||||
CreatePdmChildObjectRequest = _reflection.GeneratedProtocolMessageType('CreatePdmChildObjectRequest', (_message.Message,), dict(
|
||||
DESCRIPTOR = _CREATEPDMCHILDOBJECTREQUEST,
|
||||
__module__ = 'PdmObject_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.CreatePdmChildObjectRequest)
|
||||
))
|
||||
_sym_db.RegisterMessage(CreatePdmChildObjectRequest)
|
||||
|
||||
PdmParentObjectRequest = _reflection.GeneratedProtocolMessageType('PdmParentObjectRequest', (_message.Message,), dict(
|
||||
DESCRIPTOR = _PDMPARENTOBJECTREQUEST,
|
||||
__module__ = 'PdmObject_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.PdmParentObjectRequest)
|
||||
))
|
||||
_sym_db.RegisterMessage(PdmParentObjectRequest)
|
||||
|
||||
PdmObject = _reflection.GeneratedProtocolMessageType('PdmObject', (_message.Message,), dict(
|
||||
|
||||
ParametersEntry = _reflection.GeneratedProtocolMessageType('ParametersEntry', (_message.Message,), dict(
|
||||
DESCRIPTOR = _PDMOBJECT_PARAMETERSENTRY,
|
||||
__module__ = 'PdmObject_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.PdmObject.ParametersEntry)
|
||||
))
|
||||
,
|
||||
DESCRIPTOR = _PDMOBJECT,
|
||||
__module__ = 'PdmObject_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.PdmObject)
|
||||
))
|
||||
_sym_db.RegisterMessage(PdmObject)
|
||||
_sym_db.RegisterMessage(PdmObject.ParametersEntry)
|
||||
|
||||
PdmObjectArray = _reflection.GeneratedProtocolMessageType('PdmObjectArray', (_message.Message,), dict(
|
||||
DESCRIPTOR = _PDMOBJECTARRAY,
|
||||
__module__ = 'PdmObject_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.PdmObjectArray)
|
||||
))
|
||||
_sym_db.RegisterMessage(PdmObjectArray)
|
||||
|
||||
PdmObjectGetterRequest = _reflection.GeneratedProtocolMessageType('PdmObjectGetterRequest', (_message.Message,), dict(
|
||||
DESCRIPTOR = _PDMOBJECTGETTERREQUEST,
|
||||
__module__ = 'PdmObject_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.PdmObjectGetterRequest)
|
||||
))
|
||||
_sym_db.RegisterMessage(PdmObjectGetterRequest)
|
||||
|
||||
PdmObjectSetterRequest = _reflection.GeneratedProtocolMessageType('PdmObjectSetterRequest', (_message.Message,), dict(
|
||||
DESCRIPTOR = _PDMOBJECTSETTERREQUEST,
|
||||
__module__ = 'PdmObject_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.PdmObjectSetterRequest)
|
||||
))
|
||||
_sym_db.RegisterMessage(PdmObjectSetterRequest)
|
||||
|
||||
PdmObjectSetterChunk = _reflection.GeneratedProtocolMessageType('PdmObjectSetterChunk', (_message.Message,), dict(
|
||||
DESCRIPTOR = _PDMOBJECTSETTERCHUNK,
|
||||
__module__ = 'PdmObject_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.PdmObjectSetterChunk)
|
||||
))
|
||||
_sym_db.RegisterMessage(PdmObjectSetterChunk)
|
||||
|
||||
DoubleArray = _reflection.GeneratedProtocolMessageType('DoubleArray', (_message.Message,), dict(
|
||||
DESCRIPTOR = _DOUBLEARRAY,
|
||||
__module__ = 'PdmObject_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.DoubleArray)
|
||||
))
|
||||
_sym_db.RegisterMessage(DoubleArray)
|
||||
|
||||
IntArray = _reflection.GeneratedProtocolMessageType('IntArray', (_message.Message,), dict(
|
||||
DESCRIPTOR = _INTARRAY,
|
||||
__module__ = 'PdmObject_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.IntArray)
|
||||
))
|
||||
_sym_db.RegisterMessage(IntArray)
|
||||
|
||||
StringArray = _reflection.GeneratedProtocolMessageType('StringArray', (_message.Message,), dict(
|
||||
DESCRIPTOR = _STRINGARRAY,
|
||||
__module__ = 'PdmObject_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.StringArray)
|
||||
))
|
||||
_sym_db.RegisterMessage(StringArray)
|
||||
|
||||
PdmObjectGetterReply = _reflection.GeneratedProtocolMessageType('PdmObjectGetterReply', (_message.Message,), dict(
|
||||
DESCRIPTOR = _PDMOBJECTGETTERREPLY,
|
||||
__module__ = 'PdmObject_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.PdmObjectGetterReply)
|
||||
))
|
||||
_sym_db.RegisterMessage(PdmObjectGetterReply)
|
||||
|
||||
PdmObjectMethodRequest = _reflection.GeneratedProtocolMessageType('PdmObjectMethodRequest', (_message.Message,), dict(
|
||||
DESCRIPTOR = _PDMOBJECTMETHODREQUEST,
|
||||
__module__ = 'PdmObject_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.PdmObjectMethodRequest)
|
||||
))
|
||||
_sym_db.RegisterMessage(PdmObjectMethodRequest)
|
||||
|
||||
|
||||
_PDMOBJECT_PARAMETERSENTRY._options = None
|
||||
|
||||
_PDMOBJECTSERVICE = _descriptor.ServiceDescriptor(
|
||||
name='PdmObjectService',
|
||||
full_name='rips.PdmObjectService',
|
||||
file=DESCRIPTOR,
|
||||
index=0,
|
||||
serialized_options=None,
|
||||
serialized_start=1320,
|
||||
serialized_end=1953,
|
||||
methods=[
|
||||
_descriptor.MethodDescriptor(
|
||||
name='GetDescendantPdmObjects',
|
||||
full_name='rips.PdmObjectService.GetDescendantPdmObjects',
|
||||
index=0,
|
||||
containing_service=None,
|
||||
input_type=_PDMDESCENDANTOBJECTREQUEST,
|
||||
output_type=_PDMOBJECTARRAY,
|
||||
serialized_options=None,
|
||||
),
|
||||
_descriptor.MethodDescriptor(
|
||||
name='GetChildPdmObjects',
|
||||
full_name='rips.PdmObjectService.GetChildPdmObjects',
|
||||
index=1,
|
||||
containing_service=None,
|
||||
input_type=_PDMCHILDOBJECTREQUEST,
|
||||
output_type=_PDMOBJECTARRAY,
|
||||
serialized_options=None,
|
||||
),
|
||||
_descriptor.MethodDescriptor(
|
||||
name='GetAncestorPdmObject',
|
||||
full_name='rips.PdmObjectService.GetAncestorPdmObject',
|
||||
index=2,
|
||||
containing_service=None,
|
||||
input_type=_PDMPARENTOBJECTREQUEST,
|
||||
output_type=_PDMOBJECT,
|
||||
serialized_options=None,
|
||||
),
|
||||
_descriptor.MethodDescriptor(
|
||||
name='CreateChildPdmObject',
|
||||
full_name='rips.PdmObjectService.CreateChildPdmObject',
|
||||
index=3,
|
||||
containing_service=None,
|
||||
input_type=_CREATEPDMCHILDOBJECTREQUEST,
|
||||
output_type=_PDMOBJECT,
|
||||
serialized_options=None,
|
||||
),
|
||||
_descriptor.MethodDescriptor(
|
||||
name='UpdateExistingPdmObject',
|
||||
full_name='rips.PdmObjectService.UpdateExistingPdmObject',
|
||||
index=4,
|
||||
containing_service=None,
|
||||
input_type=_PDMOBJECT,
|
||||
output_type=Definitions__pb2._EMPTY,
|
||||
serialized_options=None,
|
||||
),
|
||||
_descriptor.MethodDescriptor(
|
||||
name='CallPdmObjectGetter',
|
||||
full_name='rips.PdmObjectService.CallPdmObjectGetter',
|
||||
index=5,
|
||||
containing_service=None,
|
||||
input_type=_PDMOBJECTGETTERREQUEST,
|
||||
output_type=_PDMOBJECTGETTERREPLY,
|
||||
serialized_options=None,
|
||||
),
|
||||
_descriptor.MethodDescriptor(
|
||||
name='CallPdmObjectSetter',
|
||||
full_name='rips.PdmObjectService.CallPdmObjectSetter',
|
||||
index=6,
|
||||
containing_service=None,
|
||||
input_type=_PDMOBJECTSETTERCHUNK,
|
||||
output_type=Definitions__pb2._CLIENTTOSERVERSTREAMREPLY,
|
||||
serialized_options=None,
|
||||
),
|
||||
_descriptor.MethodDescriptor(
|
||||
name='CallPdmObjectMethod',
|
||||
full_name='rips.PdmObjectService.CallPdmObjectMethod',
|
||||
index=7,
|
||||
containing_service=None,
|
||||
input_type=_PDMOBJECTMETHODREQUEST,
|
||||
output_type=_PDMOBJECT,
|
||||
serialized_options=None,
|
||||
),
|
||||
])
|
||||
_sym_db.RegisterServiceDescriptor(_PDMOBJECTSERVICE)
|
||||
|
||||
DESCRIPTOR.services_by_name['PdmObjectService'] = _PDMOBJECTSERVICE
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
166
docs/rips/generated/PdmObject_pb2_grpc.py
Normal file
166
docs/rips/generated/PdmObject_pb2_grpc.py
Normal file
@ -0,0 +1,166 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
import grpc
|
||||
|
||||
import Definitions_pb2 as Definitions__pb2
|
||||
import PdmObject_pb2 as PdmObject__pb2
|
||||
|
||||
|
||||
class PdmObjectServiceStub(object):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
|
||||
def __init__(self, channel):
|
||||
"""Constructor.
|
||||
|
||||
Args:
|
||||
channel: A grpc.Channel.
|
||||
"""
|
||||
self.GetDescendantPdmObjects = channel.unary_unary(
|
||||
'/rips.PdmObjectService/GetDescendantPdmObjects',
|
||||
request_serializer=PdmObject__pb2.PdmDescendantObjectRequest.SerializeToString,
|
||||
response_deserializer=PdmObject__pb2.PdmObjectArray.FromString,
|
||||
)
|
||||
self.GetChildPdmObjects = channel.unary_unary(
|
||||
'/rips.PdmObjectService/GetChildPdmObjects',
|
||||
request_serializer=PdmObject__pb2.PdmChildObjectRequest.SerializeToString,
|
||||
response_deserializer=PdmObject__pb2.PdmObjectArray.FromString,
|
||||
)
|
||||
self.GetAncestorPdmObject = channel.unary_unary(
|
||||
'/rips.PdmObjectService/GetAncestorPdmObject',
|
||||
request_serializer=PdmObject__pb2.PdmParentObjectRequest.SerializeToString,
|
||||
response_deserializer=PdmObject__pb2.PdmObject.FromString,
|
||||
)
|
||||
self.CreateChildPdmObject = channel.unary_unary(
|
||||
'/rips.PdmObjectService/CreateChildPdmObject',
|
||||
request_serializer=PdmObject__pb2.CreatePdmChildObjectRequest.SerializeToString,
|
||||
response_deserializer=PdmObject__pb2.PdmObject.FromString,
|
||||
)
|
||||
self.UpdateExistingPdmObject = channel.unary_unary(
|
||||
'/rips.PdmObjectService/UpdateExistingPdmObject',
|
||||
request_serializer=PdmObject__pb2.PdmObject.SerializeToString,
|
||||
response_deserializer=Definitions__pb2.Empty.FromString,
|
||||
)
|
||||
self.CallPdmObjectGetter = channel.unary_stream(
|
||||
'/rips.PdmObjectService/CallPdmObjectGetter',
|
||||
request_serializer=PdmObject__pb2.PdmObjectGetterRequest.SerializeToString,
|
||||
response_deserializer=PdmObject__pb2.PdmObjectGetterReply.FromString,
|
||||
)
|
||||
self.CallPdmObjectSetter = channel.stream_unary(
|
||||
'/rips.PdmObjectService/CallPdmObjectSetter',
|
||||
request_serializer=PdmObject__pb2.PdmObjectSetterChunk.SerializeToString,
|
||||
response_deserializer=Definitions__pb2.ClientToServerStreamReply.FromString,
|
||||
)
|
||||
self.CallPdmObjectMethod = channel.unary_unary(
|
||||
'/rips.PdmObjectService/CallPdmObjectMethod',
|
||||
request_serializer=PdmObject__pb2.PdmObjectMethodRequest.SerializeToString,
|
||||
response_deserializer=PdmObject__pb2.PdmObject.FromString,
|
||||
)
|
||||
|
||||
|
||||
class PdmObjectServiceServicer(object):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
|
||||
def GetDescendantPdmObjects(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetChildPdmObjects(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetAncestorPdmObject(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def CreateChildPdmObject(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def UpdateExistingPdmObject(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def CallPdmObjectGetter(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def CallPdmObjectSetter(self, request_iterator, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def CallPdmObjectMethod(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
|
||||
def add_PdmObjectServiceServicer_to_server(servicer, server):
|
||||
rpc_method_handlers = {
|
||||
'GetDescendantPdmObjects': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetDescendantPdmObjects,
|
||||
request_deserializer=PdmObject__pb2.PdmDescendantObjectRequest.FromString,
|
||||
response_serializer=PdmObject__pb2.PdmObjectArray.SerializeToString,
|
||||
),
|
||||
'GetChildPdmObjects': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetChildPdmObjects,
|
||||
request_deserializer=PdmObject__pb2.PdmChildObjectRequest.FromString,
|
||||
response_serializer=PdmObject__pb2.PdmObjectArray.SerializeToString,
|
||||
),
|
||||
'GetAncestorPdmObject': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetAncestorPdmObject,
|
||||
request_deserializer=PdmObject__pb2.PdmParentObjectRequest.FromString,
|
||||
response_serializer=PdmObject__pb2.PdmObject.SerializeToString,
|
||||
),
|
||||
'CreateChildPdmObject': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.CreateChildPdmObject,
|
||||
request_deserializer=PdmObject__pb2.CreatePdmChildObjectRequest.FromString,
|
||||
response_serializer=PdmObject__pb2.PdmObject.SerializeToString,
|
||||
),
|
||||
'UpdateExistingPdmObject': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.UpdateExistingPdmObject,
|
||||
request_deserializer=PdmObject__pb2.PdmObject.FromString,
|
||||
response_serializer=Definitions__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'CallPdmObjectGetter': grpc.unary_stream_rpc_method_handler(
|
||||
servicer.CallPdmObjectGetter,
|
||||
request_deserializer=PdmObject__pb2.PdmObjectGetterRequest.FromString,
|
||||
response_serializer=PdmObject__pb2.PdmObjectGetterReply.SerializeToString,
|
||||
),
|
||||
'CallPdmObjectSetter': grpc.stream_unary_rpc_method_handler(
|
||||
servicer.CallPdmObjectSetter,
|
||||
request_deserializer=PdmObject__pb2.PdmObjectSetterChunk.FromString,
|
||||
response_serializer=Definitions__pb2.ClientToServerStreamReply.SerializeToString,
|
||||
),
|
||||
'CallPdmObjectMethod': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.CallPdmObjectMethod,
|
||||
request_deserializer=PdmObject__pb2.PdmObjectMethodRequest.FromString,
|
||||
response_serializer=PdmObject__pb2.PdmObject.SerializeToString,
|
||||
),
|
||||
}
|
||||
generic_handler = grpc.method_handlers_generic_handler(
|
||||
'rips.PdmObjectService', rpc_method_handlers)
|
||||
server.add_generic_rpc_handlers((generic_handler,))
|
104
docs/rips/generated/Project_pb2.py
Normal file
104
docs/rips/generated/Project_pb2.py
Normal file
@ -0,0 +1,104 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: Project.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
import Definitions_pb2 as Definitions__pb2
|
||||
import Case_pb2 as Case__pb2
|
||||
import PdmObject_pb2 as PdmObject__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='Project.proto',
|
||||
package='rips',
|
||||
syntax='proto3',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n\rProject.proto\x12\x04rips\x1a\x11\x44\x65\x66initions.proto\x1a\nCase.proto\x1a\x0fPdmObject.proto2\xc8\x02\n\x07Project\x12\x32\n\x0eGetCurrentCase\x12\x0b.rips.Empty\x1a\x11.rips.CaseRequest\"\x00\x12\x36\n\x10GetSelectedCases\x12\x0b.rips.Empty\x1a\x13.rips.CaseInfoArray\"\x00\x12\x33\n\x10GetAllCaseGroups\x12\x0b.rips.Empty\x1a\x10.rips.CaseGroups\"\x00\x12\x31\n\x0bGetAllCases\x12\x0b.rips.Empty\x1a\x13.rips.CaseInfoArray\"\x00\x12\x39\n\x0fGetCasesInGroup\x12\x0f.rips.CaseGroup\x1a\x13.rips.CaseInfoArray\"\x00\x12.\n\x0cGetPdmObject\x12\x0b.rips.Empty\x1a\x0f.rips.PdmObject\"\x00\x62\x06proto3')
|
||||
,
|
||||
dependencies=[Definitions__pb2.DESCRIPTOR,Case__pb2.DESCRIPTOR,PdmObject__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
|
||||
|
||||
_PROJECT = _descriptor.ServiceDescriptor(
|
||||
name='Project',
|
||||
full_name='rips.Project',
|
||||
file=DESCRIPTOR,
|
||||
index=0,
|
||||
serialized_options=None,
|
||||
serialized_start=72,
|
||||
serialized_end=400,
|
||||
methods=[
|
||||
_descriptor.MethodDescriptor(
|
||||
name='GetCurrentCase',
|
||||
full_name='rips.Project.GetCurrentCase',
|
||||
index=0,
|
||||
containing_service=None,
|
||||
input_type=Definitions__pb2._EMPTY,
|
||||
output_type=Case__pb2._CASEREQUEST,
|
||||
serialized_options=None,
|
||||
),
|
||||
_descriptor.MethodDescriptor(
|
||||
name='GetSelectedCases',
|
||||
full_name='rips.Project.GetSelectedCases',
|
||||
index=1,
|
||||
containing_service=None,
|
||||
input_type=Definitions__pb2._EMPTY,
|
||||
output_type=Case__pb2._CASEINFOARRAY,
|
||||
serialized_options=None,
|
||||
),
|
||||
_descriptor.MethodDescriptor(
|
||||
name='GetAllCaseGroups',
|
||||
full_name='rips.Project.GetAllCaseGroups',
|
||||
index=2,
|
||||
containing_service=None,
|
||||
input_type=Definitions__pb2._EMPTY,
|
||||
output_type=Case__pb2._CASEGROUPS,
|
||||
serialized_options=None,
|
||||
),
|
||||
_descriptor.MethodDescriptor(
|
||||
name='GetAllCases',
|
||||
full_name='rips.Project.GetAllCases',
|
||||
index=3,
|
||||
containing_service=None,
|
||||
input_type=Definitions__pb2._EMPTY,
|
||||
output_type=Case__pb2._CASEINFOARRAY,
|
||||
serialized_options=None,
|
||||
),
|
||||
_descriptor.MethodDescriptor(
|
||||
name='GetCasesInGroup',
|
||||
full_name='rips.Project.GetCasesInGroup',
|
||||
index=4,
|
||||
containing_service=None,
|
||||
input_type=Case__pb2._CASEGROUP,
|
||||
output_type=Case__pb2._CASEINFOARRAY,
|
||||
serialized_options=None,
|
||||
),
|
||||
_descriptor.MethodDescriptor(
|
||||
name='GetPdmObject',
|
||||
full_name='rips.Project.GetPdmObject',
|
||||
index=5,
|
||||
containing_service=None,
|
||||
input_type=Definitions__pb2._EMPTY,
|
||||
output_type=PdmObject__pb2._PDMOBJECT,
|
||||
serialized_options=None,
|
||||
),
|
||||
])
|
||||
_sym_db.RegisterServiceDescriptor(_PROJECT)
|
||||
|
||||
DESCRIPTOR.services_by_name['Project'] = _PROJECT
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
133
docs/rips/generated/Project_pb2_grpc.py
Normal file
133
docs/rips/generated/Project_pb2_grpc.py
Normal file
@ -0,0 +1,133 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
import grpc
|
||||
|
||||
import Case_pb2 as Case__pb2
|
||||
import Definitions_pb2 as Definitions__pb2
|
||||
import PdmObject_pb2 as PdmObject__pb2
|
||||
|
||||
|
||||
class ProjectStub(object):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
|
||||
def __init__(self, channel):
|
||||
"""Constructor.
|
||||
|
||||
Args:
|
||||
channel: A grpc.Channel.
|
||||
"""
|
||||
self.GetCurrentCase = channel.unary_unary(
|
||||
'/rips.Project/GetCurrentCase',
|
||||
request_serializer=Definitions__pb2.Empty.SerializeToString,
|
||||
response_deserializer=Case__pb2.CaseRequest.FromString,
|
||||
)
|
||||
self.GetSelectedCases = channel.unary_unary(
|
||||
'/rips.Project/GetSelectedCases',
|
||||
request_serializer=Definitions__pb2.Empty.SerializeToString,
|
||||
response_deserializer=Case__pb2.CaseInfoArray.FromString,
|
||||
)
|
||||
self.GetAllCaseGroups = channel.unary_unary(
|
||||
'/rips.Project/GetAllCaseGroups',
|
||||
request_serializer=Definitions__pb2.Empty.SerializeToString,
|
||||
response_deserializer=Case__pb2.CaseGroups.FromString,
|
||||
)
|
||||
self.GetAllCases = channel.unary_unary(
|
||||
'/rips.Project/GetAllCases',
|
||||
request_serializer=Definitions__pb2.Empty.SerializeToString,
|
||||
response_deserializer=Case__pb2.CaseInfoArray.FromString,
|
||||
)
|
||||
self.GetCasesInGroup = channel.unary_unary(
|
||||
'/rips.Project/GetCasesInGroup',
|
||||
request_serializer=Case__pb2.CaseGroup.SerializeToString,
|
||||
response_deserializer=Case__pb2.CaseInfoArray.FromString,
|
||||
)
|
||||
self.GetPdmObject = channel.unary_unary(
|
||||
'/rips.Project/GetPdmObject',
|
||||
request_serializer=Definitions__pb2.Empty.SerializeToString,
|
||||
response_deserializer=PdmObject__pb2.PdmObject.FromString,
|
||||
)
|
||||
|
||||
|
||||
class ProjectServicer(object):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
|
||||
def GetCurrentCase(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetSelectedCases(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetAllCaseGroups(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetAllCases(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetCasesInGroup(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetPdmObject(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
|
||||
def add_ProjectServicer_to_server(servicer, server):
|
||||
rpc_method_handlers = {
|
||||
'GetCurrentCase': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetCurrentCase,
|
||||
request_deserializer=Definitions__pb2.Empty.FromString,
|
||||
response_serializer=Case__pb2.CaseRequest.SerializeToString,
|
||||
),
|
||||
'GetSelectedCases': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetSelectedCases,
|
||||
request_deserializer=Definitions__pb2.Empty.FromString,
|
||||
response_serializer=Case__pb2.CaseInfoArray.SerializeToString,
|
||||
),
|
||||
'GetAllCaseGroups': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetAllCaseGroups,
|
||||
request_deserializer=Definitions__pb2.Empty.FromString,
|
||||
response_serializer=Case__pb2.CaseGroups.SerializeToString,
|
||||
),
|
||||
'GetAllCases': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetAllCases,
|
||||
request_deserializer=Definitions__pb2.Empty.FromString,
|
||||
response_serializer=Case__pb2.CaseInfoArray.SerializeToString,
|
||||
),
|
||||
'GetCasesInGroup': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetCasesInGroup,
|
||||
request_deserializer=Case__pb2.CaseGroup.FromString,
|
||||
response_serializer=Case__pb2.CaseInfoArray.SerializeToString,
|
||||
),
|
||||
'GetPdmObject': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetPdmObject,
|
||||
request_deserializer=Definitions__pb2.Empty.FromString,
|
||||
response_serializer=PdmObject__pb2.PdmObject.SerializeToString,
|
||||
),
|
||||
}
|
||||
generic_handler = grpc.method_handlers_generic_handler(
|
||||
'rips.Project', rpc_method_handlers)
|
||||
server.add_generic_rpc_handlers((generic_handler,))
|
477
docs/rips/generated/Properties_pb2.py
Normal file
477
docs/rips/generated/Properties_pb2.py
Normal file
@ -0,0 +1,477 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: Properties.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf.internal import enum_type_wrapper
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
import Definitions_pb2 as Definitions__pb2
|
||||
import Case_pb2 as Case__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='Properties.proto',
|
||||
package='rips',
|
||||
syntax='proto3',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n\x10Properties.proto\x12\x04rips\x1a\x11\x44\x65\x66initions.proto\x1a\nCase.proto\"\xa1\x01\n\x1a\x41vailablePropertiesRequest\x12\'\n\x0c\x63\x61se_request\x18\x01 \x01(\x0b\x32\x11.rips.CaseRequest\x12)\n\rproperty_type\x18\x02 \x01(\x0e\x32\x12.rips.PropertyType\x12/\n\x0eporosity_model\x18\x03 \x01(\x0e\x32\x17.rips.PorosityModelType\"-\n\x13\x41vailableProperties\x12\x16\n\x0eproperty_names\x18\x01 \x03(\t\"\xd4\x01\n\x0fPropertyRequest\x12\'\n\x0c\x63\x61se_request\x18\x01 \x01(\x0b\x32\x11.rips.CaseRequest\x12)\n\rproperty_type\x18\x02 \x01(\x0e\x32\x12.rips.PropertyType\x12\x15\n\rproperty_name\x18\x03 \x01(\t\x12\x11\n\ttime_step\x18\x04 \x01(\x05\x12\x12\n\ngrid_index\x18\x05 \x01(\x05\x12/\n\x0eporosity_model\x18\x06 \x01(\x0e\x32\x17.rips.PorosityModelType\"\x19\n\x08TimeStep\x12\r\n\x05index\x18\x01 \x01(\x05\"q\n\x12PropertyInputChunk\x12\'\n\x06params\x18\x01 \x01(\x0b\x32\x15.rips.PropertyRequestH\x00\x12%\n\x06values\x18\x02 \x01(\x0b\x32\x13.rips.PropertyChunkH\x00\x42\x0b\n\tChunkType\"\x1f\n\rPropertyChunk\x12\x0e\n\x06values\x18\x01 \x03(\x01*\xc7\x01\n\x0cPropertyType\x12\x12\n\x0e\x44YNAMIC_NATIVE\x10\x00\x12\x11\n\rSTATIC_NATIVE\x10\x01\x12\r\n\tSOURSIMRL\x10\x02\x12\r\n\tGENERATED\x10\x03\x12\x12\n\x0eINPUT_PROPERTY\x10\x04\x12\x13\n\x0f\x46ORMATION_NAMES\x10\x05\x12\x14\n\x10\x46LOW_DIAGNOSTICS\x10\x06\x12\x16\n\x12INJECTION_FLOODING\x10\x07\x12\x0b\n\x07REMOVED\x10\x08\x12\x0e\n\tUNDEFINED\x10\xe7\x07\x32\xe6\x03\n\nProperties\x12W\n\x16GetAvailableProperties\x12 .rips.AvailablePropertiesRequest\x1a\x19.rips.AvailableProperties\"\x00\x12G\n\x15GetActiveCellProperty\x12\x15.rips.PropertyRequest\x1a\x13.rips.PropertyChunk\"\x00\x30\x01\x12I\n\x17GetSelectedCellProperty\x12\x15.rips.PropertyRequest\x1a\x13.rips.PropertyChunk\"\x00\x30\x01\x12\x41\n\x0fGetGridProperty\x12\x15.rips.PropertyRequest\x1a\x13.rips.PropertyChunk\"\x00\x30\x01\x12V\n\x15SetActiveCellProperty\x12\x18.rips.PropertyInputChunk\x1a\x1f.rips.ClientToServerStreamReply\"\x00(\x01\x12P\n\x0fSetGridProperty\x12\x18.rips.PropertyInputChunk\x1a\x1f.rips.ClientToServerStreamReply\"\x00(\x01\x62\x06proto3')
|
||||
,
|
||||
dependencies=[Definitions__pb2.DESCRIPTOR,Case__pb2.DESCRIPTOR,])
|
||||
|
||||
_PROPERTYTYPE = _descriptor.EnumDescriptor(
|
||||
name='PropertyType',
|
||||
full_name='rips.PropertyType',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='DYNAMIC_NATIVE', index=0, number=0,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='STATIC_NATIVE', index=1, number=1,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='SOURSIMRL', index=2, number=2,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='GENERATED', index=3, number=3,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='INPUT_PROPERTY', index=4, number=4,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='FORMATION_NAMES', index=5, number=5,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='FLOW_DIAGNOSTICS', index=6, number=6,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='INJECTION_FLOODING', index=7, number=7,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='REMOVED', index=8, number=8,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='UNDEFINED', index=9, number=999,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
serialized_options=None,
|
||||
serialized_start=659,
|
||||
serialized_end=858,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_PROPERTYTYPE)
|
||||
|
||||
PropertyType = enum_type_wrapper.EnumTypeWrapper(_PROPERTYTYPE)
|
||||
DYNAMIC_NATIVE = 0
|
||||
STATIC_NATIVE = 1
|
||||
SOURSIMRL = 2
|
||||
GENERATED = 3
|
||||
INPUT_PROPERTY = 4
|
||||
FORMATION_NAMES = 5
|
||||
FLOW_DIAGNOSTICS = 6
|
||||
INJECTION_FLOODING = 7
|
||||
REMOVED = 8
|
||||
UNDEFINED = 999
|
||||
|
||||
|
||||
|
||||
_AVAILABLEPROPERTIESREQUEST = _descriptor.Descriptor(
|
||||
name='AvailablePropertiesRequest',
|
||||
full_name='rips.AvailablePropertiesRequest',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='case_request', full_name='rips.AvailablePropertiesRequest.case_request', index=0,
|
||||
number=1, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='property_type', full_name='rips.AvailablePropertiesRequest.property_type', index=1,
|
||||
number=2, type=14, cpp_type=8, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='porosity_model', full_name='rips.AvailablePropertiesRequest.porosity_model', index=2,
|
||||
number=3, type=14, cpp_type=8, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=58,
|
||||
serialized_end=219,
|
||||
)
|
||||
|
||||
|
||||
_AVAILABLEPROPERTIES = _descriptor.Descriptor(
|
||||
name='AvailableProperties',
|
||||
full_name='rips.AvailableProperties',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='property_names', full_name='rips.AvailableProperties.property_names', index=0,
|
||||
number=1, type=9, cpp_type=9, label=3,
|
||||
has_default_value=False, default_value=[],
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=221,
|
||||
serialized_end=266,
|
||||
)
|
||||
|
||||
|
||||
_PROPERTYREQUEST = _descriptor.Descriptor(
|
||||
name='PropertyRequest',
|
||||
full_name='rips.PropertyRequest',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='case_request', full_name='rips.PropertyRequest.case_request', index=0,
|
||||
number=1, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='property_type', full_name='rips.PropertyRequest.property_type', index=1,
|
||||
number=2, type=14, cpp_type=8, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='property_name', full_name='rips.PropertyRequest.property_name', index=2,
|
||||
number=3, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='time_step', full_name='rips.PropertyRequest.time_step', index=3,
|
||||
number=4, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='grid_index', full_name='rips.PropertyRequest.grid_index', index=4,
|
||||
number=5, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='porosity_model', full_name='rips.PropertyRequest.porosity_model', index=5,
|
||||
number=6, type=14, cpp_type=8, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=269,
|
||||
serialized_end=481,
|
||||
)
|
||||
|
||||
|
||||
_TIMESTEP = _descriptor.Descriptor(
|
||||
name='TimeStep',
|
||||
full_name='rips.TimeStep',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='index', full_name='rips.TimeStep.index', index=0,
|
||||
number=1, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=483,
|
||||
serialized_end=508,
|
||||
)
|
||||
|
||||
|
||||
_PROPERTYINPUTCHUNK = _descriptor.Descriptor(
|
||||
name='PropertyInputChunk',
|
||||
full_name='rips.PropertyInputChunk',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='params', full_name='rips.PropertyInputChunk.params', index=0,
|
||||
number=1, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='values', full_name='rips.PropertyInputChunk.values', index=1,
|
||||
number=2, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
_descriptor.OneofDescriptor(
|
||||
name='ChunkType', full_name='rips.PropertyInputChunk.ChunkType',
|
||||
index=0, containing_type=None, fields=[]),
|
||||
],
|
||||
serialized_start=510,
|
||||
serialized_end=623,
|
||||
)
|
||||
|
||||
|
||||
_PROPERTYCHUNK = _descriptor.Descriptor(
|
||||
name='PropertyChunk',
|
||||
full_name='rips.PropertyChunk',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='values', full_name='rips.PropertyChunk.values', index=0,
|
||||
number=1, type=1, cpp_type=5, label=3,
|
||||
has_default_value=False, default_value=[],
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=625,
|
||||
serialized_end=656,
|
||||
)
|
||||
|
||||
_AVAILABLEPROPERTIESREQUEST.fields_by_name['case_request'].message_type = Case__pb2._CASEREQUEST
|
||||
_AVAILABLEPROPERTIESREQUEST.fields_by_name['property_type'].enum_type = _PROPERTYTYPE
|
||||
_AVAILABLEPROPERTIESREQUEST.fields_by_name['porosity_model'].enum_type = Case__pb2._POROSITYMODELTYPE
|
||||
_PROPERTYREQUEST.fields_by_name['case_request'].message_type = Case__pb2._CASEREQUEST
|
||||
_PROPERTYREQUEST.fields_by_name['property_type'].enum_type = _PROPERTYTYPE
|
||||
_PROPERTYREQUEST.fields_by_name['porosity_model'].enum_type = Case__pb2._POROSITYMODELTYPE
|
||||
_PROPERTYINPUTCHUNK.fields_by_name['params'].message_type = _PROPERTYREQUEST
|
||||
_PROPERTYINPUTCHUNK.fields_by_name['values'].message_type = _PROPERTYCHUNK
|
||||
_PROPERTYINPUTCHUNK.oneofs_by_name['ChunkType'].fields.append(
|
||||
_PROPERTYINPUTCHUNK.fields_by_name['params'])
|
||||
_PROPERTYINPUTCHUNK.fields_by_name['params'].containing_oneof = _PROPERTYINPUTCHUNK.oneofs_by_name['ChunkType']
|
||||
_PROPERTYINPUTCHUNK.oneofs_by_name['ChunkType'].fields.append(
|
||||
_PROPERTYINPUTCHUNK.fields_by_name['values'])
|
||||
_PROPERTYINPUTCHUNK.fields_by_name['values'].containing_oneof = _PROPERTYINPUTCHUNK.oneofs_by_name['ChunkType']
|
||||
DESCRIPTOR.message_types_by_name['AvailablePropertiesRequest'] = _AVAILABLEPROPERTIESREQUEST
|
||||
DESCRIPTOR.message_types_by_name['AvailableProperties'] = _AVAILABLEPROPERTIES
|
||||
DESCRIPTOR.message_types_by_name['PropertyRequest'] = _PROPERTYREQUEST
|
||||
DESCRIPTOR.message_types_by_name['TimeStep'] = _TIMESTEP
|
||||
DESCRIPTOR.message_types_by_name['PropertyInputChunk'] = _PROPERTYINPUTCHUNK
|
||||
DESCRIPTOR.message_types_by_name['PropertyChunk'] = _PROPERTYCHUNK
|
||||
DESCRIPTOR.enum_types_by_name['PropertyType'] = _PROPERTYTYPE
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
AvailablePropertiesRequest = _reflection.GeneratedProtocolMessageType('AvailablePropertiesRequest', (_message.Message,), dict(
|
||||
DESCRIPTOR = _AVAILABLEPROPERTIESREQUEST,
|
||||
__module__ = 'Properties_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.AvailablePropertiesRequest)
|
||||
))
|
||||
_sym_db.RegisterMessage(AvailablePropertiesRequest)
|
||||
|
||||
AvailableProperties = _reflection.GeneratedProtocolMessageType('AvailableProperties', (_message.Message,), dict(
|
||||
DESCRIPTOR = _AVAILABLEPROPERTIES,
|
||||
__module__ = 'Properties_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.AvailableProperties)
|
||||
))
|
||||
_sym_db.RegisterMessage(AvailableProperties)
|
||||
|
||||
PropertyRequest = _reflection.GeneratedProtocolMessageType('PropertyRequest', (_message.Message,), dict(
|
||||
DESCRIPTOR = _PROPERTYREQUEST,
|
||||
__module__ = 'Properties_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.PropertyRequest)
|
||||
))
|
||||
_sym_db.RegisterMessage(PropertyRequest)
|
||||
|
||||
TimeStep = _reflection.GeneratedProtocolMessageType('TimeStep', (_message.Message,), dict(
|
||||
DESCRIPTOR = _TIMESTEP,
|
||||
__module__ = 'Properties_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.TimeStep)
|
||||
))
|
||||
_sym_db.RegisterMessage(TimeStep)
|
||||
|
||||
PropertyInputChunk = _reflection.GeneratedProtocolMessageType('PropertyInputChunk', (_message.Message,), dict(
|
||||
DESCRIPTOR = _PROPERTYINPUTCHUNK,
|
||||
__module__ = 'Properties_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.PropertyInputChunk)
|
||||
))
|
||||
_sym_db.RegisterMessage(PropertyInputChunk)
|
||||
|
||||
PropertyChunk = _reflection.GeneratedProtocolMessageType('PropertyChunk', (_message.Message,), dict(
|
||||
DESCRIPTOR = _PROPERTYCHUNK,
|
||||
__module__ = 'Properties_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.PropertyChunk)
|
||||
))
|
||||
_sym_db.RegisterMessage(PropertyChunk)
|
||||
|
||||
|
||||
|
||||
_PROPERTIES = _descriptor.ServiceDescriptor(
|
||||
name='Properties',
|
||||
full_name='rips.Properties',
|
||||
file=DESCRIPTOR,
|
||||
index=0,
|
||||
serialized_options=None,
|
||||
serialized_start=861,
|
||||
serialized_end=1347,
|
||||
methods=[
|
||||
_descriptor.MethodDescriptor(
|
||||
name='GetAvailableProperties',
|
||||
full_name='rips.Properties.GetAvailableProperties',
|
||||
index=0,
|
||||
containing_service=None,
|
||||
input_type=_AVAILABLEPROPERTIESREQUEST,
|
||||
output_type=_AVAILABLEPROPERTIES,
|
||||
serialized_options=None,
|
||||
),
|
||||
_descriptor.MethodDescriptor(
|
||||
name='GetActiveCellProperty',
|
||||
full_name='rips.Properties.GetActiveCellProperty',
|
||||
index=1,
|
||||
containing_service=None,
|
||||
input_type=_PROPERTYREQUEST,
|
||||
output_type=_PROPERTYCHUNK,
|
||||
serialized_options=None,
|
||||
),
|
||||
_descriptor.MethodDescriptor(
|
||||
name='GetSelectedCellProperty',
|
||||
full_name='rips.Properties.GetSelectedCellProperty',
|
||||
index=2,
|
||||
containing_service=None,
|
||||
input_type=_PROPERTYREQUEST,
|
||||
output_type=_PROPERTYCHUNK,
|
||||
serialized_options=None,
|
||||
),
|
||||
_descriptor.MethodDescriptor(
|
||||
name='GetGridProperty',
|
||||
full_name='rips.Properties.GetGridProperty',
|
||||
index=3,
|
||||
containing_service=None,
|
||||
input_type=_PROPERTYREQUEST,
|
||||
output_type=_PROPERTYCHUNK,
|
||||
serialized_options=None,
|
||||
),
|
||||
_descriptor.MethodDescriptor(
|
||||
name='SetActiveCellProperty',
|
||||
full_name='rips.Properties.SetActiveCellProperty',
|
||||
index=4,
|
||||
containing_service=None,
|
||||
input_type=_PROPERTYINPUTCHUNK,
|
||||
output_type=Definitions__pb2._CLIENTTOSERVERSTREAMREPLY,
|
||||
serialized_options=None,
|
||||
),
|
||||
_descriptor.MethodDescriptor(
|
||||
name='SetGridProperty',
|
||||
full_name='rips.Properties.SetGridProperty',
|
||||
index=5,
|
||||
containing_service=None,
|
||||
input_type=_PROPERTYINPUTCHUNK,
|
||||
output_type=Definitions__pb2._CLIENTTOSERVERSTREAMREPLY,
|
||||
serialized_options=None,
|
||||
),
|
||||
])
|
||||
_sym_db.RegisterServiceDescriptor(_PROPERTIES)
|
||||
|
||||
DESCRIPTOR.services_by_name['Properties'] = _PROPERTIES
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
132
docs/rips/generated/Properties_pb2_grpc.py
Normal file
132
docs/rips/generated/Properties_pb2_grpc.py
Normal file
@ -0,0 +1,132 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
import grpc
|
||||
|
||||
import Definitions_pb2 as Definitions__pb2
|
||||
import Properties_pb2 as Properties__pb2
|
||||
|
||||
|
||||
class PropertiesStub(object):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
|
||||
def __init__(self, channel):
|
||||
"""Constructor.
|
||||
|
||||
Args:
|
||||
channel: A grpc.Channel.
|
||||
"""
|
||||
self.GetAvailableProperties = channel.unary_unary(
|
||||
'/rips.Properties/GetAvailableProperties',
|
||||
request_serializer=Properties__pb2.AvailablePropertiesRequest.SerializeToString,
|
||||
response_deserializer=Properties__pb2.AvailableProperties.FromString,
|
||||
)
|
||||
self.GetActiveCellProperty = channel.unary_stream(
|
||||
'/rips.Properties/GetActiveCellProperty',
|
||||
request_serializer=Properties__pb2.PropertyRequest.SerializeToString,
|
||||
response_deserializer=Properties__pb2.PropertyChunk.FromString,
|
||||
)
|
||||
self.GetSelectedCellProperty = channel.unary_stream(
|
||||
'/rips.Properties/GetSelectedCellProperty',
|
||||
request_serializer=Properties__pb2.PropertyRequest.SerializeToString,
|
||||
response_deserializer=Properties__pb2.PropertyChunk.FromString,
|
||||
)
|
||||
self.GetGridProperty = channel.unary_stream(
|
||||
'/rips.Properties/GetGridProperty',
|
||||
request_serializer=Properties__pb2.PropertyRequest.SerializeToString,
|
||||
response_deserializer=Properties__pb2.PropertyChunk.FromString,
|
||||
)
|
||||
self.SetActiveCellProperty = channel.stream_unary(
|
||||
'/rips.Properties/SetActiveCellProperty',
|
||||
request_serializer=Properties__pb2.PropertyInputChunk.SerializeToString,
|
||||
response_deserializer=Definitions__pb2.ClientToServerStreamReply.FromString,
|
||||
)
|
||||
self.SetGridProperty = channel.stream_unary(
|
||||
'/rips.Properties/SetGridProperty',
|
||||
request_serializer=Properties__pb2.PropertyInputChunk.SerializeToString,
|
||||
response_deserializer=Definitions__pb2.ClientToServerStreamReply.FromString,
|
||||
)
|
||||
|
||||
|
||||
class PropertiesServicer(object):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
|
||||
def GetAvailableProperties(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetActiveCellProperty(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetSelectedCellProperty(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetGridProperty(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def SetActiveCellProperty(self, request_iterator, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def SetGridProperty(self, request_iterator, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
|
||||
def add_PropertiesServicer_to_server(servicer, server):
|
||||
rpc_method_handlers = {
|
||||
'GetAvailableProperties': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetAvailableProperties,
|
||||
request_deserializer=Properties__pb2.AvailablePropertiesRequest.FromString,
|
||||
response_serializer=Properties__pb2.AvailableProperties.SerializeToString,
|
||||
),
|
||||
'GetActiveCellProperty': grpc.unary_stream_rpc_method_handler(
|
||||
servicer.GetActiveCellProperty,
|
||||
request_deserializer=Properties__pb2.PropertyRequest.FromString,
|
||||
response_serializer=Properties__pb2.PropertyChunk.SerializeToString,
|
||||
),
|
||||
'GetSelectedCellProperty': grpc.unary_stream_rpc_method_handler(
|
||||
servicer.GetSelectedCellProperty,
|
||||
request_deserializer=Properties__pb2.PropertyRequest.FromString,
|
||||
response_serializer=Properties__pb2.PropertyChunk.SerializeToString,
|
||||
),
|
||||
'GetGridProperty': grpc.unary_stream_rpc_method_handler(
|
||||
servicer.GetGridProperty,
|
||||
request_deserializer=Properties__pb2.PropertyRequest.FromString,
|
||||
response_serializer=Properties__pb2.PropertyChunk.SerializeToString,
|
||||
),
|
||||
'SetActiveCellProperty': grpc.stream_unary_rpc_method_handler(
|
||||
servicer.SetActiveCellProperty,
|
||||
request_deserializer=Properties__pb2.PropertyInputChunk.FromString,
|
||||
response_serializer=Definitions__pb2.ClientToServerStreamReply.SerializeToString,
|
||||
),
|
||||
'SetGridProperty': grpc.stream_unary_rpc_method_handler(
|
||||
servicer.SetGridProperty,
|
||||
request_deserializer=Properties__pb2.PropertyInputChunk.FromString,
|
||||
response_serializer=Definitions__pb2.ClientToServerStreamReply.SerializeToString,
|
||||
),
|
||||
}
|
||||
generic_handler = grpc.method_handlers_generic_handler(
|
||||
'rips.Properties', rpc_method_handlers)
|
||||
server.add_generic_rpc_handlers((generic_handler,))
|
21
docs/rips/generated/RiaVersionInfo.py
Normal file
21
docs/rips/generated/RiaVersionInfo.py
Normal file
@ -0,0 +1,21 @@
|
||||
#
|
||||
# Copyright (C) 2019- Equinor ASA
|
||||
#
|
||||
# ResInsight is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE.
|
||||
#
|
||||
# See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
||||
# for more details.
|
||||
#
|
||||
# Python version of RiaVersionInfo.h
|
||||
# Just sets version constants
|
||||
|
||||
RESINSIGHT_MAJOR_VERSION = "2019"
|
||||
RESINSIGHT_MINOR_VERSION = "12"
|
||||
RESINSIGHT_PATCH_VERSION = "1"
|
273
docs/rips/generated/SimulationWell_pb2.py
Normal file
273
docs/rips/generated/SimulationWell_pb2.py
Normal file
@ -0,0 +1,273 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: SimulationWell.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
import Definitions_pb2 as Definitions__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='SimulationWell.proto',
|
||||
package='rips',
|
||||
syntax='proto3',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n\x14SimulationWell.proto\x12\x04rips\x1a\x11\x44\x65\x66initions.proto\"M\n\x15SimulationWellRequest\x12\x0f\n\x07\x63\x61se_id\x18\x01 \x01(\x05\x12\x11\n\twell_name\x18\x02 \x01(\t\x12\x10\n\x08timestep\x18\x03 \x01(\x05\":\n\x14SimulationWellStatus\x12\x11\n\twell_type\x18\x01 \x01(\t\x12\x0f\n\x07is_open\x18\x02 \x01(\x08\"~\n\x16SimulationWellCellInfo\x12\x18\n\x03ijk\x18\x01 \x01(\x0b\x32\x0b.rips.Vec3i\x12\x12\n\ngrid_index\x18\x02 \x01(\x05\x12\x0f\n\x07is_open\x18\x03 \x01(\x08\x12\x11\n\tbranch_id\x18\x04 \x01(\x05\x12\x12\n\nsegment_id\x18\x05 \x01(\x05\"I\n\x1bSimulationWellCellInfoArray\x12*\n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32\x1c.rips.SimulationWellCellInfo2\xc2\x01\n\x0eSimulationWell\x12T\n\x17GetSimulationWellStatus\x12\x1b.rips.SimulationWellRequest\x1a\x1a.rips.SimulationWellStatus\"\x00\x12Z\n\x16GetSimulationWellCells\x12\x1b.rips.SimulationWellRequest\x1a!.rips.SimulationWellCellInfoArray\"\x00\x62\x06proto3')
|
||||
,
|
||||
dependencies=[Definitions__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
|
||||
_SIMULATIONWELLREQUEST = _descriptor.Descriptor(
|
||||
name='SimulationWellRequest',
|
||||
full_name='rips.SimulationWellRequest',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='case_id', full_name='rips.SimulationWellRequest.case_id', index=0,
|
||||
number=1, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='well_name', full_name='rips.SimulationWellRequest.well_name', index=1,
|
||||
number=2, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='timestep', full_name='rips.SimulationWellRequest.timestep', index=2,
|
||||
number=3, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=49,
|
||||
serialized_end=126,
|
||||
)
|
||||
|
||||
|
||||
_SIMULATIONWELLSTATUS = _descriptor.Descriptor(
|
||||
name='SimulationWellStatus',
|
||||
full_name='rips.SimulationWellStatus',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='well_type', full_name='rips.SimulationWellStatus.well_type', index=0,
|
||||
number=1, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='is_open', full_name='rips.SimulationWellStatus.is_open', index=1,
|
||||
number=2, type=8, cpp_type=7, label=1,
|
||||
has_default_value=False, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=128,
|
||||
serialized_end=186,
|
||||
)
|
||||
|
||||
|
||||
_SIMULATIONWELLCELLINFO = _descriptor.Descriptor(
|
||||
name='SimulationWellCellInfo',
|
||||
full_name='rips.SimulationWellCellInfo',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ijk', full_name='rips.SimulationWellCellInfo.ijk', index=0,
|
||||
number=1, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='grid_index', full_name='rips.SimulationWellCellInfo.grid_index', index=1,
|
||||
number=2, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='is_open', full_name='rips.SimulationWellCellInfo.is_open', index=2,
|
||||
number=3, type=8, cpp_type=7, label=1,
|
||||
has_default_value=False, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='branch_id', full_name='rips.SimulationWellCellInfo.branch_id', index=3,
|
||||
number=4, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='segment_id', full_name='rips.SimulationWellCellInfo.segment_id', index=4,
|
||||
number=5, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=188,
|
||||
serialized_end=314,
|
||||
)
|
||||
|
||||
|
||||
_SIMULATIONWELLCELLINFOARRAY = _descriptor.Descriptor(
|
||||
name='SimulationWellCellInfoArray',
|
||||
full_name='rips.SimulationWellCellInfoArray',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='data', full_name='rips.SimulationWellCellInfoArray.data', index=0,
|
||||
number=1, type=11, cpp_type=10, label=3,
|
||||
has_default_value=False, default_value=[],
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=316,
|
||||
serialized_end=389,
|
||||
)
|
||||
|
||||
_SIMULATIONWELLCELLINFO.fields_by_name['ijk'].message_type = Definitions__pb2._VEC3I
|
||||
_SIMULATIONWELLCELLINFOARRAY.fields_by_name['data'].message_type = _SIMULATIONWELLCELLINFO
|
||||
DESCRIPTOR.message_types_by_name['SimulationWellRequest'] = _SIMULATIONWELLREQUEST
|
||||
DESCRIPTOR.message_types_by_name['SimulationWellStatus'] = _SIMULATIONWELLSTATUS
|
||||
DESCRIPTOR.message_types_by_name['SimulationWellCellInfo'] = _SIMULATIONWELLCELLINFO
|
||||
DESCRIPTOR.message_types_by_name['SimulationWellCellInfoArray'] = _SIMULATIONWELLCELLINFOARRAY
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
SimulationWellRequest = _reflection.GeneratedProtocolMessageType('SimulationWellRequest', (_message.Message,), dict(
|
||||
DESCRIPTOR = _SIMULATIONWELLREQUEST,
|
||||
__module__ = 'SimulationWell_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.SimulationWellRequest)
|
||||
))
|
||||
_sym_db.RegisterMessage(SimulationWellRequest)
|
||||
|
||||
SimulationWellStatus = _reflection.GeneratedProtocolMessageType('SimulationWellStatus', (_message.Message,), dict(
|
||||
DESCRIPTOR = _SIMULATIONWELLSTATUS,
|
||||
__module__ = 'SimulationWell_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.SimulationWellStatus)
|
||||
))
|
||||
_sym_db.RegisterMessage(SimulationWellStatus)
|
||||
|
||||
SimulationWellCellInfo = _reflection.GeneratedProtocolMessageType('SimulationWellCellInfo', (_message.Message,), dict(
|
||||
DESCRIPTOR = _SIMULATIONWELLCELLINFO,
|
||||
__module__ = 'SimulationWell_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.SimulationWellCellInfo)
|
||||
))
|
||||
_sym_db.RegisterMessage(SimulationWellCellInfo)
|
||||
|
||||
SimulationWellCellInfoArray = _reflection.GeneratedProtocolMessageType('SimulationWellCellInfoArray', (_message.Message,), dict(
|
||||
DESCRIPTOR = _SIMULATIONWELLCELLINFOARRAY,
|
||||
__module__ = 'SimulationWell_pb2'
|
||||
# @@protoc_insertion_point(class_scope:rips.SimulationWellCellInfoArray)
|
||||
))
|
||||
_sym_db.RegisterMessage(SimulationWellCellInfoArray)
|
||||
|
||||
|
||||
|
||||
_SIMULATIONWELL = _descriptor.ServiceDescriptor(
|
||||
name='SimulationWell',
|
||||
full_name='rips.SimulationWell',
|
||||
file=DESCRIPTOR,
|
||||
index=0,
|
||||
serialized_options=None,
|
||||
serialized_start=392,
|
||||
serialized_end=586,
|
||||
methods=[
|
||||
_descriptor.MethodDescriptor(
|
||||
name='GetSimulationWellStatus',
|
||||
full_name='rips.SimulationWell.GetSimulationWellStatus',
|
||||
index=0,
|
||||
containing_service=None,
|
||||
input_type=_SIMULATIONWELLREQUEST,
|
||||
output_type=_SIMULATIONWELLSTATUS,
|
||||
serialized_options=None,
|
||||
),
|
||||
_descriptor.MethodDescriptor(
|
||||
name='GetSimulationWellCells',
|
||||
full_name='rips.SimulationWell.GetSimulationWellCells',
|
||||
index=1,
|
||||
containing_service=None,
|
||||
input_type=_SIMULATIONWELLREQUEST,
|
||||
output_type=_SIMULATIONWELLCELLINFOARRAY,
|
||||
serialized_options=None,
|
||||
),
|
||||
])
|
||||
_sym_db.RegisterServiceDescriptor(_SIMULATIONWELL)
|
||||
|
||||
DESCRIPTOR.services_by_name['SimulationWell'] = _SIMULATIONWELL
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
63
docs/rips/generated/SimulationWell_pb2_grpc.py
Normal file
63
docs/rips/generated/SimulationWell_pb2_grpc.py
Normal file
@ -0,0 +1,63 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
import grpc
|
||||
|
||||
import SimulationWell_pb2 as SimulationWell__pb2
|
||||
|
||||
|
||||
class SimulationWellStub(object):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
|
||||
def __init__(self, channel):
|
||||
"""Constructor.
|
||||
|
||||
Args:
|
||||
channel: A grpc.Channel.
|
||||
"""
|
||||
self.GetSimulationWellStatus = channel.unary_unary(
|
||||
'/rips.SimulationWell/GetSimulationWellStatus',
|
||||
request_serializer=SimulationWell__pb2.SimulationWellRequest.SerializeToString,
|
||||
response_deserializer=SimulationWell__pb2.SimulationWellStatus.FromString,
|
||||
)
|
||||
self.GetSimulationWellCells = channel.unary_unary(
|
||||
'/rips.SimulationWell/GetSimulationWellCells',
|
||||
request_serializer=SimulationWell__pb2.SimulationWellRequest.SerializeToString,
|
||||
response_deserializer=SimulationWell__pb2.SimulationWellCellInfoArray.FromString,
|
||||
)
|
||||
|
||||
|
||||
class SimulationWellServicer(object):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
|
||||
def GetSimulationWellStatus(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetSimulationWellCells(self, request, context):
|
||||
# missing associated documentation comment in .proto file
|
||||
pass
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
|
||||
def add_SimulationWellServicer_to_server(servicer, server):
|
||||
rpc_method_handlers = {
|
||||
'GetSimulationWellStatus': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetSimulationWellStatus,
|
||||
request_deserializer=SimulationWell__pb2.SimulationWellRequest.FromString,
|
||||
response_serializer=SimulationWell__pb2.SimulationWellStatus.SerializeToString,
|
||||
),
|
||||
'GetSimulationWellCells': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetSimulationWellCells,
|
||||
request_deserializer=SimulationWell__pb2.SimulationWellRequest.FromString,
|
||||
response_serializer=SimulationWell__pb2.SimulationWellCellInfoArray.SerializeToString,
|
||||
),
|
||||
}
|
||||
generic_handler = grpc.method_handlers_generic_handler(
|
||||
'rips.SimulationWell', rpc_method_handlers)
|
||||
server.add_generic_rpc_handlers((generic_handler,))
|
560
docs/rips/generated/pdm_objects.py
Normal file
560
docs/rips/generated/pdm_objects.py
Normal file
@ -0,0 +1,560 @@
|
||||
class PdmObject:
|
||||
__custom_init__ = None #: Assign a custom init routine to be run at __init__
|
||||
|
||||
def __init__(self, pb2_object=None, channel=None):
|
||||
if PdmObject.__custom_init__ is not None:
|
||||
PdmObject.__custom_init__(self, pb2_object=pb2_object, channel=channel)
|
||||
|
||||
class Case(PdmObject):
|
||||
"""
|
||||
The ResInsight base class for Cases
|
||||
|
||||
Attributes:
|
||||
file_path (str): Case File Name
|
||||
id (int): Case ID
|
||||
name (str): Case Name
|
||||
"""
|
||||
__custom_init__ = None #: Assign a custom init routine to be run at __init__
|
||||
|
||||
def __init__(self, pb2_object=None, channel=None):
|
||||
self.file_path = ""
|
||||
self.id = -1
|
||||
self.name = ""
|
||||
PdmObject.__init__(self, pb2_object, channel)
|
||||
if Case.__custom_init__ is not None:
|
||||
Case.__custom_init__(self, pb2_object=pb2_object, channel=channel)
|
||||
|
||||
class Reservoir(Case):
|
||||
"""
|
||||
Abtract base class for Eclipse Cases
|
||||
|
||||
"""
|
||||
__custom_init__ = None #: Assign a custom init routine to be run at __init__
|
||||
|
||||
def __init__(self, pb2_object=None, channel=None):
|
||||
Case.__init__(self, pb2_object, channel)
|
||||
if Reservoir.__custom_init__ is not None:
|
||||
Reservoir.__custom_init__(self, pb2_object=pb2_object, channel=channel)
|
||||
|
||||
def views(self):
|
||||
"""All Eclipse Views in the case
|
||||
Returns:
|
||||
List of EclipseView
|
||||
"""
|
||||
return self.children("Views", EclipseView)
|
||||
|
||||
|
||||
class EclipseCase(Reservoir):
|
||||
"""
|
||||
The Regular Eclipse Results Case
|
||||
|
||||
"""
|
||||
__custom_init__ = None #: Assign a custom init routine to be run at __init__
|
||||
|
||||
def __init__(self, pb2_object=None, channel=None):
|
||||
Reservoir.__init__(self, pb2_object, channel)
|
||||
if EclipseCase.__custom_init__ is not None:
|
||||
EclipseCase.__custom_init__(self, pb2_object=pb2_object, channel=channel)
|
||||
|
||||
class SummaryCase(PdmObject):
|
||||
"""
|
||||
The Base Class for all Summary Cases
|
||||
|
||||
Attributes:
|
||||
auto_shorty_name (str): Use Auto Display Name
|
||||
short_name (str): Display Name
|
||||
summary_header_filename (str): Summary Header File
|
||||
"""
|
||||
__custom_init__ = None #: Assign a custom init routine to be run at __init__
|
||||
|
||||
def __init__(self, pb2_object=None, channel=None):
|
||||
self.auto_shorty_name = False
|
||||
self.short_name = "Display Name"
|
||||
self.summary_header_filename = ""
|
||||
PdmObject.__init__(self, pb2_object, channel)
|
||||
if SummaryCase.__custom_init__ is not None:
|
||||
SummaryCase.__custom_init__(self, pb2_object=pb2_object, channel=channel)
|
||||
|
||||
class FileSummaryCase(SummaryCase):
|
||||
"""
|
||||
A Summary Case based on SMSPEC files
|
||||
|
||||
Attributes:
|
||||
include_restart_files (str): Include Restart Files
|
||||
"""
|
||||
__custom_init__ = None #: Assign a custom init routine to be run at __init__
|
||||
|
||||
def __init__(self, pb2_object=None, channel=None):
|
||||
self.include_restart_files = False
|
||||
SummaryCase.__init__(self, pb2_object, channel)
|
||||
if FileSummaryCase.__custom_init__ is not None:
|
||||
FileSummaryCase.__custom_init__(self, pb2_object=pb2_object, channel=channel)
|
||||
|
||||
class ViewWindow(PdmObject):
|
||||
"""
|
||||
The Base Class for all Views and Plots in ResInsight
|
||||
|
||||
"""
|
||||
__custom_init__ = None #: Assign a custom init routine to be run at __init__
|
||||
|
||||
def __init__(self, pb2_object=None, channel=None):
|
||||
PdmObject.__init__(self, pb2_object, channel)
|
||||
if ViewWindow.__custom_init__ is not None:
|
||||
ViewWindow.__custom_init__(self, pb2_object=pb2_object, channel=channel)
|
||||
|
||||
class View(ViewWindow):
|
||||
"""
|
||||
Attributes:
|
||||
background_color (str): Background
|
||||
current_time_step (int): Current Time Step
|
||||
disable_lighting (str): Disable Results Lighting
|
||||
grid_z_scale (float): Z Scale
|
||||
id (int): View ID
|
||||
perspective_projection (str): Perspective Projection
|
||||
show_grid_box (str): Show Grid Box
|
||||
show_z_scale (str): Show Z Scale Label
|
||||
"""
|
||||
__custom_init__ = None #: Assign a custom init routine to be run at __init__
|
||||
|
||||
def __init__(self, pb2_object=None, channel=None):
|
||||
self.background_color = "#b0c4de"
|
||||
self.current_time_step = 0
|
||||
self.disable_lighting = False
|
||||
self.grid_z_scale = 5
|
||||
self.id = -1
|
||||
self.perspective_projection = True
|
||||
self.show_grid_box = True
|
||||
self.show_z_scale = True
|
||||
ViewWindow.__init__(self, pb2_object, channel)
|
||||
if View.__custom_init__ is not None:
|
||||
View.__custom_init__(self, pb2_object=pb2_object, channel=channel)
|
||||
|
||||
class GeoMechView(View):
|
||||
"""
|
||||
The Geomechanical 3d View
|
||||
|
||||
"""
|
||||
__custom_init__ = None #: Assign a custom init routine to be run at __init__
|
||||
|
||||
def __init__(self, pb2_object=None, channel=None):
|
||||
View.__init__(self, pb2_object, channel)
|
||||
if GeoMechView.__custom_init__ is not None:
|
||||
GeoMechView.__custom_init__(self, pb2_object=pb2_object, channel=channel)
|
||||
|
||||
class GridSummaryCase(SummaryCase):
|
||||
"""
|
||||
A Summary Case based on extracting grid data.
|
||||
|
||||
"""
|
||||
__custom_init__ = None #: Assign a custom init routine to be run at __init__
|
||||
|
||||
def __init__(self, pb2_object=None, channel=None):
|
||||
SummaryCase.__init__(self, pb2_object, channel)
|
||||
if GridSummaryCase.__custom_init__ is not None:
|
||||
GridSummaryCase.__custom_init__(self, pb2_object=pb2_object, channel=channel)
|
||||
|
||||
class WellPath(PdmObject):
|
||||
"""
|
||||
The Base class for Well Paths
|
||||
|
||||
Attributes:
|
||||
name (str): Name
|
||||
"""
|
||||
__custom_init__ = None #: Assign a custom init routine to be run at __init__
|
||||
|
||||
def __init__(self, pb2_object=None, channel=None):
|
||||
self.name = ""
|
||||
PdmObject.__init__(self, pb2_object, channel)
|
||||
if WellPath.__custom_init__ is not None:
|
||||
WellPath.__custom_init__(self, pb2_object=pb2_object, channel=channel)
|
||||
|
||||
class ModeledWellPath(WellPath):
|
||||
"""
|
||||
A Well Path created interactively in ResInsight
|
||||
|
||||
"""
|
||||
__custom_init__ = None #: Assign a custom init routine to be run at __init__
|
||||
|
||||
def __init__(self, pb2_object=None, channel=None):
|
||||
WellPath.__init__(self, pb2_object, channel)
|
||||
if ModeledWellPath.__custom_init__ is not None:
|
||||
ModeledWellPath.__custom_init__(self, pb2_object=pb2_object, channel=channel)
|
||||
|
||||
class GeoMechCase(Case):
|
||||
"""
|
||||
The Abaqus Based GeoMech Case
|
||||
|
||||
"""
|
||||
__custom_init__ = None #: Assign a custom init routine to be run at __init__
|
||||
|
||||
def __init__(self, pb2_object=None, channel=None):
|
||||
Case.__init__(self, pb2_object, channel)
|
||||
if GeoMechCase.__custom_init__ is not None:
|
||||
GeoMechCase.__custom_init__(self, pb2_object=pb2_object, channel=channel)
|
||||
|
||||
def views(self):
|
||||
"""All GeoMech Views in the Case
|
||||
Returns:
|
||||
List of GeoMechView
|
||||
"""
|
||||
return self.children("Views", GeoMechView)
|
||||
|
||||
|
||||
class Project(PdmObject):
|
||||
"""
|
||||
The ResInsight Project
|
||||
|
||||
"""
|
||||
__custom_init__ = None #: Assign a custom init routine to be run at __init__
|
||||
|
||||
def __init__(self, pb2_object=None, channel=None):
|
||||
PdmObject.__init__(self, pb2_object, channel)
|
||||
if Project.__custom_init__ is not None:
|
||||
Project.__custom_init__(self, pb2_object=pb2_object, channel=channel)
|
||||
|
||||
class EclipseView(View):
|
||||
"""
|
||||
The Eclipse 3d Reservoir View
|
||||
|
||||
"""
|
||||
__custom_init__ = None #: Assign a custom init routine to be run at __init__
|
||||
|
||||
def __init__(self, pb2_object=None, channel=None):
|
||||
View.__init__(self, pb2_object, channel)
|
||||
if EclipseView.__custom_init__ is not None:
|
||||
EclipseView.__custom_init__(self, pb2_object=pb2_object, channel=channel)
|
||||
|
||||
def cell_result(self):
|
||||
"""Cell Result
|
||||
Returns:
|
||||
CellColors
|
||||
"""
|
||||
children = self.children("CellResult", CellColors)
|
||||
return children[0] if len(children) > 0 else None
|
||||
|
||||
|
||||
def cell_result_data(self):
|
||||
"""Current Eclipse Cell Result
|
||||
Returns:
|
||||
str
|
||||
"""
|
||||
return self._call_get_method("CellResultData")
|
||||
|
||||
|
||||
def set_cell_result_data(self, values):
|
||||
"""Set Current Eclipse Cell Result
|
||||
Arguments:
|
||||
values (str): data
|
||||
"""
|
||||
self._call_set_method("CellResultData", values)
|
||||
|
||||
|
||||
class EclipseResult(PdmObject):
|
||||
"""
|
||||
An eclipse result definition
|
||||
|
||||
Attributes:
|
||||
flow_tracer_selection_mode (str): Tracers
|
||||
phase_selection (str): Phases
|
||||
porosity_model_type (str): Porosity
|
||||
result_type (str): Type
|
||||
result_variable (str): Variable
|
||||
selected_injector_tracers (str): Injector Tracers
|
||||
selected_producer_tracers (str): Producer Tracers
|
||||
selected_souring_tracers (str): Tracers
|
||||
"""
|
||||
__custom_init__ = None #: Assign a custom init routine to be run at __init__
|
||||
|
||||
def __init__(self, pb2_object=None, channel=None):
|
||||
self.flow_tracer_selection_mode = "FLOW_TR_INJ_AND_PROD"
|
||||
self.phase_selection = "PHASE_ALL"
|
||||
self.porosity_model_type = "MATRIX_MODEL"
|
||||
self.result_type = "DYNAMIC_NATIVE"
|
||||
self.result_variable = "None"
|
||||
self.selected_injector_tracers = []
|
||||
self.selected_producer_tracers = []
|
||||
self.selected_souring_tracers = []
|
||||
PdmObject.__init__(self, pb2_object, channel)
|
||||
if EclipseResult.__custom_init__ is not None:
|
||||
EclipseResult.__custom_init__(self, pb2_object=pb2_object, channel=channel)
|
||||
|
||||
class CellColors(EclipseResult):
|
||||
"""
|
||||
Eclipse Cell Colors class
|
||||
|
||||
"""
|
||||
__custom_init__ = None #: Assign a custom init routine to be run at __init__
|
||||
|
||||
def __init__(self, pb2_object=None, channel=None):
|
||||
EclipseResult.__init__(self, pb2_object, channel)
|
||||
if CellColors.__custom_init__ is not None:
|
||||
CellColors.__custom_init__(self, pb2_object=pb2_object, channel=channel)
|
||||
|
||||
class EclipseContourMap(EclipseView):
|
||||
"""
|
||||
A contour map for Eclipse cases
|
||||
|
||||
"""
|
||||
__custom_init__ = None #: Assign a custom init routine to be run at __init__
|
||||
|
||||
def __init__(self, pb2_object=None, channel=None):
|
||||
EclipseView.__init__(self, pb2_object, channel)
|
||||
if EclipseContourMap.__custom_init__ is not None:
|
||||
EclipseContourMap.__custom_init__(self, pb2_object=pb2_object, channel=channel)
|
||||
|
||||
class GeoMechContourMap(GeoMechView):
|
||||
"""
|
||||
A contour map for GeoMech cases
|
||||
|
||||
"""
|
||||
__custom_init__ = None #: Assign a custom init routine to be run at __init__
|
||||
|
||||
def __init__(self, pb2_object=None, channel=None):
|
||||
GeoMechView.__init__(self, pb2_object, channel)
|
||||
if GeoMechContourMap.__custom_init__ is not None:
|
||||
GeoMechContourMap.__custom_init__(self, pb2_object=pb2_object, channel=channel)
|
||||
|
||||
class GridCaseGroup(PdmObject):
|
||||
"""
|
||||
A statistics case group
|
||||
|
||||
Attributes:
|
||||
group_id (int): Case Group ID
|
||||
user_description (str): Name
|
||||
"""
|
||||
__custom_init__ = None #: Assign a custom init routine to be run at __init__
|
||||
|
||||
def __init__(self, pb2_object=None, channel=None):
|
||||
self.group_id = -1
|
||||
self.user_description = "Grid Case Group"
|
||||
PdmObject.__init__(self, pb2_object, channel)
|
||||
if GridCaseGroup.__custom_init__ is not None:
|
||||
GridCaseGroup.__custom_init__(self, pb2_object=pb2_object, channel=channel)
|
||||
|
||||
class PlotWindow(ViewWindow):
|
||||
"""
|
||||
The Abstract base class for all MDI Windows in the Plot Window
|
||||
|
||||
Attributes:
|
||||
id (int): View ID
|
||||
"""
|
||||
__custom_init__ = None #: Assign a custom init routine to be run at __init__
|
||||
|
||||
def __init__(self, pb2_object=None, channel=None):
|
||||
self.id = -1
|
||||
ViewWindow.__init__(self, pb2_object, channel)
|
||||
if PlotWindow.__custom_init__ is not None:
|
||||
PlotWindow.__custom_init__(self, pb2_object=pb2_object, channel=channel)
|
||||
|
||||
class Plot(PlotWindow):
|
||||
"""
|
||||
The Abstract Base Class for all Plot Objects
|
||||
|
||||
"""
|
||||
__custom_init__ = None #: Assign a custom init routine to be run at __init__
|
||||
|
||||
def __init__(self, pb2_object=None, channel=None):
|
||||
PlotWindow.__init__(self, pb2_object, channel)
|
||||
if Plot.__custom_init__ is not None:
|
||||
Plot.__custom_init__(self, pb2_object=pb2_object, channel=channel)
|
||||
|
||||
class SummaryPlot(Plot):
|
||||
"""
|
||||
A Summary Plot
|
||||
|
||||
Attributes:
|
||||
is_using_auto_name (str): Auto Title
|
||||
normalize_curve_y_values (str): Normalize all curves
|
||||
plot_description (str): Name
|
||||
show_plot_title (str): Plot Title
|
||||
"""
|
||||
__custom_init__ = None #: Assign a custom init routine to be run at __init__
|
||||
|
||||
def __init__(self, pb2_object=None, channel=None):
|
||||
self.is_using_auto_name = True
|
||||
self.normalize_curve_y_values = False
|
||||
self.plot_description = "Summary Plot"
|
||||
self.show_plot_title = True
|
||||
Plot.__init__(self, pb2_object, channel)
|
||||
if SummaryPlot.__custom_init__ is not None:
|
||||
SummaryPlot.__custom_init__(self, pb2_object=pb2_object, channel=channel)
|
||||
|
||||
class SummaryPlotCollection(PdmObject):
|
||||
__custom_init__ = None #: Assign a custom init routine to be run at __init__
|
||||
|
||||
def __init__(self, pb2_object=None, channel=None):
|
||||
PdmObject.__init__(self, pb2_object, channel)
|
||||
if SummaryPlotCollection.__custom_init__ is not None:
|
||||
SummaryPlotCollection.__custom_init__(self, pb2_object=pb2_object, channel=channel)
|
||||
|
||||
def new_summary_plot(self, summary_cases=[], ensemble=None, address=None):
|
||||
"""
|
||||
Create a new Summary Plot
|
||||
Arguments:
|
||||
summary_cases (List of SummaryCase): Summary Cases
|
||||
ensemble (SummaryCaseSubCollection): Ensemble
|
||||
address (str): Formatted address string specifying the plot options
|
||||
Returns:
|
||||
SummaryPlot
|
||||
"""
|
||||
return self._call_pdm_method("NewSummaryPlot", summary_cases=summary_cases, ensemble=ensemble, address=address)
|
||||
|
||||
|
||||
class WbsParameters(PdmObject):
|
||||
"""
|
||||
Attributes:
|
||||
df_source (str): Depletion Factor (DF)
|
||||
fg_multiplier (float): SH Multiplier for FG in Shale
|
||||
fg_shale_source (str): FG in Shale Calculation
|
||||
k0_fg_source (str): K0_FG
|
||||
k0_sh_source (str): K0_SH
|
||||
obg0_source (str): Initial Overburden Gradient
|
||||
poission_ratio_source (str): Poisson Ratio
|
||||
pore_pressure_non_reservoir_source (str): Non-Reservoir Pore Pressure
|
||||
pore_pressure_reservoir_source (str): Reservoir Pore Pressure
|
||||
ucs_source (str): Uniaxial Compressive Strength
|
||||
user_df (float): User Defined DF
|
||||
user_k0_fg (float): User Defined K0_FG
|
||||
user_k0_sh (float): User Defined K0_SH
|
||||
user_poisson_ratio (float): User Defined Poisson Ratio
|
||||
user_pp_non_reservoir (float): Multiplier of hydrostatic PP
|
||||
user_ucs (float): User Defined UCS [bar]
|
||||
water_density (float): Density of Sea Water [g/cm^3]
|
||||
"""
|
||||
__custom_init__ = None #: Assign a custom init routine to be run at __init__
|
||||
|
||||
def __init__(self, pb2_object=None, channel=None):
|
||||
self.df_source = "LAS_FILE"
|
||||
self.fg_multiplier = 1.05
|
||||
self.fg_shale_source = "DERIVED_FROM_K0FG"
|
||||
self.k0_fg_source = "LAS_FILE"
|
||||
self.k0_sh_source = "LAS_FILE"
|
||||
self.obg0_source = "GRID"
|
||||
self.poission_ratio_source = "LAS_FILE"
|
||||
self.pore_pressure_non_reservoir_source = "LAS_FILE"
|
||||
self.pore_pressure_reservoir_source = "GRID"
|
||||
self.ucs_source = "LAS_FILE"
|
||||
self.user_df = 0.7
|
||||
self.user_k0_fg = 0.75
|
||||
self.user_k0_sh = 0.65
|
||||
self.user_poisson_ratio = 0.35
|
||||
self.user_pp_non_reservoir = 1.05
|
||||
self.user_ucs = 100
|
||||
self.water_density = 1.03
|
||||
PdmObject.__init__(self, pb2_object, channel)
|
||||
if WbsParameters.__custom_init__ is not None:
|
||||
WbsParameters.__custom_init__(self, pb2_object=pb2_object, channel=channel)
|
||||
|
||||
class SimulationWell(PdmObject):
|
||||
"""
|
||||
An Eclipse Simulation Well
|
||||
|
||||
Attributes:
|
||||
name (str): Name
|
||||
"""
|
||||
__custom_init__ = None #: Assign a custom init routine to be run at __init__
|
||||
|
||||
def __init__(self, pb2_object=None, channel=None):
|
||||
self.name = ""
|
||||
PdmObject.__init__(self, pb2_object, channel)
|
||||
if SimulationWell.__custom_init__ is not None:
|
||||
SimulationWell.__custom_init__(self, pb2_object=pb2_object, channel=channel)
|
||||
|
||||
class WellLogPlot(PlotWindow):
|
||||
"""
|
||||
A Well Log Plot With a shared Depth Axis and Multiple Tracks
|
||||
|
||||
Attributes:
|
||||
auto_scale_depth_enabled (str): Auto Scale
|
||||
depth_type (str): Type
|
||||
depth_unit (str): Unit
|
||||
maximum_depth (float): Max
|
||||
minimum_depth (float): Min
|
||||
show_depth_grid_lines (str): Show Grid Lines
|
||||
show_title_in_plot (str): Show Title
|
||||
"""
|
||||
__custom_init__ = None #: Assign a custom init routine to be run at __init__
|
||||
|
||||
def __init__(self, pb2_object=None, channel=None):
|
||||
self.auto_scale_depth_enabled = True
|
||||
self.depth_type = "MEASURED_DEPTH"
|
||||
self.depth_unit = "UNIT_METER"
|
||||
self.maximum_depth = 1000
|
||||
self.minimum_depth = 0
|
||||
self.show_depth_grid_lines = "GRID_X_MAJOR"
|
||||
self.show_title_in_plot = False
|
||||
PlotWindow.__init__(self, pb2_object, channel)
|
||||
if WellLogPlot.__custom_init__ is not None:
|
||||
WellLogPlot.__custom_init__(self, pb2_object=pb2_object, channel=channel)
|
||||
|
||||
class WellBoreStabilityPlot(WellLogPlot):
|
||||
"""
|
||||
A GeoMechanical Well Bore Stabilit Plot
|
||||
|
||||
"""
|
||||
__custom_init__ = None #: Assign a custom init routine to be run at __init__
|
||||
|
||||
def __init__(self, pb2_object=None, channel=None):
|
||||
WellLogPlot.__init__(self, pb2_object, channel)
|
||||
if WellBoreStabilityPlot.__custom_init__ is not None:
|
||||
WellBoreStabilityPlot.__custom_init__(self, pb2_object=pb2_object, channel=channel)
|
||||
|
||||
def parameters(self):
|
||||
"""Well Bore Stability Parameters
|
||||
Returns:
|
||||
WbsParameters
|
||||
"""
|
||||
children = self.children("Parameters", WbsParameters)
|
||||
return children[0] if len(children) > 0 else None
|
||||
|
||||
|
||||
class FileWellPath(WellPath):
|
||||
"""
|
||||
Well Paths Loaded From File
|
||||
|
||||
"""
|
||||
__custom_init__ = None #: Assign a custom init routine to be run at __init__
|
||||
|
||||
def __init__(self, pb2_object=None, channel=None):
|
||||
WellPath.__init__(self, pb2_object, channel)
|
||||
if FileWellPath.__custom_init__ is not None:
|
||||
FileWellPath.__custom_init__(self, pb2_object=pb2_object, channel=channel)
|
||||
|
||||
def class_dict():
|
||||
classes = {}
|
||||
classes['Case'] = Case
|
||||
classes['CellColors'] = CellColors
|
||||
classes['EclipseCase'] = EclipseCase
|
||||
classes['EclipseContourMap'] = EclipseContourMap
|
||||
classes['EclipseResult'] = EclipseResult
|
||||
classes['EclipseView'] = EclipseView
|
||||
classes['FileSummaryCase'] = FileSummaryCase
|
||||
classes['FileWellPath'] = FileWellPath
|
||||
classes['GeoMechCase'] = GeoMechCase
|
||||
classes['GeoMechContourMap'] = GeoMechContourMap
|
||||
classes['GeoMechView'] = GeoMechView
|
||||
classes['GridCaseGroup'] = GridCaseGroup
|
||||
classes['GridSummaryCase'] = GridSummaryCase
|
||||
classes['ModeledWellPath'] = ModeledWellPath
|
||||
classes['PdmObject'] = PdmObject
|
||||
classes['Plot'] = Plot
|
||||
classes['PlotWindow'] = PlotWindow
|
||||
classes['Project'] = Project
|
||||
classes['Reservoir'] = Reservoir
|
||||
classes['SimulationWell'] = SimulationWell
|
||||
classes['SummaryCase'] = SummaryCase
|
||||
classes['SummaryPlot'] = SummaryPlot
|
||||
classes['SummaryPlotCollection'] = SummaryPlotCollection
|
||||
classes['View'] = View
|
||||
classes['ViewWindow'] = ViewWindow
|
||||
classes['WbsParameters'] = WbsParameters
|
||||
classes['WellBoreStabilityPlot'] = WellBoreStabilityPlot
|
||||
classes['WellLogPlot'] = WellLogPlot
|
||||
classes['WellPath'] = WellPath
|
||||
return classes
|
||||
|
||||
def class_from_keyword(class_keyword):
|
||||
all_classes = class_dict()
|
||||
if class_keyword in all_classes.keys():
|
||||
return all_classes[class_keyword]
|
||||
return None
|
88
docs/rips/grid.py
Normal file
88
docs/rips/grid.py
Normal file
@ -0,0 +1,88 @@
|
||||
# pylint: disable=too-few-public-methods
|
||||
|
||||
"""
|
||||
Module containing the Grid class, containing information
|
||||
about Case grids.
|
||||
"""
|
||||
|
||||
import rips.generated.Case_pb2 as Case_pb2
|
||||
import rips.generated.Grid_pb2 as Grid_pb2
|
||||
import rips.generated.Grid_pb2_grpc as Grid_pb2_grpc
|
||||
|
||||
|
||||
class Grid:
|
||||
"""Grid Information. Not meant to be constructed separately
|
||||
|
||||
Create Grid objects using methods on Case: Grid() and Grids()
|
||||
"""
|
||||
def __init__(self, index, case, channel):
|
||||
self.__channel = channel
|
||||
self.__stub = Grid_pb2_grpc.GridStub(self.__channel)
|
||||
|
||||
self.case = case
|
||||
self.index = index
|
||||
|
||||
def dimensions(self):
|
||||
"""The dimensions in i, j, k direction
|
||||
|
||||
Returns:
|
||||
Vec3i: class with integer attributes i, j, k giving extent in all three dimensions.
|
||||
"""
|
||||
case_request = Case_pb2.CaseRequest(id=self.case.id)
|
||||
return self.__stub.GetDimensions(
|
||||
Grid_pb2.GridRequest(case_request=case_request,
|
||||
grid_index=self.index)).dimensions
|
||||
|
||||
|
||||
def cell_centers_async(self):
|
||||
"""The cells center for all cells in given grid async.
|
||||
|
||||
Returns:
|
||||
Iterator to a list of Vec3d: class with double attributes x, y, x giving cell centers
|
||||
"""
|
||||
case_request = Case_pb2.CaseRequest(id=self.case.id)
|
||||
chunks = self.__stub.GetCellCenters(
|
||||
Grid_pb2.GridRequest(case_request=case_request,
|
||||
grid_index=self.index))
|
||||
for chunk in chunks:
|
||||
yield chunk
|
||||
|
||||
def cell_centers(self):
|
||||
"""The cell center for all cells in given grid
|
||||
|
||||
Returns:
|
||||
List of Vec3d: class with double attributes x, y, x giving cell centers
|
||||
"""
|
||||
centers = []
|
||||
chunks = self.cell_centers_async()
|
||||
for chunk in chunks:
|
||||
for center in chunk.centers:
|
||||
centers.append(center)
|
||||
return centers
|
||||
|
||||
def cell_corners_async(self):
|
||||
"""The cell corners for all cells in given grid, async.
|
||||
|
||||
Returns:
|
||||
iterator to a list of CellCorners: a class with Vec3d for each corner (c0, c1.., c7)
|
||||
"""
|
||||
case_request = Case_pb2.CaseRequest(id=self.case.id)
|
||||
chunks = self.__stub.GetCellCorners(
|
||||
Grid_pb2.GridRequest(case_request=case_request,
|
||||
grid_index=self.index))
|
||||
|
||||
for chunk in chunks:
|
||||
yield chunk
|
||||
|
||||
def cell_corners(self):
|
||||
"""The cell corners for all cells in given grid
|
||||
|
||||
Returns:
|
||||
list of CellCorners: a class with Vec3d for each corner (c0, c1.., c7)
|
||||
"""
|
||||
corners = []
|
||||
chunks = self.cell_corners_async()
|
||||
for chunk in chunks:
|
||||
for center in chunk.cells:
|
||||
corners.append(center)
|
||||
return corners
|
68
docs/rips/gridcasegroup.py
Normal file
68
docs/rips/gridcasegroup.py
Normal file
@ -0,0 +1,68 @@
|
||||
"""
|
||||
Grid Case Group statistics module
|
||||
"""
|
||||
|
||||
from rips.pdmobject import PdmObject, add_method
|
||||
from rips.view import View
|
||||
from rips.case import Case
|
||||
|
||||
import rips.generated.Commands_pb2 as Cmd
|
||||
from rips.generated.pdm_objects import GridCaseGroup
|
||||
|
||||
@add_method(GridCaseGroup)
|
||||
def create_statistics_case(self):
|
||||
"""Create a Statistics case in the Grid Case Group
|
||||
|
||||
Returns:
|
||||
A new Case
|
||||
"""
|
||||
command_reply = self._execute_command(
|
||||
createStatisticsCase=Cmd.CreateStatisticsCaseRequest(
|
||||
caseGroupId=self.group_id))
|
||||
return Case(self.channel,
|
||||
command_reply.createStatisticsCaseResult.caseId)
|
||||
|
||||
@add_method(GridCaseGroup)
|
||||
def statistics_cases(self):
|
||||
"""Get a list of all statistics cases in the Grid Case Group"""
|
||||
stat_case_collection = self.children("StatisticsCaseCollection")[0]
|
||||
return stat_case_collection.children("Reservoirs")
|
||||
|
||||
@add_method(GridCaseGroup)
|
||||
def views(self):
|
||||
"""Get a list of views belonging to a grid case group"""
|
||||
pdm_objects = self.descendants(EclipseView)
|
||||
view_list = []
|
||||
for pdm_object in pdm_objects:
|
||||
view_list.append(pdm_object)
|
||||
return view_list
|
||||
|
||||
@add_method(GridCaseGroup)
|
||||
def view(self, view_id):
|
||||
"""Get a particular view belonging to a case group by providing view id
|
||||
Arguments:
|
||||
id(int): view id
|
||||
|
||||
Returns: a view object
|
||||
|
||||
"""
|
||||
views = self.views()
|
||||
for view_object in views:
|
||||
if view_object.id == view_id:
|
||||
return view_object
|
||||
return None
|
||||
|
||||
@add_method(GridCaseGroup)
|
||||
def compute_statistics(self, case_ids=None):
|
||||
""" Compute statistics for the given case ids
|
||||
|
||||
Arguments:
|
||||
case_ids(list of integers): list of case ids.
|
||||
If this is None all cases in group are included
|
||||
|
||||
"""
|
||||
if case_ids is None:
|
||||
case_ids = []
|
||||
return self._execute_command(
|
||||
computeCaseGroupStatistics=Cmd.ComputeCaseGroupStatRequest(
|
||||
caseIds=case_ids, caseGroupId=self.group_id))
|
310
docs/rips/instance.py
Normal file
310
docs/rips/instance.py
Normal file
@ -0,0 +1,310 @@
|
||||
# pylint: disable=no-self-use
|
||||
"""
|
||||
The main entry point for ResInsight connections
|
||||
The Instance class contained have static methods launch and find for
|
||||
creating connections to ResInsight
|
||||
"""
|
||||
|
||||
import os
|
||||
import socket
|
||||
import logging
|
||||
import time
|
||||
|
||||
import grpc
|
||||
|
||||
import rips.generated.App_pb2 as App_pb2
|
||||
import rips.generated.App_pb2_grpc as App_pb2_grpc
|
||||
import rips.generated.Commands_pb2 as Cmd
|
||||
import rips.generated.Commands_pb2_grpc as CmdRpc
|
||||
from rips.generated.Definitions_pb2 import Empty
|
||||
|
||||
import rips.generated.RiaVersionInfo as RiaVersionInfo
|
||||
|
||||
from rips.project import Project
|
||||
|
||||
|
||||
class Instance:
|
||||
"""The ResInsight Instance class. Use to launch or find existing ResInsight instances
|
||||
|
||||
Attributes:
|
||||
launched (bool): Tells us whether the application was launched as a new process.
|
||||
If the application was launched we may need to close it when exiting the script.
|
||||
commands (Commands): Command executor. Set when creating an instance.
|
||||
project (Project): Current project in ResInsight.
|
||||
Set when creating an instance and updated when opening/closing projects.
|
||||
"""
|
||||
@staticmethod
|
||||
def __is_port_in_use(port):
|
||||
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as my_socket:
|
||||
my_socket.settimeout(0.2)
|
||||
return my_socket.connect_ex(('localhost', port)) == 0
|
||||
|
||||
@staticmethod
|
||||
def __is_valid_port(port):
|
||||
location = "localhost:" + str(port)
|
||||
channel = grpc.insecure_channel(location,
|
||||
options=[
|
||||
('grpc.enable_http_proxy',
|
||||
False)
|
||||
])
|
||||
app = App_pb2_grpc.AppStub(channel)
|
||||
try:
|
||||
app.GetVersion(Empty(), timeout=1)
|
||||
except grpc.RpcError:
|
||||
return False
|
||||
return True
|
||||
|
||||
@staticmethod
|
||||
def launch(resinsight_executable='',
|
||||
console=False,
|
||||
launch_port=-1,
|
||||
command_line_parameters=None):
|
||||
""" Launch a new Instance of ResInsight. This requires the environment variable
|
||||
RESINSIGHT_EXECUTABLE to be set or the parameter resinsight_executable to be provided.
|
||||
The RESINSIGHT_GRPC_PORT environment variable can be set to an alternative port number.
|
||||
|
||||
Args:
|
||||
resinsight_executable (str): Path to a valid ResInsight executable. If set
|
||||
will take precedence over what is provided in the RESINSIGHT_EXECUTABLE
|
||||
environment variable.
|
||||
console (bool): If True, launch as console application, without GUI.
|
||||
launch_port(int): If -1 will use the default port 50051 or RESINSIGHT_GRPC_PORT
|
||||
if anything else, ResInsight will try to launch with this port
|
||||
command_line_parameters(list): Additional parameters as string entries in the list.
|
||||
Returns:
|
||||
Instance: an instance object if it worked. None if not.
|
||||
"""
|
||||
|
||||
port = 50051
|
||||
port_env = os.environ.get('RESINSIGHT_GRPC_PORT')
|
||||
if port_env:
|
||||
port = int(port_env)
|
||||
if launch_port is not -1:
|
||||
port = launch_port
|
||||
|
||||
if not resinsight_executable:
|
||||
resinsight_executable = os.environ.get('RESINSIGHT_EXECUTABLE')
|
||||
if not resinsight_executable:
|
||||
print(
|
||||
'ERROR: Could not launch ResInsight because the environment variable'
|
||||
' RESINSIGHT_EXECUTABLE is not set')
|
||||
return None
|
||||
|
||||
print("Trying port " + str(port))
|
||||
while Instance.__is_port_in_use(port):
|
||||
port += 1
|
||||
print("Trying port " + str(port))
|
||||
|
||||
print('Port ' + str(port))
|
||||
print('Trying to launch', resinsight_executable)
|
||||
|
||||
if command_line_parameters is None:
|
||||
command_line_parameters = []
|
||||
elif isinstance(command_line_parameters, str):
|
||||
command_line_parameters = [str]
|
||||
|
||||
parameters = ["ResInsight", "--server",
|
||||
str(port)] + command_line_parameters
|
||||
if console:
|
||||
print("Launching as console app")
|
||||
parameters.append("--console")
|
||||
|
||||
# Stringify all parameters
|
||||
for i in range(0, len(parameters)):
|
||||
parameters[i] = str(parameters[i])
|
||||
|
||||
pid = os.spawnv(os.P_NOWAIT, resinsight_executable, parameters)
|
||||
if pid:
|
||||
instance = Instance(port=port, launched=True)
|
||||
return instance
|
||||
return None
|
||||
|
||||
@staticmethod
|
||||
def find(start_port=50051, end_port=50071):
|
||||
""" Search for an existing Instance of ResInsight by testing ports.
|
||||
|
||||
By default we search from port 50051 to 50071 or if the environment
|
||||
variable RESINSIGHT_GRPC_PORT is set we search
|
||||
RESINSIGHT_GRPC_PORT to RESINSIGHT_GRPC_PORT+20
|
||||
|
||||
Args:
|
||||
start_port (int): start searching from this port
|
||||
end_port (int): search up to but not including this port
|
||||
"""
|
||||
port_env = os.environ.get('RESINSIGHT_GRPC_PORT')
|
||||
if port_env:
|
||||
print("Got port " + port_env + " from environment")
|
||||
start_port = int(port_env)
|
||||
end_port = start_port + 20
|
||||
|
||||
for try_port in range(start_port, end_port):
|
||||
print("Trying port " + str(try_port))
|
||||
if Instance.__is_port_in_use(try_port) and Instance.__is_valid_port(try_port):
|
||||
return Instance(port=try_port)
|
||||
|
||||
print(
|
||||
'Error: Could not find any ResInsight instances responding between ports '
|
||||
+ str(start_port) + ' and ' + str(end_port))
|
||||
return None
|
||||
|
||||
def __execute_command(self, **command_params):
|
||||
return self.commands.Execute(Cmd.CommandParams(**command_params))
|
||||
|
||||
def __check_version(self):
|
||||
try:
|
||||
major_version_ok = self.major_version() == int(
|
||||
RiaVersionInfo.RESINSIGHT_MAJOR_VERSION)
|
||||
minor_version_ok = self.minor_version() == int(
|
||||
RiaVersionInfo.RESINSIGHT_MINOR_VERSION)
|
||||
return True, major_version_ok and minor_version_ok
|
||||
except grpc.RpcError:
|
||||
return False, False
|
||||
|
||||
def __init__(self, port=50051, launched=False):
|
||||
""" Attempts to connect to ResInsight at aa specific port on localhost
|
||||
|
||||
Args:
|
||||
port(int): port number
|
||||
"""
|
||||
logging.basicConfig()
|
||||
location = "localhost:" + str(port)
|
||||
|
||||
self.channel = grpc.insecure_channel(location,
|
||||
options=[
|
||||
('grpc.enable_http_proxy',
|
||||
False)
|
||||
])
|
||||
self.launched = launched
|
||||
self.commands = CmdRpc.CommandsStub(self.channel)
|
||||
|
||||
# Main version check package
|
||||
self.app = App_pb2_grpc.AppStub(self.channel)
|
||||
|
||||
connection_ok = False
|
||||
version_ok = False
|
||||
|
||||
if self.launched:
|
||||
for _ in range(0, 10):
|
||||
connection_ok, version_ok = self.__check_version()
|
||||
if connection_ok:
|
||||
break
|
||||
time.sleep(1.0)
|
||||
else:
|
||||
connection_ok, version_ok = self.__check_version()
|
||||
|
||||
if not connection_ok:
|
||||
if self.launched:
|
||||
raise Exception('Error: Could not connect to resinsight at ',
|
||||
location,
|
||||
' after trying 10 times with 1 second apart')
|
||||
raise Exception('Error: Could not connect to resinsight at ', location)
|
||||
if not version_ok:
|
||||
raise Exception('Error: Wrong Version of ResInsight at ', location,
|
||||
self.version_string(), " ",
|
||||
self.client_version_string())
|
||||
|
||||
# Service packages
|
||||
self.project = Project.create(self.channel)
|
||||
|
||||
path = os.getcwd()
|
||||
self.set_start_dir(path=path)
|
||||
|
||||
def __version_message(self):
|
||||
return self.app.GetVersion(Empty())
|
||||
|
||||
def set_start_dir(self, path):
|
||||
"""Set current start directory
|
||||
|
||||
Arguments:
|
||||
path (str): path to directory
|
||||
|
||||
"""
|
||||
return self.__execute_command(setStartDir=Cmd.FilePathRequest(path=path))
|
||||
|
||||
def set_export_folder(self, export_type, path, create_folder=False):
|
||||
"""
|
||||
Set the export folder used for all export functions
|
||||
|
||||
Parameter | Description | Type
|
||||
---------------- | -------------------------------------------- | -----
|
||||
export_type | String specifying what to export | String
|
||||
path | Path to folder | String
|
||||
create_folder | Create folder if it doesn't exist? | Boolean
|
||||
|
||||
##### Enum export_type
|
||||
|
||||
Option | Description
|
||||
--------------- | ------------
|
||||
"COMPLETIONS" |
|
||||
"SNAPSHOTS" |
|
||||
"PROPERTIES" |
|
||||
"STATISTICS" |
|
||||
|
||||
"""
|
||||
return self.__execute_command(setExportFolder=Cmd.SetExportFolderRequest(
|
||||
type=export_type, path=path, createFolder=create_folder))
|
||||
|
||||
def set_main_window_size(self, width, height):
|
||||
"""
|
||||
Set the main window size in pixels
|
||||
|
||||
Parameter | Description | Type
|
||||
--------- | ---------------- | -----
|
||||
width | Width in pixels | Integer
|
||||
height | Height in pixels | Integer
|
||||
"""
|
||||
return self.__execute_command(setMainWindowSize=Cmd.SetWindowSizeParams(
|
||||
width=width, height=height))
|
||||
|
||||
def set_plot_window_size(self, width, height):
|
||||
"""
|
||||
Set the plot window size in pixels
|
||||
|
||||
Parameter | Description | Type
|
||||
--------- | ---------------- | -----
|
||||
width | Width in pixels | Integer
|
||||
height | Height in pixels | Integer
|
||||
"""
|
||||
return self.__execute_command(setPlotWindowSize=Cmd.SetWindowSizeParams(
|
||||
width=width, height=height))
|
||||
|
||||
def major_version(self):
|
||||
"""Get an integer with the major version number"""
|
||||
return self.__version_message().major_version
|
||||
|
||||
def minor_version(self):
|
||||
"""Get an integer with the minor version number"""
|
||||
return self.__version_message().minor_version
|
||||
|
||||
def patch_version(self):
|
||||
"""Get an integer with the patch version number"""
|
||||
return self.__version_message().patch_version
|
||||
|
||||
def version_string(self):
|
||||
"""Get a full version string, i.e. 2019.04.01"""
|
||||
return str(self.major_version()) + "." + str(
|
||||
self.minor_version()) + "." + str(self.patch_version())
|
||||
|
||||
def client_version_string(self):
|
||||
"""Get a full version string, i.e. 2019.04.01"""
|
||||
version_string = RiaVersionInfo.RESINSIGHT_MAJOR_VERSION + "."
|
||||
version_string += RiaVersionInfo.RESINSIGHT_MINOR_VERSION + "."
|
||||
version_string += RiaVersionInfo.RESINSIGHT_PATCH_VERSION
|
||||
return version_string
|
||||
|
||||
def exit(self):
|
||||
"""Tell ResInsight instance to quit"""
|
||||
print("Telling ResInsight to Exit")
|
||||
return self.app.Exit(Empty())
|
||||
|
||||
def is_console(self):
|
||||
"""Returns true if the connected ResInsight instance is a console app"""
|
||||
return self.app.GetRuntimeInfo(
|
||||
Empty()).app_type == App_pb2.ApplicationTypeEnum.Value(
|
||||
'CONSOLE_APPLICATION')
|
||||
|
||||
def is_gui(self):
|
||||
"""Returns true if the connected ResInsight instance is a GUI app"""
|
||||
return self.app.GetRuntimeInfo(
|
||||
Empty()).app_type == App_pb2.ApplicationTypeEnum.Value(
|
||||
'GUI_APPLICATION')
|
374
docs/rips/pdmobject.py
Normal file
374
docs/rips/pdmobject.py
Normal file
@ -0,0 +1,374 @@
|
||||
# pylint: disable=no-self-use
|
||||
"""
|
||||
ResInsight caf::PdmObject connection module
|
||||
"""
|
||||
|
||||
from functools import partial, wraps
|
||||
import grpc
|
||||
import re
|
||||
import builtins
|
||||
import importlib
|
||||
import inspect
|
||||
import sys
|
||||
|
||||
import rips.generated.PdmObject_pb2 as PdmObject_pb2
|
||||
import rips.generated.PdmObject_pb2_grpc as PdmObject_pb2_grpc
|
||||
import rips.generated.Commands_pb2 as Cmd
|
||||
import rips.generated.Commands_pb2_grpc as CmdRpc
|
||||
from rips.generated.pdm_objects import PdmObject, class_from_keyword
|
||||
|
||||
def camel_to_snake(name):
|
||||
s1 = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', name)
|
||||
return re.sub('([a-z0-9])([A-Z])', r'\1_\2', s1).lower()
|
||||
|
||||
def snake_to_camel(name):
|
||||
return ''.join(word.title() for word in name.split('_'))
|
||||
|
||||
def add_method(cls):
|
||||
def decorator(func):
|
||||
setattr(cls, func.__name__, func)
|
||||
return func # returning func means func can still be used normally
|
||||
return decorator
|
||||
|
||||
def add_static_method(cls):
|
||||
def decorator(func):
|
||||
@wraps(func)
|
||||
def wrapper(*args, **kwargs):
|
||||
return func(*args, **kwargs)
|
||||
setattr(cls, func.__name__, wrapper)
|
||||
# Note we are not binding func, but wrapper which accepts self but does exactly the same as func
|
||||
return func # returning func means func can still be used normally
|
||||
return decorator
|
||||
|
||||
@add_method(PdmObject)
|
||||
def _execute_command(self, **command_params):
|
||||
self.__warnings = []
|
||||
response, call = self._commands.Execute.with_call(Cmd.CommandParams(**command_params))
|
||||
for key, value in call.trailing_metadata():
|
||||
value = value.replace(';;', '\n')
|
||||
if key == 'warning':
|
||||
self.__warnings.append(value)
|
||||
|
||||
return response
|
||||
|
||||
@add_method(PdmObject)
|
||||
def __custom_init__(self, pb2_object, channel):
|
||||
self.__warnings = []
|
||||
self.__chunk_size = 8160
|
||||
|
||||
self._channel = channel
|
||||
|
||||
# Create stubs
|
||||
if self._channel:
|
||||
self._pdm_object_stub = PdmObject_pb2_grpc.PdmObjectServiceStub(self._channel)
|
||||
self._commands = CmdRpc.CommandsStub(self._channel)
|
||||
|
||||
if pb2_object is not None:
|
||||
# Copy parameters from ResInsight
|
||||
assert(not isinstance(pb2_object, PdmObject))
|
||||
self._pb2_object = pb2_object
|
||||
for camel_keyword in self._pb2_object.parameters:
|
||||
snake_keyword = camel_to_snake(camel_keyword)
|
||||
setattr(self, snake_keyword, self.__get_grpc_value(camel_keyword))
|
||||
else:
|
||||
# Copy parameters from PdmObject defaults
|
||||
self._pb2_object = PdmObject_pb2.PdmObject(class_keyword=self.__class__.__name__)
|
||||
self.__copy_to_pb2()
|
||||
|
||||
@add_method(PdmObject)
|
||||
def copy_from(self, object):
|
||||
"""Copy attribute values from object to self
|
||||
"""
|
||||
for attribute in dir(object):
|
||||
if not attribute.startswith('__'):
|
||||
value = getattr(object, attribute)
|
||||
# This is crucial to avoid overwriting methods
|
||||
if not callable(value):
|
||||
setattr(self, attribute, value)
|
||||
if self.__custom_init__ is not None:
|
||||
self.__custom_init__(self._pb2_object, self._channel)
|
||||
self.update()
|
||||
|
||||
@add_method(PdmObject)
|
||||
def warnings(self):
|
||||
return self.__warnings
|
||||
|
||||
@add_method(PdmObject)
|
||||
def has_warnings(self):
|
||||
return len(self.__warnings) > 0
|
||||
|
||||
@add_method(PdmObject)
|
||||
def __copy_to_pb2(self):
|
||||
if self._pb2_object is not None:
|
||||
for snake_kw in dir(self):
|
||||
if not snake_kw.startswith('_'):
|
||||
value = getattr(self, snake_kw)
|
||||
# This is crucial to avoid overwriting methods
|
||||
if not callable(value):
|
||||
camel_kw = snake_to_camel(snake_kw)
|
||||
self.__set_grpc_value(camel_kw, value)
|
||||
|
||||
@add_method(PdmObject)
|
||||
def pb2_object(self):
|
||||
""" Private method"""
|
||||
return self._pb2_object
|
||||
|
||||
@add_method(PdmObject)
|
||||
def channel(self):
|
||||
""" Private method"""
|
||||
return self._channel
|
||||
|
||||
@add_method(PdmObject)
|
||||
def address(self):
|
||||
"""Get the unique address of the PdmObject
|
||||
|
||||
Returns:
|
||||
A 64-bit unsigned integer address
|
||||
"""
|
||||
|
||||
return self._pb2_object.address
|
||||
|
||||
@add_method(PdmObject)
|
||||
def set_visible(self, visible):
|
||||
"""Set the visibility of the object in the ResInsight project tree"""
|
||||
self._pb2_object.visible = visible
|
||||
|
||||
@add_method(PdmObject)
|
||||
def visible(self):
|
||||
"""Get the visibility of the object in the ResInsight project tree"""
|
||||
return self._pb2_object.visible
|
||||
|
||||
@add_method(PdmObject)
|
||||
def print_object_info(self):
|
||||
"""Print the structure and data content of the PdmObject"""
|
||||
print("=========== " + self.__class__.__name__ + " =================")
|
||||
print("Object Attributes: ")
|
||||
for snake_kw in dir(self):
|
||||
if not snake_kw.startswith("_") and not callable(getattr(self, snake_kw)):
|
||||
camel_kw = snake_to_camel(snake_kw)
|
||||
print(" " + snake_kw + " [" + type(getattr(self, snake_kw)).__name__ +
|
||||
"]: " + str(getattr(self, snake_kw)))
|
||||
print("Object Methods:")
|
||||
for snake_kw in dir(self):
|
||||
if not snake_kw.startswith("_") and callable(getattr(self, snake_kw)):
|
||||
print (" " + snake_kw)
|
||||
|
||||
@add_method(PdmObject)
|
||||
def __convert_from_grpc_value(self, value):
|
||||
if value.lower() == 'false':
|
||||
return False
|
||||
if value.lower() == 'true':
|
||||
return True
|
||||
try:
|
||||
int_val = int(value)
|
||||
return int_val
|
||||
except ValueError:
|
||||
try:
|
||||
float_val = float(value)
|
||||
return float_val
|
||||
except ValueError:
|
||||
# We may have a string. Strip internal start and end quotes
|
||||
value = value.strip('\"')
|
||||
if self.__islist(value):
|
||||
return self.__makelist(value)
|
||||
return value
|
||||
|
||||
@add_method(PdmObject)
|
||||
def __convert_to_grpc_value(self, value):
|
||||
if isinstance(value, bool):
|
||||
if value:
|
||||
return "true"
|
||||
return "false"
|
||||
if isinstance(value, PdmObject):
|
||||
return value.__class__.__name__ + ":" + str(value.address())
|
||||
if isinstance(value, list):
|
||||
list_of_strings = []
|
||||
for val in value:
|
||||
list_of_strings.append('\"' + self.__convert_to_grpc_value(val) + '\"')
|
||||
return "[" + ", ".join(list_of_strings) + "]"
|
||||
return str(value)
|
||||
|
||||
@add_method(PdmObject)
|
||||
def __get_grpc_value(self, camel_keyword):
|
||||
return self.__convert_from_grpc_value(self._pb2_object.parameters[camel_keyword])
|
||||
|
||||
@add_method(PdmObject)
|
||||
def __set_grpc_value(self, camel_keyword, value):
|
||||
self._pb2_object.parameters[camel_keyword] = self.__convert_to_grpc_value(value)
|
||||
|
||||
@add_method(PdmObject)
|
||||
def set_value(self, snake_keyword, value):
|
||||
"""Set the value associated with the provided keyword and updates ResInsight
|
||||
Arguments:
|
||||
keyword(str): A string containing the parameter keyword
|
||||
value(varying): A value matching the type of the parameter.
|
||||
See keyword documentation and/or print_object_info() to find
|
||||
the correct data type.
|
||||
"""
|
||||
setattr(self, snake_keyword, value)
|
||||
self.update()
|
||||
|
||||
@add_method(PdmObject)
|
||||
def __islist(self, value):
|
||||
return value.startswith("[") and value.endswith("]")
|
||||
|
||||
@add_method(PdmObject)
|
||||
def __makelist(self, list_string):
|
||||
list_string = list_string.lstrip("[")
|
||||
list_string = list_string.rstrip("]")
|
||||
strings = list_string.split(", ")
|
||||
values = []
|
||||
for string in strings:
|
||||
values.append(self.__convert_from_grpc_value(string))
|
||||
return values
|
||||
|
||||
@add_method(PdmObject)
|
||||
def __from_pb2_to_pdm_objects(self, pb2_object_list, super_class_definition):
|
||||
pdm_object_list = []
|
||||
for pb2_object in pb2_object_list:
|
||||
child_class_definition = class_from_keyword(pb2_object.class_keyword)
|
||||
if child_class_definition is None:
|
||||
child_class_definition = super_class_definition
|
||||
|
||||
pdm_object = child_class_definition(pb2_object=pb2_object, channel=self.channel())
|
||||
pdm_object_list.append(pdm_object)
|
||||
return pdm_object_list
|
||||
|
||||
@add_method(PdmObject)
|
||||
def descendants(self, class_definition):
|
||||
"""Get a list of all project tree descendants matching the class keyword
|
||||
Arguments:
|
||||
class_definition[class]: A class definition matching the type of class wanted
|
||||
|
||||
Returns:
|
||||
A list of PdmObjects matching the class_definition
|
||||
"""
|
||||
assert(inspect.isclass(class_definition))
|
||||
|
||||
class_keyword = class_definition.__name__
|
||||
try:
|
||||
request = PdmObject_pb2.PdmDescendantObjectRequest(
|
||||
object=self._pb2_object, child_keyword=class_keyword)
|
||||
object_list = self._pdm_object_stub.GetDescendantPdmObjects(
|
||||
request).objects
|
||||
return self.__from_pb2_to_pdm_objects(object_list, class_definition)
|
||||
except grpc.RpcError as e:
|
||||
if e.code() == grpc.StatusCode.NOT_FOUND:
|
||||
return [] # Valid empty result
|
||||
raise e
|
||||
|
||||
@add_method(PdmObject)
|
||||
def children(self, child_field, class_definition=PdmObject):
|
||||
"""Get a list of all direct project tree children inside the provided child_field
|
||||
Arguments:
|
||||
child_field[str]: A field name
|
||||
Returns:
|
||||
A list of PdmObjects inside the child_field
|
||||
"""
|
||||
request = PdmObject_pb2.PdmChildObjectRequest(object=self._pb2_object,
|
||||
child_field=child_field)
|
||||
try:
|
||||
object_list = self._pdm_object_stub.GetChildPdmObjects(request).objects
|
||||
return self.__from_pb2_to_pdm_objects(object_list, class_definition)
|
||||
except grpc.RpcError as e:
|
||||
if e.code() == grpc.StatusCode.NOT_FOUND:
|
||||
return []
|
||||
raise e
|
||||
|
||||
@add_method(PdmObject)
|
||||
def ancestor(self, class_definition):
|
||||
"""Find the first ancestor that matches the provided class_keyword
|
||||
Arguments:
|
||||
class_definition[class]: A class definition matching the type of class wanted
|
||||
"""
|
||||
assert(inspect.isclass(class_definition))
|
||||
|
||||
class_keyword = class_definition.__name__
|
||||
|
||||
request = PdmObject_pb2.PdmParentObjectRequest(
|
||||
object=self._pb2_object, parent_keyword=class_keyword)
|
||||
try:
|
||||
pb2_object = self._pdm_object_stub.GetAncestorPdmObject(request)
|
||||
child_class_definition = class_from_keyword(pb2_object.class_keyword)
|
||||
|
||||
if child_class_definition is None:
|
||||
child_class_definition = class_definition
|
||||
|
||||
pdm_object = child_class_definition(pb2_object=pb2_object, channel=self.channel())
|
||||
return pdm_object
|
||||
except grpc.RpcError as e:
|
||||
if e.code() == grpc.StatusCode.NOT_FOUND:
|
||||
return None
|
||||
raise e
|
||||
|
||||
@add_method(PdmObject)
|
||||
def _call_get_method_async(self, method_name):
|
||||
request = PdmObject_pb2.PdmObjectGetterRequest(object=self._pb2_object, method=method_name)
|
||||
for chunk in self._pdm_object_stub.CallPdmObjectGetter(request):
|
||||
yield chunk
|
||||
|
||||
@add_method(PdmObject)
|
||||
def _call_get_method(self, method_name):
|
||||
all_values = []
|
||||
generator = self._call_get_method_async(method_name)
|
||||
for chunk in generator:
|
||||
data = getattr(chunk, chunk.WhichOneof('data'))
|
||||
for value in data.data:
|
||||
all_values.append(value)
|
||||
return all_values
|
||||
|
||||
@add_method(PdmObject)
|
||||
def __generate_set_method_chunks(self, array, method_request):
|
||||
index = -1
|
||||
|
||||
while index < len(array):
|
||||
chunk = PdmObject_pb2.PdmObjectSetterChunk()
|
||||
if index is -1:
|
||||
chunk.set_request.CopyFrom(PdmObject_pb2.PdmObjectSetterRequest(request=method_request, data_count=len(array)))
|
||||
index += 1
|
||||
else:
|
||||
actual_chunk_size = min(len(array) - index + 1, self.__chunk_size)
|
||||
if isinstance(array[0], float):
|
||||
chunk.CopyFrom(
|
||||
PdmObject_pb2.PdmObjectSetterChunk(doubles=PdmObject_pb2.DoubleArray(data=array[index:index +
|
||||
actual_chunk_size])))
|
||||
elif isinstance(array[0], int):
|
||||
chunk.CopyFrom(
|
||||
PdmObject_pb2.PdmObjectSetterChunk(ints=PdmObject_pb2.IntArray(data=array[index:index +
|
||||
actual_chunk_size])))
|
||||
elif isinstance(array[0], str):
|
||||
chunk.CopyFrom(
|
||||
PdmObject_pb2.PdmObjectSetterChunk(strings=PdmObject_pb2.StringArray(data=array[index:index +
|
||||
actual_chunk_size])))
|
||||
else:
|
||||
raise Exception("Wrong data type for set method")
|
||||
index += actual_chunk_size
|
||||
yield chunk
|
||||
# Final empty message to signal completion
|
||||
chunk = PdmObject_pb2.PdmObjectSetterChunk()
|
||||
yield chunk
|
||||
|
||||
@add_method(PdmObject)
|
||||
def _call_set_method(self, method_name, values):
|
||||
method_request = PdmObject_pb2.PdmObjectGetterRequest(object=self._pb2_object, method=method_name)
|
||||
request_iterator = self.__generate_set_method_chunks(values, method_request)
|
||||
reply = self._pdm_object_stub.CallPdmObjectSetter(request_iterator)
|
||||
if reply.accepted_value_count < len(values):
|
||||
raise IndexError
|
||||
|
||||
@add_method(PdmObject)
|
||||
def _call_pdm_method(self, method_name, **kwargs):
|
||||
pb2_params = PdmObject_pb2.PdmObject(class_keyword=method_name)
|
||||
for key, value in kwargs.items():
|
||||
pb2_params.parameters[snake_to_camel(key)] = self.__convert_to_grpc_value(value)
|
||||
request = PdmObject_pb2.PdmObjectMethodRequest(object=self._pb2_object, method=method_name, params=pb2_params)
|
||||
return self._pdm_object_stub.CallPdmObjectMethod(request)
|
||||
|
||||
@add_method(PdmObject)
|
||||
def update(self):
|
||||
"""Sync all fields from the Python Object to ResInsight"""
|
||||
self.__copy_to_pb2()
|
||||
if self._pdm_object_stub is not None:
|
||||
self._pdm_object_stub.UpdateExistingPdmObject(self._pb2_object)
|
||||
else:
|
||||
raise Exception("Object is not connected to GRPC service so cannot update ResInsight")
|
27
docs/rips/plot.py
Normal file
27
docs/rips/plot.py
Normal file
@ -0,0 +1,27 @@
|
||||
"""
|
||||
ResInsight 2d plot module
|
||||
"""
|
||||
import rips.generated.Commands_pb2 as Cmd
|
||||
|
||||
from rips.pdmobject import PdmObject
|
||||
from rips.generated.pdm_objects import PlotWindow, Plot
|
||||
from rips.pdmobject import add_method
|
||||
|
||||
@add_method(PlotWindow)
|
||||
def export_snapshot(self, export_folder='', file_prefix='', output_format='PNG'):
|
||||
""" Export snapshot for the current plot
|
||||
|
||||
Arguments:
|
||||
export_folder(str): The path to export to. By default will use the global export folder
|
||||
prefix (str): Exported file name prefix
|
||||
output_format(str): Enum string. Can be 'PNG' or 'PDF'.
|
||||
|
||||
"""
|
||||
return self._execute_command(
|
||||
exportSnapshots=Cmd.ExportSnapshotsRequest(type='PLOTS',
|
||||
prefix=file_prefix,
|
||||
viewId=self.id,
|
||||
exportFolder=export_folder,
|
||||
plotOutputFormat=output_format))
|
||||
|
||||
|
345
docs/rips/project.py
Normal file
345
docs/rips/project.py
Normal file
@ -0,0 +1,345 @@
|
||||
# pylint: disable=too-many-arguments
|
||||
# pylint: disable=no-member
|
||||
"""
|
||||
The ResInsight project module
|
||||
"""
|
||||
import builtins
|
||||
import grpc
|
||||
|
||||
from rips.case import Case
|
||||
from rips.gridcasegroup import GridCaseGroup
|
||||
from rips.pdmobject import PdmObject, add_method, add_static_method
|
||||
from rips.plot import Plot
|
||||
from rips.view import View
|
||||
|
||||
import rips.generated.Commands_pb2 as Cmd
|
||||
from rips.generated.Definitions_pb2 import Empty
|
||||
import rips.generated.Project_pb2_grpc as Project_pb2_grpc
|
||||
import rips.generated.Project_pb2 as Project_pb2
|
||||
import rips.generated.PdmObject_pb2 as PdmObject_pb2
|
||||
from rips.generated.pdm_objects import Project, PlotWindow, WellPath
|
||||
|
||||
|
||||
@add_method(Project)
|
||||
def __custom_init__(self, pb2_object, channel):
|
||||
self._project_stub = Project_pb2_grpc.ProjectStub(self._channel)
|
||||
|
||||
@add_static_method(Project)
|
||||
def create(channel):
|
||||
project_stub = Project_pb2_grpc.ProjectStub(channel)
|
||||
pb2_object = project_stub.GetPdmObject(Empty())
|
||||
return Project(pb2_object, channel)
|
||||
|
||||
@add_method(Project)
|
||||
def open(self, path):
|
||||
"""Open a new project from the given path
|
||||
|
||||
Arguments:
|
||||
path(str): path to project file
|
||||
|
||||
"""
|
||||
self._execute_command(openProject=Cmd.FilePathRequest(path=path))
|
||||
return self
|
||||
|
||||
@add_method(Project)
|
||||
def save(self, path=""):
|
||||
"""Save the project to the existing project file, or to a new file
|
||||
Arguments:
|
||||
path(str): File path to the file to save the project to. If empty, saves to the active project file
|
||||
"""
|
||||
self._execute_command(saveProject=Cmd.SaveProjectRequest(filePath=path))
|
||||
return self
|
||||
|
||||
@add_method(Project)
|
||||
def close(self):
|
||||
"""Close the current project (and open new blank project)"""
|
||||
self._execute_command(closeProject=Empty())
|
||||
|
||||
@add_method(Project)
|
||||
def load_case(self, path):
|
||||
"""Load a new case from the given file path
|
||||
|
||||
Arguments:
|
||||
path(str): file path to case
|
||||
Returns:
|
||||
A rips Case object
|
||||
"""
|
||||
command_reply = self._execute_command(loadCase=Cmd.FilePathRequest(
|
||||
path=path))
|
||||
return self.case(command_reply.loadCaseResult.id)
|
||||
|
||||
@add_method(Project)
|
||||
def selected_cases(self):
|
||||
"""Get a list of all cases selected in the project tree
|
||||
|
||||
Returns:
|
||||
A list of rips Case objects
|
||||
"""
|
||||
case_infos = self._project_stub.GetSelectedCases(Empty())
|
||||
cases = []
|
||||
for case_info in case_infos.data:
|
||||
cases.append(self.case(case_info.id))
|
||||
return cases
|
||||
|
||||
@add_method(Project)
|
||||
def cases(self):
|
||||
"""Get a list of all cases in the project
|
||||
|
||||
Returns:
|
||||
A list of rips Case objects
|
||||
"""
|
||||
return self.descendants(Case)
|
||||
|
||||
@add_method(Project)
|
||||
def case(self, case_id):
|
||||
"""Get a specific case from the provided case Id
|
||||
|
||||
Arguments:
|
||||
id(int): case id
|
||||
Returns:
|
||||
A rips Case object
|
||||
"""
|
||||
allCases = self.cases()
|
||||
for case in allCases:
|
||||
if case.id == case_id:
|
||||
return case
|
||||
return None
|
||||
|
||||
@add_method(Project)
|
||||
def replace_source_cases(self, grid_list_file, case_group_id=0):
|
||||
"""Replace all source cases within a case group
|
||||
|
||||
Arguments:
|
||||
grid_list_file (str): path to file containing a list of cases
|
||||
case_group_id (int): id of the case group to replace
|
||||
"""
|
||||
return self._execute_command(
|
||||
replaceSourceCases=Cmd.ReplaceSourceCasesRequest(
|
||||
gridListFile=grid_list_file, caseGroupId=case_group_id))
|
||||
|
||||
@add_method(Project)
|
||||
def create_grid_case_group(self, case_paths):
|
||||
"""Create a Grid Case Group from a list of cases
|
||||
|
||||
Arguments:
|
||||
case_paths (list): list of file path strings
|
||||
Returns:
|
||||
A case group id and name
|
||||
"""
|
||||
command_reply = self._execute_command(
|
||||
createGridCaseGroup=Cmd.CreateGridCaseGroupRequest(
|
||||
casePaths=case_paths))
|
||||
return self.grid_case_group(
|
||||
command_reply.createGridCaseGroupResult.groupId)
|
||||
|
||||
@add_method(Project)
|
||||
def views(self):
|
||||
"""Get a list of views belonging to a project"""
|
||||
return self.descendants(View)
|
||||
|
||||
@add_method(Project)
|
||||
def view(self, view_id):
|
||||
"""Get a particular view belonging to a case by providing view id
|
||||
|
||||
Arguments:
|
||||
view_id(int): view id
|
||||
Returns: a view object
|
||||
"""
|
||||
views = self.views()
|
||||
for view_object in views:
|
||||
if view_object.id == view_id:
|
||||
return view_object
|
||||
return None
|
||||
|
||||
@add_method(Project)
|
||||
def plots(self):
|
||||
"""Get a list of all plots belonging to a project"""
|
||||
pdm_objects = self.descendants(PlotWindow)
|
||||
plot_list = []
|
||||
for pdm_object in pdm_objects:
|
||||
if pdm_object.id != -1:
|
||||
plot_list.append(pdm_object)
|
||||
return plot_list
|
||||
|
||||
@add_method(Project)
|
||||
def plot(self, view_id):
|
||||
"""Get a particular plot by providing view id
|
||||
Arguments:
|
||||
view_id(int): view id
|
||||
Returns: a plot object
|
||||
"""
|
||||
plots = self.plots()
|
||||
for plot_object in plots:
|
||||
if plot_object.id == view_id:
|
||||
return plot_object
|
||||
return None
|
||||
|
||||
@add_method(Project)
|
||||
def grid_case_groups(self):
|
||||
"""Get a list of all grid case groups in the project"""
|
||||
case_groups = self.descendants(GridCaseGroup)
|
||||
return case_groups
|
||||
|
||||
@add_method(Project)
|
||||
def grid_case_group(self, group_id):
|
||||
"""Get a particular grid case group belonging to a project
|
||||
|
||||
Arguments:
|
||||
groupId(int): group id
|
||||
|
||||
Returns: a grid case group object
|
||||
"""
|
||||
case_groups = self.grid_case_groups()
|
||||
for case_group in case_groups:
|
||||
if case_group.group_id == group_id:
|
||||
return case_group
|
||||
return None
|
||||
|
||||
@add_method(Project)
|
||||
def export_multi_case_snapshots(self, grid_list_file):
|
||||
"""Export snapshots for a set of cases
|
||||
|
||||
Arguments:
|
||||
grid_list_file (str): Path to a file containing a list of grids to export snapshot for
|
||||
"""
|
||||
return self._execute_command(
|
||||
exportMultiCaseSnapshot=Cmd.ExportMultiCaseRequest(
|
||||
gridListFile=grid_list_file))
|
||||
|
||||
@add_method(Project)
|
||||
def export_snapshots(self, snapshot_type='ALL', prefix='', plot_format='PNG'):
|
||||
""" Export all snapshots of a given type
|
||||
|
||||
Arguments:
|
||||
snapshot_type (str): Enum string ('ALL', 'VIEWS' or 'PLOTS')
|
||||
prefix (str): Exported file name prefix
|
||||
plot_format(str): Enum string, 'PNG' or 'PDF'
|
||||
"""
|
||||
return self._execute_command(
|
||||
exportSnapshots=Cmd.ExportSnapshotsRequest(
|
||||
type=snapshot_type, prefix=prefix, caseId=-1, viewId=-1, plotOutputFormat=plot_format))
|
||||
|
||||
@add_method(Project)
|
||||
def export_well_paths(self, well_paths=None, md_step_size=5.0):
|
||||
""" Export a set of well paths
|
||||
|
||||
Arguments:
|
||||
well_paths(list): List of strings of well paths. If none, export all.
|
||||
md_step_size(double): resolution of the exported well path
|
||||
"""
|
||||
if well_paths is None:
|
||||
well_paths = []
|
||||
elif isinstance(well_paths, str):
|
||||
well_paths = [well_paths]
|
||||
return self._execute_command(exportWellPaths=Cmd.ExportWellPathRequest(
|
||||
wellPathNames=well_paths, mdStepSize=md_step_size))
|
||||
|
||||
@add_method(Project)
|
||||
def scale_fracture_template(self, template_id, half_length, height,
|
||||
d_factor, conductivity):
|
||||
""" Scale fracture template parameters
|
||||
|
||||
Arguments:
|
||||
template_id(int): ID of fracture template
|
||||
half_length (double): Half Length scale factor
|
||||
height (double): Height scale factor
|
||||
d_factor (double): D-factor scale factor
|
||||
conductivity (double): Conductivity scale factor
|
||||
"""
|
||||
return self._execute_command(
|
||||
scaleFractureTemplate=Cmd.ScaleFractureTemplateRequest(
|
||||
id=template_id,
|
||||
halfLength=half_length,
|
||||
height=height,
|
||||
dFactor=d_factor,
|
||||
conductivity=conductivity))
|
||||
|
||||
@add_method(Project)
|
||||
def set_fracture_containment(self, template_id, top_layer, base_layer):
|
||||
""" Set fracture template containment parameters
|
||||
|
||||
Arguments:
|
||||
template_id(int): ID of fracture template
|
||||
top_layer (int): Top layer containment
|
||||
base_layer (int): Base layer containment
|
||||
"""
|
||||
return self._execute_command(
|
||||
setFractureContainment=Cmd.SetFracContainmentRequest(
|
||||
id=template_id, topLayer=top_layer, baseLayer=base_layer))
|
||||
|
||||
@add_method(Project)
|
||||
def import_well_paths(self, well_path_files=None, well_path_folder=''):
|
||||
""" Import well paths into project
|
||||
|
||||
Arguments:
|
||||
well_path_files(list): List of file paths to import
|
||||
well_path_folder(str): A folder path containing files to import
|
||||
|
||||
Returns:
|
||||
A list of WellPath objects
|
||||
"""
|
||||
if well_path_files is None:
|
||||
well_path_files = []
|
||||
|
||||
res = self._execute_command(importWellPaths=Cmd.ImportWellPathsRequest(wellPathFolder=well_path_folder,
|
||||
wellPathFiles=well_path_files))
|
||||
well_paths = []
|
||||
for well_path_name in res.importWellPathsResult.wellPathNames:
|
||||
well_paths.append(self.well_path_by_name(well_path_name))
|
||||
return well_paths
|
||||
|
||||
@add_method(Project)
|
||||
def well_paths(self):
|
||||
"""Get a list of all well paths in the project
|
||||
|
||||
Returns:
|
||||
A list of rips WellPath objects
|
||||
"""
|
||||
return self.descendants(WellPath)
|
||||
|
||||
@add_method(Project)
|
||||
def well_path_by_name(self, well_path_name):
|
||||
"""Get a specific well path by name from the project
|
||||
|
||||
Returns:
|
||||
A WellPath object
|
||||
"""
|
||||
all_well_paths = self.well_paths()
|
||||
for well_path in all_well_paths:
|
||||
if well_path.name == well_path_name:
|
||||
return well_path
|
||||
return None
|
||||
|
||||
@add_method(Project)
|
||||
def import_well_log_files(self, well_log_files=None, well_log_folder=''):
|
||||
""" Import well log files into project
|
||||
|
||||
Arguments:
|
||||
well_log_files(list): List of file paths to import
|
||||
well_log_folder(str): A folder path containing files to import
|
||||
|
||||
Returns:
|
||||
A list of well path names (strings) that had logs imported
|
||||
"""
|
||||
|
||||
if well_log_files is None:
|
||||
well_log_files = []
|
||||
res = self._execute_command(importWellLogFiles=Cmd.ImportWellLogFilesRequest(wellLogFolder=well_log_folder,
|
||||
wellLogFiles=well_log_files))
|
||||
return res.importWellLogFilesResult.wellPathNames
|
||||
|
||||
@add_method(Project)
|
||||
def import_formation_names(self, formation_files=None):
|
||||
""" Import formation names into project
|
||||
|
||||
Arguments:
|
||||
formation_files(list): list of files to import
|
||||
|
||||
"""
|
||||
if formation_files is None:
|
||||
formation_files = []
|
||||
elif isinstance(formation_files, str):
|
||||
formation_files = [formation_files]
|
||||
|
||||
res = self._execute_command(importFormationNames=Cmd.ImportFormationNamesRequest(formationFiles=formation_files,
|
||||
applyToCaseId=-1))
|
38
docs/rips/simulation_well.py
Normal file
38
docs/rips/simulation_well.py
Normal file
@ -0,0 +1,38 @@
|
||||
"""
|
||||
ResInsight SimulationWell
|
||||
"""
|
||||
import grpc
|
||||
|
||||
import rips.generated.SimulationWell_pb2 as SimulationWell_pb2
|
||||
import rips.generated.SimulationWell_pb2_grpc as SimulationWell_pb2_grpc
|
||||
|
||||
import rips.generated.Properties_pb2 as Properties_pb2
|
||||
import rips.generated.Properties_pb2_grpc as Properties_pb2_grpc
|
||||
|
||||
import rips.generated.Commands_pb2 as Cmd
|
||||
from rips.generated.pdm_objects import SimulationWell
|
||||
|
||||
from rips.pdmobject import PdmObject, add_method
|
||||
import rips.case
|
||||
|
||||
@add_method(SimulationWell)
|
||||
def __custom_init__(self, pb2_object, channel):
|
||||
self._simulation_well_stub = SimulationWell_pb2_grpc.SimulationWellStub(channel)
|
||||
|
||||
@add_method(SimulationWell)
|
||||
def status(self, timestep):
|
||||
sim_well_request = SimulationWell_pb2.SimulationWellRequest(case_id=self.case().id,
|
||||
well_name=self.name,
|
||||
timestep=timestep)
|
||||
return self._simulation_well_stub.GetSimulationWellStatus(sim_well_request)
|
||||
|
||||
@add_method(SimulationWell)
|
||||
def cells(self, timestep):
|
||||
sim_well_request = SimulationWell_pb2.SimulationWellRequest(case_id=self.case().id,
|
||||
well_name=self.name,
|
||||
timestep=timestep)
|
||||
return self._simulation_well_stub.GetSimulationWellCells(sim_well_request).data
|
||||
|
||||
@add_method(SimulationWell)
|
||||
def case(self):
|
||||
return self.ancestor(rips.case.Case)
|
188
docs/rips/view.py
Normal file
188
docs/rips/view.py
Normal file
@ -0,0 +1,188 @@
|
||||
"""
|
||||
ResInsight 3d view module
|
||||
"""
|
||||
|
||||
import builtins
|
||||
import rips.generated.Commands_pb2 as Cmd
|
||||
|
||||
import rips.case # Circular import of Case, which already imports View. Use full name.
|
||||
from rips.pdmobject import add_method
|
||||
from rips.generated.pdm_objects import View, ViewWindow, EclipseView, GeoMechView
|
||||
|
||||
@add_method(View)
|
||||
def apply_cell_result(self, result_type, result_variable):
|
||||
"""Apply a regular cell result
|
||||
|
||||
Arguments:
|
||||
result_type (str): String representing the result category. The valid values are
|
||||
- DYNAMIC_NATIVE
|
||||
- STATIC_NATIVE
|
||||
- SOURSIMRL
|
||||
- GENERATED
|
||||
- INPUT_PROPERTY
|
||||
- FORMATION_NAMES
|
||||
- FLOW_DIAGNOSTICS
|
||||
- INJECTION_FLOODING
|
||||
result_variable (str): String representing the result variable.
|
||||
"""
|
||||
cell_result = self.cell_result()
|
||||
cell_result.result_type = result_type
|
||||
cell_result.result_variable = result_variable
|
||||
cell_result.update()
|
||||
|
||||
@add_method(View)
|
||||
def apply_flow_diagnostics_cell_result(
|
||||
self,
|
||||
result_variable='TOF',
|
||||
selection_mode='FLOW_TR_BY_SELECTION',
|
||||
injectors=None,
|
||||
producers=None):
|
||||
"""Apply a flow diagnostics cell result
|
||||
|
||||
Parameter | Description | Type
|
||||
------------------- | ------------------------------------------------------ | -----
|
||||
result_variable | String representing the result value | String
|
||||
selection_mode | String specifying which tracers to select | String
|
||||
injectors | List of injector names, used by 'FLOW_TR_BY_SELECTION' | String List
|
||||
producers | List of injector names, used by 'FLOW_TR_BY_SELECTION' | String List
|
||||
|
||||
##### Enum compdat_export
|
||||
|
||||
Option | Description
|
||||
------------------------| ------------
|
||||
"TOF" | Time of flight
|
||||
"Fraction" | Fraction
|
||||
"MaxFractionTracer" | Max Fraction Tracer
|
||||
"Communication" | Communication
|
||||
|
||||
"""
|
||||
if injectors is None:
|
||||
injectors = []
|
||||
if producers is None:
|
||||
producers = []
|
||||
cell_result = self.cell_result()
|
||||
cell_result.result_type = "FLOW_DIAGNOSTICS"
|
||||
cell_result.result_variable = result_variable
|
||||
cell_result.flow_tracer_selection_mode = selection_mode
|
||||
if selection_mode == 'FLOW_TR_BY_SELECTION':
|
||||
cell_result.selected_injector_tracers = injectors
|
||||
cell_result.selected_producer_tracers = producers
|
||||
cell_result.update()
|
||||
|
||||
@add_method(View)
|
||||
def clone(self):
|
||||
"""Clone the current view"""
|
||||
view_id = self._execute_command(cloneView=Cmd.CloneViewRequest(
|
||||
viewId=self.id)).createViewResult.viewId
|
||||
return self.case().view(view_id)
|
||||
|
||||
@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):
|
||||
"""Export fracture completions for simulation wells
|
||||
|
||||
Parameter | Description | Type
|
||||
----------------------------| ------------------------------------------------ | -----
|
||||
time_step | Time step to export for | Integer
|
||||
simulation_well_names | List of simulation well names | List
|
||||
file_split | Controls how export data is split into files | String enum
|
||||
compdat_export | Compdat export type | String enum
|
||||
|
||||
##### Enum file_split
|
||||
|
||||
Option | Description
|
||||
----------------------------------- | ------------
|
||||
"UNIFIED_FILE" <b>Default Option</b>| A single file with all transmissibilities
|
||||
"SPLIT_ON_WELL" | One file for each well transmissibilities
|
||||
"SPLIT_ON_WELL_AND_COMPLETION_TYPE" | One file for each completion type for each well
|
||||
|
||||
##### Enum compdat_export
|
||||
|
||||
Option | Description
|
||||
-----------------------------------------| ------------
|
||||
"TRANSMISSIBILITIES"<b>Default Option</b>| Direct export of transmissibilities
|
||||
"WPIMULT_AND_DEFAULT_CONNECTION_FACTORS" | Include export of WPIMULT
|
||||
|
||||
"""
|
||||
if isinstance(simulation_well_names, str):
|
||||
simulation_well_names = [simulation_well_names]
|
||||
|
||||
case_id = self.case().id
|
||||
return self._execute_command(
|
||||
exportSimWellFractureCompletions=Cmd.ExportSimWellPathFracRequest(
|
||||
caseId=case_id,
|
||||
viewId=self.id,
|
||||
timeStep=time_step,
|
||||
simulationWellNames=simulation_well_names,
|
||||
fileSplit=file_split,
|
||||
compdatExport=compdat_export))
|
||||
|
||||
@add_method(View)
|
||||
def export_visible_cells(self,
|
||||
export_keyword='FLUXNUM',
|
||||
visible_active_cells_value=1,
|
||||
hidden_active_cells_value=0,
|
||||
inactive_cells_value=0):
|
||||
"""Export special properties for all visible cells.
|
||||
|
||||
Arguments:
|
||||
export_keyword (string): The keyword to export.
|
||||
Choices: 'FLUXNUM' or 'MULTNUM'. Default: 'FLUXNUM'
|
||||
visible_active_cells_value (int): Value to export forvisible active cells. Default: 1
|
||||
hidden_active_cells_value (int): Value to export for hidden active cells. Default: 0
|
||||
inactive_cells_value (int): Value to export for inactive cells. Default: 0
|
||||
"""
|
||||
case_id = self.case().id
|
||||
return self._execute_command(
|
||||
exportVisibleCells=Cmd.ExportVisibleCellsRequest(
|
||||
caseId=case_id,
|
||||
viewId=self.id,
|
||||
exportKeyword=export_keyword,
|
||||
visibleActiveCellsValue=visible_active_cells_value,
|
||||
hiddenActiveCellsValue=hidden_active_cells_value,
|
||||
inactiveCellsValue=inactive_cells_value))
|
||||
|
||||
@add_method(View)
|
||||
def export_property(self, undefined_value=0.0):
|
||||
""" Export the current Eclipse property from the view
|
||||
|
||||
Arguments:
|
||||
undefined_value (double): Value to use for undefined values. Defaults to 0.0
|
||||
"""
|
||||
case_id = self.case().id
|
||||
return self._execute_command(
|
||||
exportPropertyInViews=Cmd.ExportPropertyInViewsRequest(
|
||||
caseId=case_id,
|
||||
viewIds=[self.id],
|
||||
undefinedValue=undefined_value))
|
||||
|
||||
@add_method(ViewWindow)
|
||||
def case(self):
|
||||
"""Get the case the view belongs to"""
|
||||
mycase = self.ancestor(rips.case.Case)
|
||||
assert(mycase is not None)
|
||||
return mycase
|
||||
|
||||
@add_method(ViewWindow)
|
||||
def export_snapshot(self, prefix='', export_folder=''):
|
||||
""" Export snapshot for the current view
|
||||
|
||||
Arguments:
|
||||
prefix (str): Exported file name prefix
|
||||
export_folder(str): The path to export to. By default will use the global export folder
|
||||
"""
|
||||
case_id = self.case().id
|
||||
return self._execute_command(
|
||||
exportSnapshots=Cmd.ExportSnapshotsRequest(type='VIEWS',
|
||||
prefix=prefix,
|
||||
caseId=case_id,
|
||||
viewId=self.id,
|
||||
exportFolder=export_folder))
|
55
docs/rips/well_log_plot.py
Normal file
55
docs/rips/well_log_plot.py
Normal file
@ -0,0 +1,55 @@
|
||||
"""
|
||||
ResInsight Well Log Plot plot module
|
||||
"""
|
||||
|
||||
import rips.generated.Commands_pb2 as Cmd
|
||||
|
||||
from rips.plot import Plot
|
||||
from rips.pdmobject import PdmObject
|
||||
from rips.generated.pdm_objects import WellLogPlot
|
||||
from rips.pdmobject import add_method
|
||||
|
||||
@add_method(WellLogPlot)
|
||||
def export_data_as_las(self, export_folder, file_prefix='', export_tvdrkb=False, capitalize_file_names=False, resample_interval=0.0, convert_to_standard_units=False):
|
||||
""" Export LAS file(s) for the current plot
|
||||
|
||||
Arguments:
|
||||
export_folder(str): The path to export to. By default will use the global export folder
|
||||
file_prefix (str): Exported file name prefix
|
||||
export_tvdrkb(bool): Export in TVD-RKB format
|
||||
capitalize_file_names(bool): Make all file names upper case
|
||||
resample_interval(double): if > 0.0 the files will be resampled
|
||||
|
||||
Returns:
|
||||
A list of files exported
|
||||
"""
|
||||
res = self._execute_command(exportWellLogPlotData=Cmd.ExportWellLogPlotDataRequest(exportFormat='LAS',
|
||||
viewId=self.id,
|
||||
exportFolder=export_folder,
|
||||
filePrefix=file_prefix,
|
||||
exportTvdRkb=export_tvdrkb,
|
||||
capitalizeFileNames=capitalize_file_names,
|
||||
resampleInterval=resample_interval,
|
||||
convertCurveUnits=convert_to_standard_units))
|
||||
return res.exportWellLogPlotDataResult.exportedFiles
|
||||
|
||||
@add_method(WellLogPlot)
|
||||
def export_data_as_ascii(self, export_folder, file_prefix='', capitalize_file_names=False):
|
||||
""" Export LAS file(s) for the current plot
|
||||
|
||||
Arguments:
|
||||
export_folder(str): The path to export to. By default will use the global export folder
|
||||
file_prefix (str): Exported file name prefix
|
||||
capitalize_file_names(bool): Make all file names upper case
|
||||
|
||||
Returns:
|
||||
A list of files exported
|
||||
"""
|
||||
res = self._execute_command(exportWellLogPlotData=Cmd.ExportWellLogPlotDataRequest(exportFormat='ASCII',
|
||||
viewId=self.id,
|
||||
exportFolder=export_folder,
|
||||
filePrefix=file_prefix,
|
||||
exportTvdRkb=False,
|
||||
capitalizeFileNames=capitalize_file_names,
|
||||
resampleInterval=0.0))
|
||||
return res.exportWellLogPlotDataResult.exportedFiles
|
159
docs/source/PythonExamples.rst
Normal file
159
docs/source/PythonExamples.rst
Normal file
@ -0,0 +1,159 @@
|
||||
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
|
||||
|
||||
========
|
||||
AlterWbsPlot
|
||||
========
|
||||
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/alter_wbs_plot.py
|
||||
|
||||
========
|
||||
CaseGridGroup
|
||||
========
|
||||
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/case_grid_group.py
|
||||
|
||||
========
|
||||
CaseInfoStreamingExample
|
||||
========
|
||||
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/case_info_streaming_example.py
|
||||
|
||||
========
|
||||
CellResultData
|
||||
========
|
||||
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/cell_result_data.py
|
||||
|
||||
========
|
||||
CommandExample
|
||||
========
|
||||
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/command_example.py
|
||||
|
||||
========
|
||||
Create WBS Plot
|
||||
========
|
||||
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/create_wbs_plot.py
|
||||
|
||||
========
|
||||
ErrorHandling
|
||||
========
|
||||
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/error_handling.py
|
||||
|
||||
========
|
||||
ExportContourMaps
|
||||
========
|
||||
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/export_contour_maps.py
|
||||
|
||||
========
|
||||
ExportPlots
|
||||
========
|
||||
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/export_plots.py
|
||||
|
||||
========
|
||||
ExportSnapshots
|
||||
========
|
||||
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/export_snapshots.py
|
||||
|
||||
========
|
||||
GridInformation
|
||||
========
|
||||
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/grid_information.py
|
||||
|
||||
========
|
||||
Import Well Paths
|
||||
========
|
||||
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/import_well_paths_and_logs.py
|
||||
|
||||
========
|
||||
InputPropTestAsync
|
||||
========
|
||||
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/input_prop_test_async.py
|
||||
|
||||
========
|
||||
InputPropTestSync
|
||||
========
|
||||
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/input_prop_test_sync.py
|
||||
|
||||
========
|
||||
InstanceExample
|
||||
========
|
||||
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/instance_example.py
|
||||
|
||||
========
|
||||
LaunchWithCommandLineOptions
|
||||
========
|
||||
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/launch_with_commandline_options.py
|
||||
|
||||
========
|
||||
Launch Using Command Line Options
|
||||
========
|
||||
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/launch_with_commandline_options.py
|
||||
|
||||
========
|
||||
NewSummaryPlot
|
||||
========
|
||||
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/new_summary_plot.py
|
||||
|
||||
========
|
||||
SelectedCases
|
||||
========
|
||||
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/selected_cases.py
|
||||
|
||||
========
|
||||
SelectedCells
|
||||
========
|
||||
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/selected_cells.py
|
||||
|
||||
========
|
||||
SetCellResult
|
||||
========
|
||||
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/set_cell_result.py
|
||||
|
||||
========
|
||||
SetFlowDiagnosticsResult
|
||||
========
|
||||
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/set_flow_diagnostics_result.py
|
||||
|
||||
========
|
||||
SetGridProperties
|
||||
========
|
||||
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/set_grid_properties.py
|
||||
|
||||
========
|
||||
SoilAverageAsync
|
||||
========
|
||||
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/soil_average_async.py
|
||||
|
||||
========
|
||||
SoilAverageSync
|
||||
========
|
||||
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/soil_average_sync.py
|
||||
|
||||
========
|
||||
SoilPorvAsync
|
||||
========
|
||||
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/soil_porv_async.py
|
||||
|
||||
========
|
||||
SoilPorvSync
|
||||
========
|
||||
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/soil_porv_sync.py
|
||||
|
||||
========
|
||||
ViewExample
|
||||
========
|
||||
.. literalinclude:: ../../ApplicationCode/GrpcInterface/Python/rips/PythonExamples/view_example.py
|
73
docs/source/conf.py
Normal file
73
docs/source/conf.py
Normal file
@ -0,0 +1,73 @@
|
||||
# Configuration file for the Sphinx documentation builder.
|
||||
#
|
||||
# This file only contains a selection of the most common options. For a full
|
||||
# list see the documentation:
|
||||
# http://www.sphinx-doc.org/en/master/config
|
||||
|
||||
# -- Path setup --------------------------------------------------------------
|
||||
|
||||
# If extensions (or modules to document with autodoc) are in another directory,
|
||||
# add these directories to sys.path here. If the directory is relative to the
|
||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||
#
|
||||
import os
|
||||
import sys
|
||||
sys.path.insert(0, os.path.abspath('..'))
|
||||
# TODO: We need to get access to the generated files in /ApplicationCode/GrpcInterface/Python/rips/generated
|
||||
# It is not clear how we can organize these files for readthedocs
|
||||
# sys.path.insert(0, os.path.abspath('../../ApplicationCode/GrpcInterface/Python'))
|
||||
|
||||
|
||||
# -- Project information -----------------------------------------------------
|
||||
|
||||
project = 'ResInsight Scripting API'
|
||||
copyright = '2020, Ceetron Solutions AS'
|
||||
author = 'Ceetron Solutions AS'
|
||||
|
||||
# The full version, including alpha/beta/rc tags
|
||||
release = '2020.04'
|
||||
|
||||
|
||||
# -- General configuration ---------------------------------------------------
|
||||
|
||||
# Add any Sphinx extension module names here, as strings. They can be
|
||||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
||||
# ones.
|
||||
extensions = [
|
||||
'sphinx.ext.autodoc', 'sphinx.ext.coverage', 'sphinx.ext.napoleon'
|
||||
]
|
||||
|
||||
master_doc = 'index'
|
||||
|
||||
napoleon_google_docstring = True
|
||||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
templates_path = ['_templates']
|
||||
|
||||
# List of patterns, relative to source directory, that match files and
|
||||
# directories to ignore when looking for source files.
|
||||
# This pattern also affects html_static_path and html_extra_path.
|
||||
exclude_patterns = ['build/*']
|
||||
|
||||
|
||||
# -- Options for HTML output -------------------------------------------------
|
||||
|
||||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||
# a list of builtin themes.
|
||||
#
|
||||
html_theme = "sphinx_rtd_theme"
|
||||
|
||||
html_logo = "images/ResInsightCroppedIconPicture.png"
|
||||
|
||||
html_theme_options = {
|
||||
'style_nav_header_background': '#505050',
|
||||
}
|
||||
smartquotes=False
|
||||
|
||||
# Add any paths that contain custom static files (such as style sheets) here,
|
||||
# relative to this directory. They are copied after the builtin static files,
|
||||
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||
html_static_path = ['_static']
|
||||
|
||||
|
||||
# -- Extension configuration -------------------------------------------------
|
BIN
docs/source/images/ResInsightCroppedIconPicture.png
Normal file
BIN
docs/source/images/ResInsightCroppedIconPicture.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 62 KiB |
BIN
docs/source/images/python-logo-master-v3-TM.png
Normal file
BIN
docs/source/images/python-logo-master-v3-TM.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 82 KiB |
23
docs/source/index.rst
Normal file
23
docs/source/index.rst
Normal file
@ -0,0 +1,23 @@
|
||||
ResInsight Scripting API
|
||||
========================
|
||||
|
||||
Many features of ResInsigt can automated using the Python API
|
||||
|
||||
See https://resinsight.org for the main **ResInsight** documentation.
|
||||
|
||||
Contents
|
||||
========
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
PythonExamples
|
||||
rips
|
||||
pdm_objects
|
||||
|
||||
Indices and tables
|
||||
==================
|
||||
|
||||
* :ref:`genindex`
|
||||
* :ref:`modindex`
|
||||
* :ref:`search`
|
13
docs/source/pdm_objects.rst
Normal file
13
docs/source/pdm_objects.rst
Normal file
@ -0,0 +1,13 @@
|
||||
pdm\_objects module
|
||||
===================
|
||||
|
||||
This module contains the classes used to wrap the autogenerated classes from **GRPC**. Usually, the
|
||||
script writer does not have to look here, but the documentation is included for completeness.
|
||||
|
||||
.. automodule:: rips.generated.pdm_objects
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
:inherited-members:
|
||||
|
||||
.. autoattribute:: rips.generated.pdm_objects
|
92
docs/source/rips.rst
Normal file
92
docs/source/rips.rst
Normal file
@ -0,0 +1,92 @@
|
||||
rips package
|
||||
============
|
||||
|
||||
rips.case module
|
||||
----------------
|
||||
|
||||
.. automodule:: rips.case
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
rips.contour\_map module
|
||||
------------------------
|
||||
|
||||
.. automodule:: rips.contour_map
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
rips.grid module
|
||||
----------------
|
||||
|
||||
.. automodule:: rips.grid
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
rips.gridcasegroup module
|
||||
-------------------------
|
||||
|
||||
.. automodule:: rips.gridcasegroup
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
rips.instance module
|
||||
--------------------
|
||||
|
||||
.. automodule:: rips.instance
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
rips.pdmobject module
|
||||
---------------------
|
||||
|
||||
.. automodule:: rips.pdmobject
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
rips.plot module
|
||||
----------------
|
||||
|
||||
.. automodule:: rips.plot
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
rips.project module
|
||||
-------------------
|
||||
|
||||
.. automodule:: rips.project
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
rips.simulation\_well module
|
||||
----------------------------
|
||||
|
||||
.. automodule:: rips.simulation_well
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
rips.view module
|
||||
----------------
|
||||
|
||||
.. automodule:: rips.view
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
rips.well\_log\_plot module
|
||||
---------------------------
|
||||
|
||||
.. automodule:: rips.well_log_plot
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user