summaryrefslogtreecommitdiff
path: root/gr-uhd/python/uhd
diff options
context:
space:
mode:
authorJosh Morman <mormjb@gmail.com>2020-06-24 07:18:20 -0400
committermormj <34754695+mormj@users.noreply.github.com>2020-06-26 08:22:23 -0400
commit8483ad2be672669713acf1ab95a0cad2a6beb035 (patch)
tree8518127f87fe5ee0d40aedaf3a321d0b66759650 /gr-uhd/python/uhd
parent65e75fd40781129b3333508dd955b1b1a6f972e1 (diff)
uhd: add default values for time_spec_t cotr
Diffstat (limited to 'gr-uhd/python/uhd')
-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)