python EclipseState: added constructor.

This commit is contained in:
Steinar Foss
2019-09-13 11:11:00 +02:00
parent 7fc7a8f0ba
commit fcca1fa823
2 changed files with 9 additions and 6 deletions

View File

@@ -1,3 +1,5 @@
#include <opm/parser/eclipse/Deck/Deck.hpp>
#include <opm/parser/eclipse/EclipseState/EclipseState.hpp>
#include <opm/parser/eclipse/EclipseState/Grid/FaultCollection.hpp>
@@ -88,6 +90,7 @@ namespace {
void python::common::export_EclipseState(py::module& module) {
py::class_< EclipseState >( module, "EclipseState" )
.def(py::init<const Deck&>())
.def_property_readonly( "title", &EclipseState::getTitle )
.def( "_props", &EclipseState::get3DProperties, ref_internal)
.def( "_grid", &EclipseState::getInputGrid, ref_internal)