added push_back property
Some checks failed
Build the package using cmake then documentation / build (ubuntu-latest, 3.12) (push) Failing after 37s

This commit is contained in:
Mazzoleni Alice Francesca
2025-04-07 13:41:14 +02:00
parent a12e43b176
commit 017960d963
2 changed files with 7 additions and 7 deletions

View File

@ -87,12 +87,12 @@ void define_cluster_vector(py::module &m, const std::string &typestr) {
},
py::arg("cluster"))
*/
/*
.def("push_back",
[](ClusterVector<ClusterType> &self, const ClusterType &cluster) {
self.push_back(cluster);
})
*/
//.def("push_back", &ClusterVector<ClusterType>::push_back) //TODO
// implement push_back
.def_property_readonly("size", &ClusterVector<ClusterType>::size)