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

    • 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

  • Edge of chaos measures
    • 0-1 chaos test

    • 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.2.1

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.2.1
File Size Uploaded Provenance Actions
edgeofpy-0.2.1.tar.gz 47.7 kB With provenance Details for edgeofpy-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 98.7 kB

Release files / edgeofpy-0.2.1.tar.gz

Download URL edgeofpy-0.2.1.tar.gz
Size 47.7 kB
Tags Source
SHA-256 checksum
How to use checksums
64e93ed98933aeca847fa93443ccedc5a813d6e2adfcf7af1afeaec24b624a7e
BLAKE2b-256 checksum
How to use checksums
a40c37a605a5676068e55ab470564171e7bb4127a88fb400609d5b1c8d80ca42
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 17, 2026.

Transparency log

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

Download URL edgeofpy-0.2.1-py3-none-any.whl
Size 50.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ec31d815d7841f584570a1fbf94bc12e49a034cd7d7268e357d2b856e61312c
BLAKE2b-256 checksum
How to use checksums
741ea2539946782057af506eea4647a23723c10edad7c95ac1d5557426fe794c
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 17, 2026.

Transparency log

Security for edgeofpy 0.2.1

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.2.1.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 17, 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.2.1 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