Closed gertjanvanzwieten closed 1 year ago
Oh there is actually an unresolved problem: I had to remove the base properties Reference.vertices
and Reference.edge_vertices
because they cannot otherwise be overridden in MosaicReference
. @joostvanzwieten Would it be acceptable to use an annotation like vertices: numpy.ndarray
instead?
This PR removes all uses of the
__cache__
mechanism, facilitated by theCacheMeta
meta class, and replaces it by the cached_property andlru_cache
decorators which are considered to give better visibility to caching structures. TheCacheMeta
class is removed as no longer relevant.