summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gr-uhd/python/uhd/bindings/uhd_types_python.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/gr-uhd/python/uhd/bindings/uhd_types_python.cc b/gr-uhd/python/uhd/bindings/uhd_types_python.cc
index 45202c8395..3be7aa84ca 100644
--- a/gr-uhd/python/uhd/bindings/uhd_types_python.cc
+++ b/gr-uhd/python/uhd/bindings/uhd_types_python.cc
@@ -55,9 +55,12 @@ void bind_uhd_types(py::module& m)
py::class_<time_spec_t>(m, "time_spec_t")
// Additional constructors
- .def(py::init<double>())
- .def(py::init<int64_t, double>())
- .def(py::init<int64_t, long, double>())
+ .def(py::init<double>(), py::arg("secs") = 0)
+ .def(py::init<int64_t, double>(), py::arg("full_secs"), py::arg("frac_secs") = 0)
+ .def(py::init<int64_t, long, double>(),
+ py::arg("full_secs"),
+ py::arg("tick_count"),
+ py::arg("tick_rate"))
// Methods
.def_static("from_ticks", &time_spec_t::from_ticks)