summaryrefslogtreecommitdiff
path: root/gr-blocks/python
diff options
context:
space:
mode:
authorRon Economos <w6rz@comcast.net>2020-10-07 02:36:23 -0700
committermormj <34754695+mormj@users.noreply.github.com>2020-10-07 06:55:15 -0400
commitd4b68580cced4118a0f05efe711226ecfb4d22be (patch)
tree648ced345d80010129194026c324572a84ae7b96 /gr-blocks/python
parent4b402404e152ede29cfaa5c0648bdfb5d327038b (diff)
gr-blocks: Add missing methods to Multiply Const block pybind11 binding.
Diffstat (limited to 'gr-blocks/python')
-rw-r--r--gr-blocks/python/blocks/bindings/multiply_const_v_python.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/gr-blocks/python/blocks/bindings/multiply_const_v_python.cc b/gr-blocks/python/blocks/bindings/multiply_const_v_python.cc
index fbee9db784..25b408a4dc 100644
--- a/gr-blocks/python/blocks/bindings/multiply_const_v_python.cc
+++ b/gr-blocks/python/blocks/bindings/multiply_const_v_python.cc
@@ -35,7 +35,9 @@ void bind_multiply_const_v_template(py::module& m, const char* classname)
gr::block,
gr::basic_block,
std::shared_ptr<multiply_const_v>>(m, classname)
- .def(py::init(&gr::blocks::multiply_const_v<T>::make));
+ .def(py::init(&gr::blocks::multiply_const_v<T>::make), py::arg("k"))
+ .def("k", &multiply_const_v::k)
+ .def("set_k", &multiply_const_v::set_k, py::arg("k"));
}
void bind_multiply_const_v(py::module& m)