mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-09-25 17:02:11 +02:00
updated documentation
This commit is contained in:
@@ -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.
|
||||
)");
|
||||
|
||||
Reference in New Issue
Block a user