upxo.meshing.gbconformant.pipeline.presets module
Named groups of settings for a kind of material and size of crop.
A preset is a set of values for the settings it controls. Applying one sets those settings to its values and every other setting a preset controls back to its default, so presets can be switched between freely; settings no preset controls are left as they are. The values come from the development notebooks or from runs on the development crop of the FM-steel data, as each preset’s notes say.
- class upxo.meshing.gbconformant.pipeline.presets.Preset(key: 'str', title: 'str', material: 'str', size_class: 'str', summary: 'str', settings: 'dict', notes: 'tuple' = (), source: 'str' = '', measured: 'Optional[dict]' = None)[source]
Bases:
object
- upxo.meshing.gbconformant.pipeline.presets.measured_text(measured: dict) str[source]
One line on what the development crop (8,800 voxels, 28 features) gave under the preset.
- upxo.meshing.gbconformant.pipeline.presets.controlled_keys() list[source]
Every setting some preset sets.
- upxo.meshing.gbconformant.pipeline.presets.values_of(key: str) dict[source]
The value of every controlled setting under preset
key(default where the preset says nothing).
- upxo.meshing.gbconformant.pipeline.presets.changes(config: dict, key: str) list[source]
[(setting, current, new)]for what applyingkeywould change inconfig.
- upxo.meshing.gbconformant.pipeline.presets.apply_preset(config: dict, key: str) list[source]
Set the controlled settings of
configfor presetkey; returns the changes made.
- upxo.meshing.gbconformant.pipeline.presets.which_preset(config: dict) str | None[source]
The preset whose values
configholds for every controlled setting, orNone.