get_dask_array#

kikuchipy.signals.util.get_dask_array(signal: Union[EBSD, LazyEBSD], dtype: Optional[Union[str, dtype, type]] = None, **kwargs) Array[source]#

Return dask array of patterns with appropriate chunking.

Parameters:
signal

Signal with data to return dask array from.

dtype

Data type of returned dask array. This is also passed on to get_chunking().

**kwargs

Keyword arguments passed to get_chunking() to control the number of chunks the output data array is split into. Only chunk_shape, chunk_bytes and dtype are passed on.

Returns:
dask_array

Dask array with signal data with appropriate chunking and data type.