diff --git a/include/aare/StrixelPixelRemapping/BaseStrixelPixelMap.hpp b/include/aare/StrixelPixelRemapping/BaseStrixelPixelMap.hpp index 4d0a7f86..2fc9bfe3 100644 --- a/include/aare/StrixelPixelRemapping/BaseStrixelPixelMap.hpp +++ b/include/aare/StrixelPixelRemapping/BaseStrixelPixelMap.hpp @@ -126,6 +126,12 @@ template class StrixelPixelMap { return m_group_maps[group_index]; } + /** + * @brief Get the sensor configuration associated with this StrixelPixelMap. + * @return const SensorConfig& The sensor configuration. + */ + const SensorConfig &get_SensorConfig() const { return m_sensorconfig; } + protected: /** * @brief Build the strixel-to-pixel order map for one strixel group. diff --git a/python/src/StrixelRemap/bind_StrixelRemap.hpp b/python/src/StrixelRemap/bind_StrixelRemap.hpp index cb6da9b3..ea83d024 100644 --- a/python/src/StrixelRemap/bind_StrixelRemap.hpp +++ b/python/src/StrixelRemap/bind_StrixelRemap.hpp @@ -55,6 +55,20 @@ void define_StrixelPixelRemaps(py::module &m) { maps are empty if the groups are not covered by the user ROI. )") + .def_property_readonly( + "sensor_config", + [](const aare::remap::StrixelPixelMap &self) { + return self.get_SensorConfig(); + }, + R"( + Get the sensor configuration associated with this StrixelPixelMap. + + Returns + ------- + SensorConfig + The sensor configuration. + )") + .def( "__call__", [](aare::remap::StrixelPixelMap &self,