diff options
author | Martin Braun <martin.braun@ettus.com> | 2020-05-19 11:56:42 -0700 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-05-26 12:58:10 -0500 |
commit | dbff8eaf055f8437f3db33c5f18f9fda3285d087 (patch) | |
tree | c554a17f88efddc8a271d0083a599b49902016c0 /host/lib/cal | |
parent | 4cd86bbf2ad9db0a3fd64252f9ba2d569d48144e (diff) | |
download | uhd-dbff8eaf055f8437f3db33c5f18f9fda3285d087.tar.gz uhd-dbff8eaf055f8437f3db33c5f18f9fda3285d087.tar.bz2 uhd-dbff8eaf055f8437f3db33c5f18f9fda3285d087.zip |
cal: Minor fixes in power container, add unit test
- min_power and max_power arguments were swapped. They were always
called correctly, so this is more of a documentation fix.
- Add a unit test for the case where power values are not regular, which
is the normal case with real data.
Diffstat (limited to 'host/lib/cal')
-rw-r--r-- | host/lib/cal/cal_python.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/cal/cal_python.hpp b/host/lib/cal/cal_python.hpp index 5de9e8288..bf1975416 100644 --- a/host/lib/cal/cal_python.hpp +++ b/host/lib/cal/cal_python.hpp @@ -117,8 +117,8 @@ void export_cal(py::module& m) .def("add_power_table", &pwr_cal::add_power_table, py::arg("gain_power_map"), - py::arg("max_power"), py::arg("min_power"), + py::arg("max_power"), py::arg("freq"), py::arg("temperature") = boost::optional<int>()) .def("clear", &pwr_cal::clear) |