CacheWarning

Contents

CacheWarning#

exception CacheWarning[source]#

Bases: UserWarning

Warning raised when a cache operation is ignored or conflicts with the cache mode.

Emitted by _HdfArray.load() when caching is disabled (cache=None), and by _HdfArray.clear() when the cache mode is 'eager' and clear() is called explicitly.

Examples

>>> import warnings
>>> from psi_io.mhd_io import CacheWarning
>>> issubclass(CacheWarning, UserWarning)
True