obspy.signal.quality_control.DataQualityEncoder

class DataQualityEncoder(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, default=None)[source]

Bases: json.encoder.JSONEncoder

Custom encoder capable of dealing with NumPy and ObsPy types.

Attributes

__dict__
__doc__
__module__
__weakref__ list of weak references to the object (if defined)
item_separator
key_separator

Public Methods

default Implement this method in a subclass such that it returns a serializable object for o, or calls the base implementation (to raise a TypeError).
encode Return a JSON string representation of a Python data structure.
iterencode Encode the given object and yield each string representation as available.

Special Methods

__dir__ Default dir() implementation.
__format__ Default object formatter.
__init__ Constructor for JSONEncoder, with sensible defaults.
__init_subclass__ This method is called when a class is subclassed.
__new__ Create and return a new object.
__reduce__ Helper for pickle.
__reduce_ex__ Helper for pickle.
__sizeof__ Size of object in memory, in bytes.
__subclasshook__ Abstract classes can override this to customize issubclass().