fdia-analysis
The analysis toolkit for fdia-graph timelines: state estimation, attack localization, federated training, trusted-meter selection, and the store the measured results are kept in.
fdia-graph generates a timeline and loads it. fdia-analysis is what is measured on one. It reads
the files through fdia_graph.dataset and builds on the generation toolkit's formulas and records;
fdia_graph never imports it, so the generation toolkit installs and runs without this one.
| package | holds |
|---|---|
fdia_analysis.se |
the state estimators (one solver, six estimators), the Jacobian features, and the alarm rules in fdia_analysis.se.detect |
fdia_analysis.localization |
the per-bus localizers: thresholds on the swing, the temporal change and the residual, and the learned ones |
fdia_analysis.federated |
the localizers and the estimator's prior trained over K clients that never pool their records |
fdia_analysis.trust |
trusted-meter selection and its scoring |
fdia_analysis.results |
the results store: a run's records with their provenance, and the renderers the docs read them through |
fdia_analysis.models |
the settings and score tables of the packages above |
fdia_analysis.formulas |
their mathematics, as pure functions |
Install
| Install | Adds |
|---|---|
pip install fdia-analysis |
the toolkit and fdia-graph: the threshold localizers and the results store |
pip install "fdia-analysis[se]" |
pandapower and scipy, for fdia_analysis.se and the residual localizer |
pip install "fdia-analysis[torch]" |
torch, for the learned localizers and faster per-record inverses |
pip install "fdia-analysis[federated]" |
torch and scikit-learn, for fdia_analysis.federated |
pip install "fdia-analysis[all]" |
every extra above |
One example
import fdia_graph as fg
from fdia_analysis.models.config import PriorConfig
from fdia_analysis.se.methods import SubspacePrior # pip install "fdia-analysis[se]"
train, test = fg.load("ieee118", split="train"), fg.load("ieee118", split="test")
est = SubspacePrior(prior=PriorConfig(rank_frac=0.5, reweight="huber", c=2.5)).fit(train)
print(est.score(test)) # angle and voltage error per attack family
The documentation is the repository's: the tutorial docs/getting-started/analyse.md, the pages
under docs/analysis/ (one per study), docs/guides/state_estimation.md,
docs/concepts/layers.md for which layers an analysis may read, and results/README.md for the
results store.
In this repository
The toolkit lives in analysis/: the package under analysis/src/fdia_analysis, its tests under
analysis/tests (they share the fixtures of the repository root's conftest.py, the tiny generated
timeline among them), and its own pyproject.toml. The tests run from the repository root, where
pytest is configured: pytest analysis/tests runs its suite and
python tools/prereview.py runs every gate of both toolkits.
Metadata
Release files for fdia-analysis 0.22.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fdia_analysis-0.22.0.tar.gz | 125.6 kB | With provenance | Details for fdia_analysis-0.22.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fdia_analysis-0.22.0-py3-none-any.whl | Python 3 | none | any | Details for fdia_analysis-0.22.0-py3-none-any.whl |
Total release size: 229.7 kB
Release files / fdia_analysis-0.22.0.tar.gz
| Download URL | fdia_analysis-0.22.0.tar.gz |
|---|---|
| Size | 125.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7e6455af9104a138483c908a948df6bae814f14a71858b80b52935b727b0db0
|
|
BLAKE2b-256 checksum How to use checksums |
55fb40c8d1629b0ce4fd68c06681d7e7b2ad11a1ed32b2764485b7fa2c65ff37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logRelease files / fdia_analysis-0.22.0-py3-none-any.whl
| Download URL | fdia_analysis-0.22.0-py3-none-any.whl |
|---|---|
| Size | 104.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
994b6d3813fb30efee9014247dc5760683a9db2f1702c51b149b51b2482eee1b
|
|
BLAKE2b-256 checksum How to use checksums |
6e7a95e66bb10ccf55dcf15b6623cfbe10034cb3ee0d497bc5c346d79b9db811
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logSecurity for fdia-analysis 0.22.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for fdia_analysis-0.22.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.