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.


__doc__ str(object=’‘) -> str
__module__ str(object=’‘) -> str
__weakref__ list of weak references to the object (if defined)
item_separator str(object=’‘) -> str
key_separator str(object=’‘) -> str

Public Methods

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.
__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().