Use Schedule::groupNames() intead of getGroups()

This commit is contained in:
Joakim Hove
2019-07-07 10:29:24 +02:00
parent 6426644ce4
commit 7559c31e43
4 changed files with 51 additions and 30 deletions

View File

@@ -82,6 +82,11 @@ namespace {
return sch.hasWell( wellName );
}
const Group& get_group(const Schedule& sch, const std::string group_name) {
return sch.getGroup(group_name);
}
}
void sunbeam::export_Schedule(py::module& module) {
@@ -94,7 +99,7 @@ void sunbeam::export_Schedule(py::module& module) {
.def( "_get_wells", &Schedule::getWells2)
.def("_getwell", &get_well)
.def( "__contains__", &has_well )
.def( "_group", &Schedule::getGroup, ref_internal)
.def( "_group", &get_group, ref_internal)
.def( "_group_tree", &get_grouptree, ref_internal);
}