Skip to content

Commit

Permalink
changes to state control params
Browse files Browse the repository at this point in the history
  • Loading branch information
vweirens committed Jul 18, 2023
1 parent b675920 commit 69c8d2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion interface/control/StateControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ void initStateControl(py::module& m) {
GNCPY_PY_CHILD_CLASS(gncpy::control::StateControlParams, gncpy::control::ControlParams) (m, "StateControlParams")
.def(py::init<const std::vector<uint8_t>&, const std::vector<uint8_t>&>())
.def(py::init<const std::vector<uint8_t>&, const std::vector<uint8_t>&, const std::vector<double>&>())
.def_readonly("cont_inds", &gncpy::control::StateControlParams::contInds, "Indices of the state vector to control (read-only)")
.def_readonly("cont_rows", &gncpy::control::StateControlParams::contRows, "Row indices of the state vector to control (read-only)")
.def_readonly("cont_columns", &gncpy::control::StateControlParams::contColumns, "Column indices of the state vector to control (read-only)")
.def_readonly("vals", &gncpy::controls::StateControlParams::vals, "Values to be placed in the input matrix.")
GNCPY_PICKLE(gncpy::control::StateControlParams);

GNCPY_PY_CHILD_CLASS(gncpy::control::StateControl, gncpy::control::ILinearControlModel)(m, "StateControl")
Expand Down

0 comments on commit 69c8d2d

Please sign in to comment.