from_file

method of dascore.io.index.catalog.PatchCatalog source

from_file(
    path: str | pathlib._local.Path[str, Path] ,
    file_format: str | None[str, None] = None,
    file_version: str | None[str, None] = None,
)-> ‘PatchCatalog’

Catalog over a single fiber file.

The file is scanned eagerly (one row per contained patch) into an in-memory backend; patches load through the file resolver on demand. There is no syncer — a changed file needs a new catalog.