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 accepts True, False, a coordinate name, or a tuple of names. snap=False preserves stored coordinate values when available; neither setting includes unwritten samples.