

def get_cache(self, viewer):
    if (viewer in self._cache):
        cache = self._cache[viewer]
    else:
        cache = viewer._reset_cache(Bunch.Bunch())
        self._cache[viewer] = cache
    return cache

dataset/ETHPy150Open ejeschke/ginga/ginga/canvas/types/image.py Image.get_cache/VarMisuse@39/45 `self`->`viewer`