bw_timex._lci_cache#

Module-level cache for background unit LCI matrices.

This cache persists across TimexLCA objects within a single Python session / bw_timex import (e.g. one Jupyter notebook kernel).

Only stable background process identities are stored here: keys of the form ("db_code", db, code, modified), where modified is the background database’s modified token. Editing a background database bumps that token, so stale entries are automatically missed instead of silently reused.

Unstable keys (the time-mapped activity_id and the per-run temporalized database) are deliberately kept per-object by the DynamicBiosphereBuilder and never reach this module-level cache.

Module Contents#

Functions#

clear_background_lci_cache(→ None)

Clear all module-level bw_timex caches (unit LCI, biosphere exchanges, solve).

Attributes#

bw_timex._lci_cache.BACKGROUND_UNIT_LCI_CACHE[source]#
bw_timex._lci_cache.BIOSPHERE_EXCHANGES_CACHE[source]#
bw_timex._lci_cache.LCI_SOLVE_CACHE[source]#
bw_timex._lci_cache.clear_background_lci_cache() None[source]#

Clear all module-level bw_timex caches (unit LCI, biosphere exchanges, solve).