namespace sunbeam -> opmcommon_python.
This commit is contained in:
parent
c94ed2f643
commit
36338c8a71
@ -3,18 +3,18 @@
|
||||
|
||||
|
||||
PYBIND11_MODULE(libopmcommon_python, module) {
|
||||
sunbeam::export_Parser(module);
|
||||
sunbeam::export_Deck(module);
|
||||
sunbeam::export_DeckKeyword(module);
|
||||
sunbeam::export_Schedule(module);
|
||||
sunbeam::export_Well(module);
|
||||
sunbeam::export_Group(module);
|
||||
sunbeam::export_GroupTree(module);
|
||||
sunbeam::export_Connection(module);
|
||||
sunbeam::export_EclipseConfig(module);
|
||||
sunbeam::export_Eclipse3DProperties(module);
|
||||
sunbeam::export_EclipseState(module);
|
||||
sunbeam::export_TableManager(module);
|
||||
sunbeam::export_EclipseGrid(module);
|
||||
opmcommon_python::export_Parser(module);
|
||||
opmcommon_python::export_Deck(module);
|
||||
opmcommon_python::export_DeckKeyword(module);
|
||||
opmcommon_python::export_Schedule(module);
|
||||
opmcommon_python::export_Well(module);
|
||||
opmcommon_python::export_Group(module);
|
||||
opmcommon_python::export_GroupTree(module);
|
||||
opmcommon_python::export_Connection(module);
|
||||
opmcommon_python::export_EclipseConfig(module);
|
||||
opmcommon_python::export_Eclipse3DProperties(module);
|
||||
opmcommon_python::export_EclipseState(module);
|
||||
opmcommon_python::export_TableManager(module);
|
||||
opmcommon_python::export_EclipseGrid(module);
|
||||
}
|
||||
|
||||
|
@ -11,7 +11,7 @@ const py::return_value_policy ref_internal = py::return_value_policy::reference_
|
||||
const py::return_value_policy python_owner = py::return_value_policy::take_ownership;
|
||||
const py::return_value_policy move = py::return_value_policy::move;
|
||||
|
||||
namespace sunbeam {
|
||||
namespace opmcommon_python {
|
||||
|
||||
void export_Connection(py::module& module);
|
||||
void export_Deck(py::module& module);
|
||||
|
@ -15,7 +15,7 @@ std::string direction( const Connection& c ) {
|
||||
}
|
||||
|
||||
|
||||
void sunbeam::export_Connection(py::module& module) {
|
||||
void opmcommon_python::export_Connection(py::module& module) {
|
||||
|
||||
py::class_< Connection >( module, "Connection")
|
||||
.def_property_readonly("direction", &direction )
|
||||
|
@ -37,7 +37,7 @@ namespace {
|
||||
|
||||
}
|
||||
|
||||
void sunbeam::export_Deck(py::module &module) {
|
||||
void opmcommon_python::export_Deck(py::module &module) {
|
||||
|
||||
py::class_< Deck >(module, "Deck")
|
||||
.def( "__len__", &size )
|
||||
|
@ -56,7 +56,7 @@ struct DeckRecordIterator
|
||||
|
||||
}
|
||||
|
||||
void sunbeam::export_DeckKeyword(py::module& module) {
|
||||
void opmcommon_python::export_DeckKeyword(py::module& module) {
|
||||
py::class_< DeckKeyword >( module, "DeckKeyword")
|
||||
.def( "__repr__", &DeckKeyword::name )
|
||||
.def( "__str__", &str<DeckKeyword> )
|
||||
|
@ -35,7 +35,7 @@ namespace {
|
||||
|
||||
}
|
||||
|
||||
void sunbeam::export_Eclipse3DProperties(py::module& module) {
|
||||
void opmcommon_python::export_Eclipse3DProperties(py::module& module) {
|
||||
|
||||
py::class_< Eclipse3DProperties >( module, "Eclipse3DProperties")
|
||||
.def( "getRegions", ®ions )
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include "common.hpp"
|
||||
|
||||
|
||||
void sunbeam::export_EclipseConfig(py::module& module)
|
||||
void opmcommon_python::export_EclipseConfig(py::module& module)
|
||||
{
|
||||
py::class_< EclipseConfig >( module, "EclipseConfig" )
|
||||
.def( "init", &EclipseConfig::init, ref_internal)
|
||||
|
@ -41,7 +41,7 @@ namespace {
|
||||
|
||||
}
|
||||
|
||||
void sunbeam::export_EclipseGrid(py::module& module) {
|
||||
void opmcommon_python::export_EclipseGrid(py::module& module) {
|
||||
|
||||
py::class_< EclipseGrid >( module, "EclipseGrid")
|
||||
.def( "_getXYZ", &getXYZ )
|
||||
|
@ -85,7 +85,7 @@ namespace {
|
||||
|
||||
}
|
||||
|
||||
void sunbeam::export_EclipseState(py::module& module) {
|
||||
void opmcommon_python::export_EclipseState(py::module& module) {
|
||||
|
||||
py::class_< EclipseState >( module, "EclipseState" )
|
||||
.def_property_readonly( "title", &EclipseState::getTitle )
|
||||
|
@ -14,7 +14,7 @@ namespace {
|
||||
}
|
||||
}
|
||||
|
||||
void sunbeam::export_Group(py::module& module) {
|
||||
void opmcommon_python::export_Group(py::module& module) {
|
||||
|
||||
py::class_< Group2 >( module, "Group")
|
||||
.def_property_readonly( "name", &Group2::name)
|
||||
|
@ -15,7 +15,7 @@ namespace {
|
||||
}
|
||||
}
|
||||
|
||||
void sunbeam::export_GroupTree(py::module& module) {
|
||||
void opmcommon_python::export_GroupTree(py::module& module) {
|
||||
|
||||
py::class_<GTNode>(module, "GroupTree")
|
||||
|
||||
|
@ -46,7 +46,7 @@ namespace {
|
||||
}
|
||||
}
|
||||
|
||||
void sunbeam::export_Parser(py::module& module) {
|
||||
void opmcommon_python::export_Parser(py::module& module) {
|
||||
|
||||
module.def( "parse", parse_file );
|
||||
module.def( "parse_string", parse_string);
|
||||
|
@ -90,7 +90,7 @@ namespace {
|
||||
|
||||
}
|
||||
|
||||
void sunbeam::export_Schedule(py::module& module) {
|
||||
void opmcommon_python::export_Schedule(py::module& module) {
|
||||
|
||||
py::class_< Schedule >( module, "Schedule")
|
||||
.def("_groups", &get_groups )
|
||||
|
@ -16,7 +16,7 @@ namespace {
|
||||
|
||||
}
|
||||
|
||||
void sunbeam::export_TableManager(py::module& module) {
|
||||
void opmcommon_python::export_TableManager(py::module& module) {
|
||||
|
||||
py::class_< TableManager >( module, "Tables")
|
||||
.def( "__contains__", &TableManager::hasTables )
|
||||
|
@ -33,7 +33,7 @@ namespace {
|
||||
|
||||
}
|
||||
|
||||
void sunbeam::export_Well(py::module& module) {
|
||||
void opmcommon_python::export_Well(py::module& module) {
|
||||
|
||||
py::class_< Well2 >( module, "Well")
|
||||
.def_property_readonly( "name", &Well2::name )
|
||||
|
Loading…
Reference in New Issue
Block a user