added basic tables support, and cornerpoint test data (#27)

* added basic tables support, and cornerpoint test data
This commit is contained in:
Pål Grønås Drange
2017-02-16 15:43:59 +01:00
committed by GitHub
parent 7a6fff51ca
commit d966376562
5 changed files with 1236 additions and 0 deletions

View File

@@ -37,6 +37,13 @@ class Eclipse3DProperties(object):
return 'Eclipse3DProperties()'
@delegate(lib.Tables)
class Tables(object):
def __repr__(self):
return 'Tables()'
@delegate(lib.EclipseGrid)
class EclipseGrid(object):

View File

@@ -262,6 +262,7 @@ py::class_< EclipseState >( "EclipseState", py::no_init )
.def( "_props", &EclipseState::get3DProperties, ref() )
.def( "_grid", &EclipseState::getInputGrid, ref() )
.def( "_cfg", &EclipseState::cfg, ref() )
.def( "tables", &EclipseState::getTableManager, ref() )
.def( "has_input_nnc", &EclipseState::hasInputNNC )
.def( "input_nnc", state::getNNC )
.def( "faultNames", state::faultNames )
@@ -283,6 +284,10 @@ py::class_< Eclipse3DProperties >( "Eclipse3DProperties", py::no_init )
.def( "__getitem__", props::getitem )
;
py::class_< TableManager >( "Tables", py::no_init )
.def( "__contains__", &TableManager::hasTables )
;
/*
* config
*/