updated documentation
Build on RHEL9 / build (push) Successful in 2m50s
Build on RHEL8 / build (push) Successful in 3m36s
Run tests using data on local RHEL8 / build (push) Successful in 4m43s

This commit is contained in:
2026-09-16 15:46:26 +02:00
parent c880d6a252
commit ecaad914e7
11 changed files with 198 additions and 93 deletions
@@ -57,6 +57,7 @@ void define_InclusiveROI(py::module &m) {
},
R"(
check if the ROI fits within a given number of columns and rows
Parameters
----------
ncols : int
@@ -156,7 +156,17 @@ void define_PixelStrixelMapDefs(py::module &m) {
return py::array_t<ssize_t>(
self.map.shape(), self.map.data(),
py::cast(&self, py::return_value_policy::reference));
})
},
R"(
Strixel-to-pixel order map.
Returns
-------
numpy.ndarray[int]
Two-dimensional array of flattened pixel indices.
A value of ``-1`` indicates that no valid source pixel is
mapped at that position.
)")
.def("empty", &aare::remap::defs::StrixelGroupToPixelMap::empty, R"(
Check if the map is empty.
@@ -36,7 +36,7 @@ void define_StrixelPixelRemaps(py::module &m) {
Parameters
----------
user_roi : InclusiveROI
user_roi : ROI
User-specified ROI in the module's native coordinate system.
)")
@@ -89,12 +89,12 @@ void define_StrixelPixelRemaps(py::module &m) {
----------
user_roi : ROI
User-specified ROI in the module's native coordinate system.
input : NDView[uint16_t, 2]
input : np.ndarray[uint16_t, 2]
Input array to be remapped.
Returns
-------
list of NDArray[uint16_t, 2]
list of np.ndarray[uint16_t, 2]
Remapped arrays for each strixel group.
If a group is not covered by the user ROI, the corresponding array will be None.
)")
@@ -129,15 +129,15 @@ void define_StrixelPixelRemaps(py::module &m) {
Apply the strixel-to-pixel remapping to an input array.
This overload assumes that the user ROI has already been set and
the map calculated using `calculate_map()`.
Parameters
----------
input : NDView[uint16_t, 2]
input : np.ndarray[uint16_t, 2]
Input array to be remapped.
Returns
-------
list of NDArray[uint16_t, 2]
list of np.ndarray[uint16_t, 2]
Remapped arrays for each strixel group.
If a group is not covered by the user ROI, the corresponding array will be None.
)")
@@ -202,12 +202,12 @@ void define_StrixelPixelRemaps(py::module &m) {
Apply the strixel-to-pixel remapping to an input array.
This overload assumes that the user ROI has already been set and
the map calculated using `calculate_map()`.
Parameters
----------
input : NDView[uint16_t, 2]
input : np.ndarray[uint16_t, 2]
Input array to be remapped.
output : list of NDArray[uint16_t, 2]
output : list of np.ndarray[uint16_t, 2]
Preallocated arrays to store the remapped results for each strixel group.
If a group is not covered by the user ROI, the corresponding output array will be None.
)");