pyphi.cache.disk.result_cache_key#

pyphi.cache.disk.result_cache_key(system, kind, snapshot)[source]#

Hex cache key, or None (do not cache) when the git tree is dirty.

The code-version component is the git sha in a checkout, else the released pyphi version, so a code change that alters results changes the key.

Parameters:
Return type:

str | None