emodelrunner.json_utilities

Json utilities.

Classes

NpEncoder(*[, skipkeys, ensure_ascii, ...])

Class to encode numpy object as python object.

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

Bases: JSONEncoder

Class to encode numpy object as python object.

default(o)[source]

Convert numpy values to regular python values.

Parameters

o – value to enventually convert if is a numpy object

Returns

converted values or parent default method if not a numpy object