Skip to main content

Development Status: 3 - Alpha. Some features still need to be added and tested.

EDGE OF PY

PyPI version Documentation status Tests

Package for assessing the distance to criticality in brain dynamics.

Documentation: https://edgeofpy.readthedocs.io

Features

  • Avalanche criticality measures
    • Avalanche detection, from M/EEG signals or spike times, with a data-driven (Gaussian-fit) event threshold

    • Avalanche distribution plotting

    • Power-law fitting (via powerlaw)

    • Deviation from criticality coefficient (DCC)

    • Shape collapse error

    • Avalanche repertoire size and diversity

    • Branching ratios

    • Susceptibility

    • Fano factor

    • Phase-randomized surrogates

  • Edge of chaos measures
    • 0-1 chaos test

  • Distance to instability
    • Lambda max (Dahmen et al., 2019)

  • Edge of synchrony measures
    • Pair correlation function (PCF)

    • Phase lag index (PLI)

    • Phase lag entropy (PLE)

    • Global lability of synchronization (GLS)

    • Phase-locking avalanche detection

  • Ising model functions
    • Fitting the spin-glass model by pseudo-likelihood maximization

    • SK phase diagram inference (Ezaki et al., 2020)

    • Metropolis-Hastings algorithm

    • Heavy-tailed phase diagram inference

    • Ising energy

    • Specific heat

    • Energy landscape sample

Installation

Install edgeofpy by running:

pip3 install edgeofpy

Documentation

The documentation, at https://edgeofpy.readthedocs.io, includes a quick start, a user guide, worked examples and the API reference.

Requirements

  • Python 3.10 or later

  • numpy >= 1.22

  • scipy >= 1.7

  • matplotlib >= 3.5

  • powerlaw >= 2.0

Citing edgeofpy

If you use edgeofpy, please cite it: use the “Cite this repository” button on GitHub, or the metadata in CITATION.cff. Please also cite the original papers of the methods you use; they are listed in the function docstrings. fit_powerlaw relies on the powerlaw package:

Alstott J, Bullmore E, Plenz D (2014). powerlaw: A Python package for analysis of heavy-tailed distributions. PLoS ONE 9(1): e85777. https://doi.org/10.1371/journal.pone.0085777

License

The project is licensed under the Apache 2.0 license.

Metadata

Release files for edgeofpy 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for edgeofpy 0.3.0
File Size Uploaded Provenance Actions
edgeofpy-0.3.0.tar.gz 55.2 kB With provenance Details for edgeofpy-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for edgeofpy 0.3.0
File Interpreter ABI Platform Actions
edgeofpy-0.3.0-py3-none-any.whl Python 3 none any Details for edgeofpy-0.3.0-py3-none-any.whl

Total release size: 114.4 kB

Release files / edgeofpy-0.3.0.tar.gz

Download URL edgeofpy-0.3.0.tar.gz
Size 55.2 kB
Tags Source
SHA-256 checksum
How to use checksums
911fc860ac4594d5f9d7e179f6f0732bfcd097414ed959f49d1efa16e7e3ff59
BLAKE2b-256 checksum
How to use checksums
8f7a0acbf2c87e915dfae40b93050eebe795fe727ae041d01565f8b82de8b54b
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 30, 2026.

Transparency log

Release files / edgeofpy-0.3.0-py3-none-any.whl

Download URL edgeofpy-0.3.0-py3-none-any.whl
Size 59.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
127f63bf0af405a0428b52daaa7a81721dc4492aa0c74141e1b7cf7334bd3ff1
BLAKE2b-256 checksum
How to use checksums
2782ce720aff35f6064a84807a0a210a4505ffc305eb34439110b45d046de0ad
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 30, 2026.

Transparency log

Security for edgeofpy 0.3.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.

Select from 2 files

Attestation for edgeofpy-0.3.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 30, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page