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 --set reads back.

upxo.meshing.gbconformant.pipeline.provenance.changed_settings(config: dict) → list[dict][source]

The settings of config that 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 run that rebuild what config describes (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]
upxo.meshing.gbconformant.pipeline.provenance.build_provenance(config: dict) → dict[str, Any][source]
upxo.meshing.gbconformant.pipeline.provenance.write_provenance(folder, config: dict) → Path[source]
upxo.meshing.gbconformant.pipeline.provenance.command_from_folder(path) → str[source]

The command stored with a deck (provenance.json), or rebuilt from the settings in a run folder’s manifest.