database_serialization

database_serialization#

Functions that encode and decode all sweep arguments(different types of sweeps, return parameters, settings, etc.). The module provides functions for serializing and deserializing sweep arguments before saving them to database.

Full path: exa.common.sweep.database_serialization

Functions

decode_and_validate_sweeps(sweeps_json)

Decodes and validates json string of list of Sweeps and tuples of Sweeps.

decode_return_parameters(json_str)

Deserialize return parameters.

decode_return_parameters_legacy(json_str)

Deserialize return parameters.

decode_settings(json_str)

Deserialize settings from json string

encode_nd_sweeps(sweeps, **kwargs)

Encode sweeps to a JSON string.

encode_return_parameters(return_parameters, ...)

Encode sweeps to a JSON string.

encode_return_parameters_legacy(...)

Encode sweeps to a JSON string.