py21cmfast.wrapper.arrays.CacheBackend

class py21cmfast.wrapper.arrays.CacheBackend

Bases: abc.ABC

Abstract base class for cache backends.

abstractmethod read()

Read an Array from the cache.

Return type:

numpy.ndarray

abstractmethod write(val)

Write an Array to the cache.

Parameters:

val (numpy.ndarray)

Return type:

None

__slots__ = ()