From dbff8eaf055f8437f3db33c5f18f9fda3285d087 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 19 May 2020 11:56:42 -0700 Subject: 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. --- host/lib/cal/cal_python.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib') 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()) .def("clear", &pwr_cal::clear) -- cgit v1.2.3