diff options
author | Bryn Keller <xoltar@xoltar.org> | 2016-05-02 13:23:42 -0700 |
---|---|---|
committer | Bryn Keller <xoltar@xoltar.org> | 2016-05-02 13:23:42 -0700 |
commit | a0d647b35e2cd7702eaffbd2074cb2914c6383cd (patch) | |
tree | 6618e3f3d01089a6383b5aa55ddadf2741aeb93c /python/_phat.cpp | |
parent | 83e49c569c2b53a7068f42df616ed8ee695a0fb8 (diff) |
Tested with system Python 2.7 on Ubuntu as well as Anaconda Python 3.5 on Ubuntu
Diffstat (limited to 'python/_phat.cpp')
-rw-r--r-- | python/_phat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/_phat.cpp b/python/_phat.cpp index 40a9421..9883c97 100644 --- a/python/_phat.cpp +++ b/python/_phat.cpp @@ -227,7 +227,7 @@ void wrap_persistence_pairs(py::module &m) { .def("__len__", &phat::persistence_pairs::get_num_pairs) // Unlike set_pair, this takes a Python 2-tuple .def("__setitem__", - [](phat::persistence_pairs &p, int index, std::pair<phat::index,phat::index> &pair) { + [](phat::persistence_pairs &p, int index, std::pair<phat::index,phat::index> pair) { phat::index idx = fix_index(p, index); p.set_pair(idx, pair.first, pair.second); }) |