From 89d1c4413043ab7679049ecb2af5ae784bef0664 Mon Sep 17 00:00:00 2001 From: Alice Date: Tue, 28 Jul 2026 15:32:40 +0200 Subject: [PATCH] Revert "added sparse mask python bindings" This reverts commit bb55b54a1fc020ddf80c0657c80cf1d39db0341f. --- include/aare/utils/SparseMask.hpp | 3 --- python/aare/__init__.py | 2 -- python/src/module.cpp | 2 -- src/utils/SparseMask.cpp | 2 -- 4 files changed, 9 deletions(-) diff --git a/include/aare/utils/SparseMask.hpp b/include/aare/utils/SparseMask.hpp index acb1e4f7..95b6966d 100644 --- a/include/aare/utils/SparseMask.hpp +++ b/include/aare/utils/SparseMask.hpp @@ -38,9 +38,6 @@ class SparseMask { void write_to_file(const std::filesystem::path &filename) const; - /// @brief Get number of bad channels - size_t num_bad_channels() const; - private: /// @brief stoarge format of the sparse mask, either row major or column /// major diff --git a/python/aare/__init__.py b/python/aare/__init__.py index a9cf6f33..84224613 100644 --- a/python/aare/__init__.py +++ b/python/aare/__init__.py @@ -56,5 +56,3 @@ from ._aare import ( PixelHistogram_u32, PixelHistogram_u64, ) - -from ._aare import SparseMask diff --git a/python/src/module.cpp b/python/src/module.cpp index 6a147c2a..52c830b9 100644 --- a/python/src/module.cpp +++ b/python/src/module.cpp @@ -18,7 +18,6 @@ #include "bind_PixelMap.hpp" #include "bind_RawFile.hpp" #include "bind_calibration.hpp" -#include "utils/bind_SparseMask.hpp" // TODO! migrate the other names #include "ctb_raw_file.hpp" @@ -79,7 +78,6 @@ PYBIND11_MODULE(_aare, m) { define_fit_bindings(m); define_interpolation_bindings(m); define_jungfrau_data_file_io_bindings(m); - define_sparse_mask_bindings(m); bind_calibration(m); diff --git a/src/utils/SparseMask.cpp b/src/utils/SparseMask.cpp index f44ee463..a250dcbc 100644 --- a/src/utils/SparseMask.cpp +++ b/src/utils/SparseMask.cpp @@ -68,6 +68,4 @@ bool SparseMask::is_masked(const size_t row, const size_t col) const { } } -size_t SparseMask::num_bad_channels() const { return innerindices_.size(); } - } // namespace aare \ No newline at end of file