Add Schedule::xxx_well() for well status manipulations from Python

This commit is contained in:
Joakim Hove
2020-01-08 10:17:52 +01:00
parent aa9bab75d9
commit 67f95e8548
4 changed files with 30 additions and 1 deletions

View File

@@ -96,6 +96,9 @@ void python::common::export_Schedule(py::module& module) {
.def_property_readonly( "start", &get_start_time )
.def_property_readonly( "end", &get_end_time )
.def_property_readonly( "timesteps", &get_timesteps )
.def( "shut_well", &Schedule::shut_well)
.def( "open_well", &Schedule::open_well)
.def( "stop_well", &Schedule::stop_well)
.def( "get_wells", &Schedule::getWells)
.def( "get_well", &get_well)
.def( "__contains__", &has_well )