added basic tables support, and cornerpoint test data (#27)
* added basic tables support, and cornerpoint test data
This commit is contained in:
committed by
GitHub
parent
7a6fff51ca
commit
d966376562
@@ -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):
|
||||
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user