Skip to content

Commit 7e5de43

Browse files
author
Nikos Papailiou
committed
WIP
1 parent 58d2ce7 commit 7e5de43

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apis/python/src/tiledb/vector_search/module.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ void declareStdVector(py::module& m, const std::string& suffix) {
333333
.def("clear", &std::vector<T>::clear)
334334
.def("pop_back", &std::vector<T>::pop_back)
335335
.def("__len__", [](const std::vector<T> &v) { return v.size(); })
336+
.def("__getitem__", [](const std::vector<T> &v, size_t i) { return v[i]; })
336337
.def_buffer([](std::vector<T> &v) -> py::buffer_info {
337338
return py::buffer_info(
338339
v.data(), /* Pointer to buffer */

0 commit comments

Comments
 (0)