kicad2ems.core.formats

The versions of the files kicad2ems writes for other programs to read
(kicad2ems-gui, the KiCad plugin, dfsynth). Each carries its format's name and
version, `format` and `format_version`, and a reader takes a version up to its
own: a newer one says to update kicad2ems. The version goes up when a key is
removed or changes its meaning; a new key needs none. A file without them was
written before they were stamped: version 1's layout. (<name>_board.json has its
own, board.FORMAT and VERSION.)

    kicad2ems-run      <name>_run.json, the run summary
    kicad2ems-events   --events: its first line ({"kind": "format", ...}), the
                       stream's
    kicad2ems-sysinfo  python -m kicad2ems.core.sysinfo's JSON
    kicad2ems-antenna  <name>[_<solver>]_antenna.json, an antenna run's results

    stamp(d, name)    d with its format and version
    check(d, name)    None when this kicad2ems reads d, else why not
    read(path, name)  a JSON file, checked (ValueError when this kicad2ems
                      cannot read it)
    plain(v)          json.dump's default for numpy values
kicad2ems.core.formats.check(d, name)[source]
None when this kicad2ems reads d as format `name` (a version up to its
own, or no stamp: written before them), else why not.
kicad2ems.core.formats.plain(v)[source]
numpy values -> JSON: arrays as lists, scalars as numbers; anything else
as its str.
kicad2ems.core.formats.read(path, name)[source]
A JSON file of format `name`, checked: ValueError when this kicad2ems
cannot read it.
kicad2ems.core.formats.stamp(d, name)[source]
d with its format's name and version (format, format_version).