LayoutCache

Contents

LayoutCache#

class braintools.visualize.morphology.LayoutCache(maxsize=64)[source]#

Size-bounded LRU cache for layout-branch builder results.

Parameters:

maxsize (int) – Maximum number of cached layouts. When exceeded, the oldest entry (by access order) is evicted.