get_metadata

method of dascore.io.core.FiberIO source

get_metadata(
    self ,
    resource ,
    snap: bool | str | collections.abc.Collection[bool, str, collections.abc.Collection[str]] = True,
)-> ‘list[dc.PatchMeta]’

Return the metadata of each logical patch in a resource.

The coordinates declare the array’s dimensions and shape, and the metadata declares its dtype. Multi-patch readers put their logical key in ArraySource. The framework supplies the source path, format, and version. snap names the dimensions whose stored labels come back on a grid (built by dascore.io.utils.stored_coord): True for every one-dimensional numeric or time-like dimension, False for none, or a name or tuple of names. Its default here is the format’s default, which read and scan use when given None. Neither setting includes unwritten samples.