exa.common.sweep.database_serialization.encode_return_parameters_legacy

exa.common.sweep.database_serialization.encode_return_parameters_legacy#

encode_return_parameters_legacy(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