kicad2ems.gui.runner

The GUI's settings form, without Qt (testable without a display): its options
and sections (made from the option tables and the solver registry), the solver
tick boxes, and a config read into the form and written back (save_config keeps
the file's comments and order). The run itself (Run, EventTail, stop_runs,
find_results) is kicad2ems.core.runs, which the KiCad plugin uses too.
kicad2ems.gui.runner.extra_values(path)[source]
The settings of a TOML config that the GUI has no field for (kept and
passed on to its runs).
kicad2ems.gui.runner.group(o)[source]
An option's group box in the form ('FDTD/Mesh': the Mesh sub-section of
the FDTD section).
kicad2ems.gui.runner.make_form()[source]
The options the GUI edits, in form order: those with a GUI label
(config.CORE, then each solver's) and a tick box per solver (an Option of
key solver:<name>) heading the Solvers group; Board and Band first, Output
last.
kicad2ems.gui.runner.relative(path, base)[source]
path relative to base, with '/', where there is a relative path: on
Windows another drive (or a UNC share) has none, and os.path.relpath's
ValueError had stopped a config's save halfway (its analyses' tables not
written); there the path as it is.
kicad2ems.gui.runner.save_config(path, values, template=None)[source]
Write the GUI's settings to a TOML config at `path`.

Paths are written relative to the file's folder. With `template` (the config
that was loaded), its text is kept: comments, order and tables stay, each
setting gets its new value where it is written (keeping a trailing
comment), settings whose field was cleared are removed and new ones are
added above the first table. Without a template, only the settings that
differ from the defaults are written.
kicad2ems.gui.runner.section_title(top, names)[source]
A section's heading: its name, and the solvers sharing it unless it is
one of theirs ('FDTD (openEMS, gfdtd)').
kicad2ems.gui.runner.settings_values(path)[source]
The GUI's fields from a TOML config (through the same rules as the
command line). The solver tick boxes show the solvers the config runs
(solver_ticks).
kicad2ems.gui.runner.solver_sections(reg=None)[source]
{section: [solver names]}, in registry order: the sections of the
solvers' settings, each greyed while none of its solvers is ticked. A
section several solvers list (the FDTD one: openEMS's and gfdtd's mesh and
run settings) has them all.
kicad2ems.gui.runner.solver_ticks(vals)[source]
{solver:<name>: ticked} for a settings dict: the solvers its plan runs
(openEMS by default; solvers, mom = true and fast name the others; 'lines'
as resolved here). solvers = [] ticks none.
kicad2ems.gui.runner.solvers_from_form(vals)[source]
The form's values (with the solver tick boxes) as settings: solvers lists
the ticked solvers, or is left to its default (auto) when that alone is
ticked; an empty list when none is. Without tick boxes in vals (settings
rather than the form's own values), vals as they are.
kicad2ems.gui.runner.write_toml(path, values)[source]
A flat TOML file of the non-empty settings
(kicad2ems.core.runs.write_toml), the solver tick boxes as solvers.