inventory_loader

module of dascore.core source

Load a DASDAE inventory from an authoring directory.

YAML or JSON files hold model objects, while CSV files hold tabular track data. <name>.csv fills the declared model’s <name> attribute. Reserved path directories address optical-path epochs; each location code forms a lineage whose epochs end when their successors begin.

Each object file declares its type, its container verifies that type, its filename determines identity, and the top-level inventory.yaml determines the format version. Facts repeated inside a file must agree with its address.

Malformed entries that resemble format members raise errors; unrelated files are ignored. Columns beginning with an underscore are also ignored.

Functions

Name Description
carries_inventory Return whether a directory holds anything under the blessed name.
find_inventory Return the path of the inventory a directory carries, or None.
inventory Load or create a DASDAE inventory.
load_directory Load an inventory from a directory in the authoring format.