Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move SWIG interfaces from python to ruby #354

Merged
merged 18 commits into from
Dec 30, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed test
Signed-off-by: Alejandro Hernández <ahcorde@gmail.com>
  • Loading branch information
ahcorde committed Dec 30, 2021
commit c94b63a0a3346e228bd7520f49b1dff850c9bd50
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