From 45a4b2c913c3b66b9e6cf373910a16878b06c162 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Thu, 7 May 2020 10:03:00 +0200 Subject: [PATCH] pickle bitarrays --- libsrc/core/python_ngcore_export.cpp | 1 + 1 file changed, 1 insertion(+) 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)