Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández <[email protected]>
  • Loading branch information
ahcorde committed Dec 30, 2021
1 parent 0e2d325 commit c94b63a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/python_pybind11/src/SignalStats.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*
*/
#include <pybind11/stl_bind.h>
#include <pybind11/stl.h>

#include <map>
#include <string>
Expand Down Expand Up @@ -53,7 +53,6 @@ void defineMathSignalStats(py::module &m, const std::string &typestr)
.def("insert_statistics",
&Class::InsertStatistics,
"Add multiple statistics.");
py::bind_map<std::map<std::string, double>>(m, "SignalMap");
}

//////////////////////////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion src/python_pybind11/test/SignalStats_TEST.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def test_01_signal_stats_intern_statistic(self):
map = stats.map()
self.assertFalse(len(map) == 0)
self.assertEqual(len(map), 6)
print(map)

self.assertEqual("max" in map.keys(), 1)
self.assertEqual("maxAbs" in map.keys(), 1)
self.assertEqual("mean" in map.keys(), 1)
Expand Down

0 comments on commit c94b63a

Please sign in to comment.