read

method of dascore.io.core.FiberIO source

read(
    self ,
    resource ,
    snap: bool | str | collections.abc.Collection[bool, str, collections.abc.Collection[str], None] = None,
    samples: bool = False,
    source_patch_key: str | collections.abc.Iterable[str, collections.abc.Iterable[str]] = ““,
    **select ,
)-> ‘dc.Spool’

Read patches by selecting metadata and loading the resulting array windows.

Coordinate queries are resolved on the original sample grid without recording a processing operation. source_patch_key selects logical patches, and matching attribute queries filter metadata before data are read. snap defaults to True; the older snap_dims spelling is also accepted, with explicit snap taking precedence. Pass a coordinate name or tuple of names to snap only those coordinates. samples=True interprets coordinate selections as sample indices. source_patch_key accepts one logical key or an iterable of keys.