mpylab.tools.nport_check moduleΒΆ

Static quality checks for NPORT frequency data.

class mpylab.tools.nport_check.NPortCheckIssue(severity: str, code: str, source: str, channel: str | None, message: str, details: dict)

Bases: object

One machine-readable NPORT data-quality finding.

channel: str | None
code: str
details: dict
message: str
severity: str
source: str
class mpylab.tools.nport_check.NPortCheckReport(source: str, device_type: str | None, channels_checked: int, issues: tuple[NPortCheckIssue, ...])

Bases: object

Quality-check result for one INI file.

as_dict()

Return a JSON-serializable representation.

channels_checked: int
device_type: str | None
issues: tuple[NPortCheckIssue, ...]
source: str
property warnings

Return all warning findings.

mpylab.tools.nport_check.check_nport_ini_file(path)

Check one NPORT-style INI file and return an NPortCheckReport.

mpylab.tools.nport_check.main(argv=None)

Run the mpylab-nport-check command.