Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunjiangZhu committed Oct 24, 2019
1 parent 1f71bde commit da3c302
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions python_bindings/nmslib.cc
Original file line number Diff line number Diff line change
Expand Up @@ -792,11 +792,11 @@ void exportLegacyAPI(py::module * m) {
py::list ids(ret[0]);
return ids;
});
m->def("rangeQuery", [](py::object self, dist_t radius, py::object query) {
py::tuple ret = self.attr("rangeQuery")(query, radius);
py::list ids(ret[0]);
return ids;
});
// m->def("rangeQuery", [](py::object self, dist_t radius, py::object query) {
// py::tuple ret = self.attr("rangeQuery")(query, radius);
// py::list ids(ret[0]);
// return ids;
// });
m->def("getDataPoint", [](py::object self, size_t pos) {
return self.attr("__getitem__")(pos);
});
Expand Down

0 comments on commit da3c302

Please sign in to comment.