aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/cal
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2020-05-19 11:56:42 -0700
committerAaron Rossetto <aaron.rossetto@ni.com>2020-05-26 12:58:10 -0500
commitdbff8eaf055f8437f3db33c5f18f9fda3285d087 (patch)
treec554a17f88efddc8a271d0083a599b49902016c0 /host/lib/cal
parent4cd86bbf2ad9db0a3fd64252f9ba2d569d48144e (diff)
downloaduhd-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.hpp2
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)