diff --git a/libsrc/core/python_ngcore_export.cpp b/libsrc/core/python_ngcore_export.cpp index 953dea59..1aaf12b0 100644 --- a/libsrc/core/python_ngcore_export.cpp +++ b/libsrc/core/python_ngcore_export.cpp @@ -30,6 +30,7 @@ PYBIND11_MODULE(pyngcore, m) // NOLINT if (a[i]) ba->SetBit(i); return ba; } ), py::arg("vec")) + .def(NGSPickle()) .def("__str__", &ToString) .def("__len__", &BitArray::Size) .def("__getitem__", [] (BitArray & self, int i)