Vendor-neutral Python power-quality analysis, standards checks, and reports from waveform files.
Install from PyPI and try the demo:
For COMTRADE files, install the optional extra with pip install "gridlens[comtrade]" .
The generated report is indicative for this short demo recording. For a full assessment, use an appropriately long recording and verify results against the official standard and certified instruments.
Power-quality tools are often tied to a particular instrument. GridLens aims to provide a free, scriptable layer for analyzing waveform data from multiple sources, with reusable metrics, event detection, standards checks, and reports.
Engineering guidance only. Compliance claims must be verified against the official standard text and edition, applicable system scope, and certified instruments.
Engineering guidance only. Compliance claims must be verified against the official standard text and edition, applicable system scope, and certified instruments.
Synthetic waveform generator
RMS, THD, active/reactive/apparent power, power factor
Sag, swell and interruption detection
EN 50160 and IEEE 519 voltage compliance checks
IEEE 519 current distortion (TDD)
Indian grid code limits
COMTRADE loading (optional comtrade )
HTML compliance reports
PDF report and web UI
To work on GridLens itself, install it from a clone in editable mode:
Issues and pull requests are welcome. See CONTRIBUTING.md for setup and contribution steps. Pull requests must pass CI before merging.
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
