InventoryModel
InventoryModel(
description: str = ““,
extra_fields: collections.abc.Mapping[str, str | int | float | bool[str, int, float, bool]] =
)-> None
Base class for immutable DASDAE inventory objects.
description holds prose (matching StationXML’s Description); extra_fields holds typed metadata absent from the model.
Collections are tuples and mappings are frozen, so instances can be shared safely. Models hash by field value when all values are hashable.
Methods
| Name | Description |
|---|---|
| model_copy | Copy the model, dropping cached values the update invalidates. |
| new | Create a new instance with some attributes updated. |
| get_summary_df | Get dataframe of attributes and descriptions for display. |
| get_summary_df | Get dataframe of attributes and descriptions for display. |