:py:mod:`bw_timex._lci_cache` ============================= .. py:module:: bw_timex._lci_cache .. autoapi-nested-parse:: Module-level cache for background unit LCI matrices. This cache persists across :class:`~bw_timex.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 :class:`~bw_timex.dynamic_biosphere_builder.DynamicBiosphereBuilder` and never reach this module-level cache. Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: bw_timex._lci_cache.clear_background_lci_cache Attributes ~~~~~~~~~~ .. autoapisummary:: bw_timex._lci_cache.BACKGROUND_UNIT_LCI_CACHE bw_timex._lci_cache.BIOSPHERE_EXCHANGES_CACHE bw_timex._lci_cache.LCI_SOLVE_CACHE .. py:data:: BACKGROUND_UNIT_LCI_CACHE .. py:data:: BIOSPHERE_EXCHANGES_CACHE .. py:data:: LCI_SOLVE_CACHE .. py:function:: clear_background_lci_cache() -> None Clear all module-level bw_timex caches (unit LCI, biosphere exchanges, solve).