kicad2ems.core.vary¶
Settings varied (R-E5): the run solved again for each combination of other
settings' values, where a part's value needs no new solve (--part-value) but a
setting does (a mesh, a dielectric, a layer's height through a config).
--vary fine=0.1,0.05 --vary diel=fixed,wideband
# every combination, at most VARY_MAX
[vary]
# the same in a config
fine = [0.1, 0.05]
Each combination runs the whole job (its solvers, reports, an earlier result
reused where nothing changed) in <out>/vary/<tag>/, the tag its values
(fine=0.1_diel=fixed); <out>/<name>_vary.json lists them (their values, folders,
exit codes, each solver's Touchstone and its figures), the window's view of the
variation; <out>/<name>_vary.csv and the log set the figures side by side, a
line a combination and solver (figures: the worst match and its dip at each
port, each transmission at the band's centre and its lowest).
- kicad2ems.core.vary.combinations(spec)[source]¶
[[(key, raw value), ...]] of every combination, in order.
- kicad2ems.core.vary.figures(path, most=4)[source]¶
A Touchstone file's figures (core.sparams.figures).
- kicad2ems.core.vary.load(folder)[source]¶
The variation listed in a results folder (<name>_vary.json), or None: dict(name, keys, runs) with each run's folder and Touchstones made absolute.
- kicad2ems.core.vary.parse(specs, options)[source]¶
[(key, [raw values])] of --vary specs ('KEY=V1,V2'; a list from a [vary] table: KEY=V1,V2 too), each key an option (its values converted by it when a combination is made); raises ValueError for anything else.
- kicad2ems.core.vary.run(s, command='', echo=<built-in function print>)[source]¶
Each combination of s.vary as a job of its own (pipeline.Job) in <out>/vary/<tag>; <out>/<name>_vary.json. Returns the worst exit code.