ddm.data_handling.dask_image.read_data_into_dask#
- ddm.data_handling.dask_image.read_data_into_dask(fname, nframes: int = 1, *, experiment: int = 0)[source]#
Read image data into a Dask Array. Provides a simple, fast mechanism to ingest image data into a Dask Array.
- Parameters:
fname (
str
orpathlib.Path
) – A glob like string that may match one or multiple filenames. Where multiple filenames match, they are sorted using natural (as opposed to alphabetical) sort.nframes (
int
, optional) – Number of the frames to include in each chunk (default: 1).experiment (
int
, optional) – select experiment if image stack contains multiple measurement series (default: 0)
- Returns:
array – A Dask Array representing the contents of all image files.
- Return type:
dask.array.Array