Files
opm-common/python/sunbeam/group.cpp
Joakim Hove 77795b5005 Add 'python/' from commit '278373703455ea6562a0f8e5278b4db46eb1fc7e'
git-subtree-dir: python
git-subtree-mainline: e8dbf7d8ee
git-subtree-split: 2783737034
2019-05-08 07:20:29 +02:00

25 lines
597 B
C++

#include <opm/parser/eclipse/EclipseState/Schedule/Group.hpp>
#include <pybind11/stl.h>
#include "sunbeam.hpp"
namespace {
const std::set<std::string> wellnames( const Group& g, size_t timestep ) {
return g.getWells( timestep );
}
int get_vfp_table_nr( const Group& g, size_t timestep ) {
return g.getGroupNetVFPTable(timestep);
}
}
void sunbeam::export_Group(py::module& module) {
py::class_< Group >( module, "Group")
.def_property_readonly( "name", &Group::name)
.def( "_vfp_table_nr", &get_vfp_table_nr )
.def( "_wellnames", &wellnames );
}