uvex_transients.phase_space.files.upgrade_legacy_header#
- uvex_transients.phase_space.files.upgrade_legacy_header(meta: Mapping) dict[source]#
Turn the header of the earlier points format into that of the current one.
The earlier format recorded the bounds and names, the settings of the map and of its loop, and an evaluator: the canonical sampler together with the stopping rule and a seed.
- Parameters:
meta (
Mapping) – The header of a file of the earlier format.- Returns:
The header in the current format.
- Return type:
- Raises:
ValueError – If the file recorded an evaluator that is not the canonical one.