kicad2ems.gui.analysispanel

An analysis's settings and its run, for any analysis kicad2ems's registry holds
(kicad2ems.core.analyses.registry:
pcbqs's power integrity, near field and thermal): the form made from its
options, in sections by their groups; its commands (a run each: a row of its
table of runs) for the one launcher to start (runprocess.RunProcess: the
window's, or the panel's own when it is alone); their output followed (the Run
page shows the log, the status line its progress).

The panel is the analysis's part of the Study dock. It has no page: what a run
leaves is shown where every result is, its maps in the Viewer (it writes them as
field dumps), its report and curves on the Results page. Nothing here knows one
analysis from another; what an analysis does differently it says through its
Analysis (command, status, discover and choices, suggest).

    panel = AnalysisPanel(analysis, win)
        # win: the window (its board, its output folder), or None alone
    panel.values(), panel.set_values({...}), panel.reset()
    panel.commands(preview, asked, engine, sets)
        # its runs as they stand, for the launcher: each made when its turn
        # comes (its folder, its mark), or why it cannot start
    panel.began(cmd), panel.output(text), panel.done(cmd, code, outcome)
        # what the launcher says of them: the log, the status line
    panel.start(preview=False), panel.stop(), panel.proc, panel.out
        # alone: its Run and Stop (in the window: the toolbar's)
    config_values(panel)
        # what a config's [analysis.<name>] table holds of it
    panel.set_runs([{...}, ...]), panel.runs()
        # an analysis a study may hold several of (Analysis.several: a
        # board's rails): a table of what differs, a run each, in order
class kicad2ems.gui.analysispanel.AnalysisPanel(analysis, win=None)[source]
One analysis's settings (the sections of its options, its own board and
folder), the buttons its Analysis gives it (Find, what its result proposes
for another analysis) and its status line.
add_run(values=None)[source]
A row of the table (a run): from values, else empty (its fields'
defaults).
add_section(title, widget, form=None, expanded=False)[source]
A section of the page's own under the options' (the circuit's model
values): its widget, and the form its rows are in.
began(cmd)[source]
One of its runs started (the launcher's).
board_path()[source]
The board named here, else the study's (the window's settings).
commands(preview=False, asked=(), engine=None, sets=None)[source]
Its runs as they stand, for the launcher: a function each (a row of
the table: a preview, the first's alone) that makes its Command when
its turn comes (its folder, its mark) or says why it cannot start.
asked: the questions it is asked; engine: the engine chosen (one of
its variants: the mark names it), sets: what that engine fixes.
default_out(board, tag, preview=False)[source]
Where a run goes when no folder is named: in the window a folder per
run under its output folder (MainWindow.tool_out); alone, <name>_<tag>
beside the board.
done(cmd, code, how)[source]
One of its runs ended (how: its outcome): the status line says how,
its result the one shown.
find()[source]
The analysis's discover command on the board; what it finds to pick
from, the pick into the form.
focus(key)[source]
The field of an option in view, its section open; no such option: the
first section.
needs(asked=(), to_come=())[source]
What a run of these settings still needs, [dict(text, key)]: the
options a proposal left without a value, and what the analysis says
(Analysis.missing). to_come: the analyses asked with it that run before
it and have no result yet: what they will give is not missing.
option(key)[source]
Its Option of a key, or None.
output(text)[source]
Its run's output: into its log, its progress on the status line.
pick(choices)[source]
One of [(label, values)] into the form: the only one, else the one
chosen in a dialog.
picked_names(key)[source]
The names a picked setting holds now.
property proc[source]
The process of its run (or its Find) going, or None.
remove_run()[source]
The selected row out (the last one stays: a run is of one at
least).
reset()[source]
The form as it is made: every field empty (its default), no board or
folder of its own.
runs()[source]
The runs the table asks, [values]: the shared settings with each
row's (one row: values()). A row with nothing in it is left out, unless
it is the only one.
set_own(board, out)[source]
The panel's own board and output folder (None or '': the study's).
set_runs(runs)[source]
The table from several runs' settings ([{key: value}]): each its row,
the shared settings the first's.
set_values(vals)[source]
Some of the form's fields (the others stay): a list as lines, None as
empty. With a table of runs, its keys into the first row.
show_result(folder)[source]
A result of this analysis is the one shown: what it proposes for
other analyses, as buttons.
skipped(why)[source]
One of its runs could not start: why.
start(preview=False)[source]
Alone: start the analysis (its preview), a table's rows one after
the other (a preview: the first's alone). The status line says why
when it cannot start; ended(code) when it all ends.
stop()[source]
Its run asked to stop (a table's next rows not run), its Find
ended: RunProcess.stop.
take_pick(key, name)[source]
A name picked on the board into setting `key`: one that holds several
takes it in, or out when it is there already; one that holds one is set.
Returns the names it now holds.
values()[source]
The settings: the form's, and with a table of runs the first run's
(runs(): all of them).
kicad2ems.gui.analysispanel.config_values(panel, base=None, vals=None)[source]
What a config's [analysis.<name>] table holds of a panel: the options set
(of vals, a run of its table, when given), and its own board and folder;
paths (the analysis's, and those two) relative to `base`.
kicad2ems.gui.analysispanel.typed(option, value)[source]
A form's value as a config holds it: a number where the option is one, a
list for a repeatable one, None when it is not set (empty, or the option's
default).