exa.common.sweep.database_serialization.encode_return_parameters

exa.common.sweep.database_serialization.encode_return_parameters#

encode_return_parameters(return_parameters, **kwargs)#

Encode sweeps to a JSON string.

Parameters:
  • return_parameters (dict[Parameter, list[tuple[Sweep, ...]] | None]) – Return parameters as specified by sweep().

  • kwargs – keyword arguments passed to json.dumps

Returns:

json as a string

Return type:

str