csle_common.dao.encoding package

Submodules

csle_common.dao.encoding.np_encoder module

class csle_common.dao.encoding.np_encoder.NpEncoder(*, 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

Encoder for Numpy arrays to JSON

default(obj)[source]

The default encoding of numpy datatypes for JSON

Parameters

obj – the object to encoded

Returns

the encoded object

Module contents