cached function
(Shortest import: from brian2.utils.caching import cached)
-
brian2.utils.caching.cached(func)[source]
Decorator to cache a function so that it will not be re-evaluated when
called with the same arguments. Uses the _hashable
function to make
arguments usable as a dictionary key even though they mutable (lists,
dictionaries, etc.).