mkt.schema.io_utils.load_conservation_data

mkt.schema.io_utils.load_conservation_data(suffix: str = 'json', str_path: str | None = None, str_name: str | None = None)[source]

Load a KLIFSConservationData artifact from a single file.

Parameters:
  • suffix (str) – Deserialization type supported: json, yaml, toml.

  • str_path (str | None) – Path to the artifact file, by default None (the packaged mkt/schema/KLIFSConservationData.json).

  • str_name (str | None) – If provided, cache the loaded object under this name in _conservation_cache to prevent reloading.

Returns:

The deserialized conservation-data object.

Return type:

KLIFSConservationData