openpathsampling.netcdfplus.dictify.ObjectJSON

class openpathsampling.netcdfplus.dictify.ObjectJSON(unit_system=None)[source]

A simple implementation of a pickle algorithm to create object that can be converted to json and back

safemode

If set to True the recreation of marshalled objects like functions is switched off and these objects are replaced by None. Can be used to load from incompatible python versions or potential unsafe trajectory files.

Type:

bool

__init__(unit_system=None)[source]

Methods

__init__([unit_system])

build(obj)

callable_from_dict(c_dict)

Turn a dictionary back in a callable function or class

callable_to_dict(c)

Turn a callable function of class into a dictionary

from_json(json_string)

simplify(obj[, base_type])

simplify_object(obj)

to_json(obj[, base_type])

to_json_object(obj)

unit_from_dict(unit_dict)

unit_from_json(json_string)

unit_to_dict(unit)

unit_to_json(unit)

unit_to_symbol(unit)

update_class_list()

Attributes

allow_marshal

allowed_storable_atomic_types

prevent_unsafe_modules

safe_modules