httomo.base_block.BaseBlock#
- class httomo.base_block.BaseBlock(data: ndarray, aux_data: AuxiliaryData)[source]#
Base block class providing default implementations for the data transferring/getting/setting behaviour needed for a block type to be processed by implementors of MethodWrapper. Ie, this class provides default implementations for the BlockTransfer and BlockData protocols.
Note that the data indexing behaviour described in DataIndexing is not implemented in this class. If the default implementations for data transferring/getting/setting in this class are acceptable: inherit from BaseBlock, override where necessary, and implement DataIndexing in order to implement the Block protocol.
Methods
Attributes
Shape of the data in this block
- property angles: ndarray#
- property angles_radians: ndarray#
- property aux_data: AuxiliaryData#
- property dark: ndarray | cupy.ndarray#
- property darks: ndarray | cupy.ndarray#
- property data: ndarray | cupy.ndarray#
- property flat: ndarray | cupy.ndarray#
- property flats: ndarray | cupy.ndarray#
- property is_cpu: bool#
- property is_gpu: bool#
- property shape: Tuple[int, int, int]#
Shape of the data in this block