httomo.data.padding.extrapolate_before

httomo.data.padding.extrapolate_before#

httomo.data.padding.extrapolate_before(global_data: h5py.Dataset | ndarray, block_data: ndarray, slices: int, dim: int, offset: int = 0, preview_config: PreviewConfig | None = None) None[source]#

Read the required “before” padded area for a block into the given numpy array that represents the block.

NOTE: Currently performs “edge” padding as is understood in the padding terminology of np.pad()