upxo.meshing.gbconformant.pipeline.provenance module
The command that rebuilds a deck, and the record written beside it.
reproduce_arguments(config) turns the settings of a run into the arguments of the run command: the input as
a flag, the crop as --subset-box and every setting that differs from its default as --set KEY=VALUE.
Settings the stages fill in while running (the spacings) and settings this package does not know are left out.
write_provenance puts provenance.json into a deck folder: the command, the settings that differ from the
defaults, the seeds, the input files with their sizes and times, the crop and the package versions.
- upxo.meshing.gbconformant.pipeline.provenance.format_value(setting, value: Any) str[source]
A setting’s value as the text
--setreads back.
- upxo.meshing.gbconformant.pipeline.provenance.changed_settings(config: dict) list[dict][source]
The settings of
configthat differ from the defaults and that a command can set.
- upxo.meshing.gbconformant.pipeline.provenance.reproduce_arguments(config: dict) list[str][source]
The arguments of
runthat rebuild whatconfigdescribes (without the program name).
- upxo.meshing.gbconformant.pipeline.provenance.format_command(tokens: list[str], python: str = 'python') str[source]
The program and its arguments as one line to paste into a terminal.
- upxo.meshing.gbconformant.pipeline.provenance.reproduce_command(config: dict, python: str = 'python') str[source]