Skip to content

Commit 8cc442d

Browse files
authored
Merge pull request #255 from dyashuni/develop
Rename space_name to space on the python side
2 parents 1c97b5d + a0c2076 commit 8cc442d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
python_bindings/hnswlib.egg-info/
2+
python_bindings/build/
3+
python_bindings/dist/
4+
python_bindings/tmp/

python_bindings/bindings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ PYBIND11_PLUGIN(hnswlib) {
655655
.def("load_index", &Index<float>::loadIndex, py::arg("path_to_index"), py::arg("max_elements")=0)
656656
.def("mark_deleted", &Index<float>::markDeleted, py::arg("label"))
657657
.def("resize_index", &Index<float>::resizeIndex, py::arg("new_size"))
658-
.def_readonly("space_name", &Index<float>::space_name)
658+
.def_readonly("space", &Index<float>::space_name)
659659
.def_readonly("dim", &Index<float>::dim)
660660
.def_readwrite("num_threads", &Index<float>::num_threads_default)
661661
.def_property("ef",

0 commit comments

Comments
 (0)