pymodalib.utils.cache module¶
-
cachedarray
(shape: Tuple[int, ...], dtype) → numpy.ndarray¶ Creates a Numpy ‘memmap’ array which is able to cache its values to disk.
Parameters: - shape – the shape of the array
- dtype – the data type of the array
Returns: a ‘memmap’ array
-
cleanup
() → None¶ Deletes all files in the cache folder.