jaxrts.saving

This module allows for saving and loading jaxrts.models.Model, jaxrts.plasmastate.PlasmaState and other objects introduced in jaxrts. Furthermore, this allows for serializing quantities from jpu, which was an issue when pickeling a PlasmaState.

Warning

Functions are pickled, and stored as a string. Hence, saving functions is generally poorly supported and might be error prone. It might work on your machine, but interoperability between different machines or module versions is not to be expected. Furthermore, the method is unsave.

Functions

dump(obj, fp, *args, **kwargs)

Save an object to file.

dumps(obj, *args, **kwargs)

Serialize an object.

load(fp, unit_reg[, additional_mappings])

Load an object from file.

Classes

JaXRTSDecoder(ureg[, additional_mappings])

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

Encoder class, taking care of all classes that are defined here and might be decoded.