Skip to main content

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

EDGE OF PY

Package for assessing the distance to criticality in brain dynamics.

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

Coming soon.

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.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.2.0
File Size Uploaded Provenance Actions
edgeofpy-0.2.0.tar.gz 46.0 kB With provenance Details for edgeofpy-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 95.4 kB

Release files / edgeofpy-0.2.0.tar.gz

Download URL edgeofpy-0.2.0.tar.gz
Size 46.0 kB
Tags Source
SHA-256 checksum
How to use checksums
32561a74895e002b7104e1a553e383743f6c1461d1cd6e9f16f6851c63dcde59
BLAKE2b-256 checksum
How to use checksums
671e61a86cfa78c5295fa4f21082e32484310d6b5b89ba70c7174fba8faa47f7
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 11, 2026.

Transparency log

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

Download URL edgeofpy-0.2.0-py3-none-any.whl
Size 49.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e65992458e1a85604fcc8b0f2d6588105c815efcd3009aa5f2ad3eb01e5e9302
BLAKE2b-256 checksum
How to use checksums
0096c71ca35c787fae6123ccd8370af790492773824f09bac97962dcb61fc563
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 11, 2026.

Transparency log

Security for edgeofpy 0.2.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.2.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 11, 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.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