from_sources

method of dascore.core.lazy_array.LazyArray source

from_sources(
    sources: collections.abc.Sequence[ArraySource] ,
    starts = None,
    axis: int = 0,
    shape: tuple[tuple[int, …], None] = None,
    base_uri: str = ““,
    dtype = None,
    cast_via: collections.abc.Sequence | None[Sequence, None] = None,
)-> ‘LazyArray’

Return an array which reads one member from each source.

Parameters

Parameter Description
sources The loadable sources, each of which states the extent of its
whole array.
starts The corner each source is placed at, as an (n, ndim) array of
sample numbers. By default the sources are laid end to end.
axis The axis the sources are laid along when starts is not given.
shape The shape of the output; the smallest which holds every
member by default.
base_uri A prefix the sources’ paths are stored relative to. A path
which does not start with it is stored whole, and a member’s
path is always the two joined.
dtype The dtype the members are cast to and the array loads as; by
default the one they all promote to together. Promotion is
not associative, so a caller which must match another
order’s result states it.
cast_via A dtype per source which its samples pass through on the way
to the array’s, or None for a member cast straight there. A
caller reproducing a buffer which promoted a member at a time
states where that buffer rounded each of them.