From f02a73a761653dfd2ba14f3763019b88cba85d5b Mon Sep 17 00:00:00 2001 From: Alice Date: Tue, 28 Jul 2026 15:32:19 +0200 Subject: [PATCH] Revert "forgot to add jungfraucalibration" This reverts commit ebf06e09e17c9e47fc13d1ea01c805928b88a9be. --- python/src/utils/bind_SparseMask.hpp | 16 -------------- python/src/utils/bind_Vector.hpp | 32 ---------------------------- 2 files changed, 48 deletions(-) delete mode 100644 python/src/utils/bind_SparseMask.hpp delete mode 100644 python/src/utils/bind_Vector.hpp diff --git a/python/src/utils/bind_SparseMask.hpp b/python/src/utils/bind_SparseMask.hpp deleted file mode 100644 index a041871..0000000 --- a/python/src/utils/bind_SparseMask.hpp +++ /dev/null @@ -1,16 +0,0 @@ -#include "aare/utils/SparseMask.hpp" -#include - -namespace py = pybind11; - -using namespace aare; - -void define_sparse_mask_bindings(py::module &m) { - - py::class_(m, "SparseMask") - .def(py::init(), - py::arg("storage_format"), py::arg("rows"), py::arg("cols")) - .def("insert", &SparseMask::insert, py::arg("row"), py::arg("col")) - .def("is_masked", &SparseMask::is_masked, py::arg("row"), - py::arg("col")); -} diff --git a/python/src/utils/bind_Vector.hpp b/python/src/utils/bind_Vector.hpp deleted file mode 100644 index 49b1829..0000000 --- a/python/src/utils/bind_Vector.hpp +++ /dev/null @@ -1,32 +0,0 @@ -#pragma once -#include -// #include -// #include -#include - -namespace py = pybind11; - -// TODO add index, itemize -template -void define_Vector(py::module &m, const std::string &type_str, - const std::string &format_string) { - auto class_name = "Vector_" + type_str; - - py::class_>(m, class_name.c_str(), py::buffer_protocol()) - - .def(py::init()) - - .def_buffer([&format_string]( - std::vector &self) -> py::buffer_info { - return py::buffer_info( - self.data(), static_cast(sizeof(Type)), - format_string, static_cast(1), - std::vector{static_cast(self.size())}, - std::vector{ - static_cast(sizeof(Type))}); - }); -} - -void define_Struct(py::module &m, ) - - // fmt::format("T{{{}:sum:i:index}}",py::format_descriptor::format()) \ No newline at end of file