Skip to main content

Dynamical Systems Modeling Framework

Project description

PyRates

License CircleCI PyPI version Documentation Status Python

PyRates is a framework for dynamical systems modeling, developed by Richard Gast and Daniel Rose. It is an open-source project that everyone is welcome to contribute to.

Basic features

Basic features:

  • Frontend:
    • implement models via a frontend of your choice: YAML or Python
    • create basic mathematical building blocks (i.e. differential equations and algebraic equations) and use them to define a networks of nodes connected by edges
    • create hierarchical networks by connecting networks via edges
  • Backend:
    • choose from a number of different backends
    • NumPy backend for dynamical systems modeling on CPUs via Python
    • Tensorflow and PyTorch backends for parameter optimization via gradient descent and dynamical systems modeling on GPUs
    • Julia backend for dynamical system modeling in Julia, via tools such as DifferentialEquations.jl
    • Fortran backend for dynamical systems modeling via Fortran 90 and interfacing the parameter continuation software Auto-07p
    • Matlab backend for differential equation solving via Matlab
  • Other features:
    • perform quick numerical simulations via a single function call
    • choose between different numerical solvers
    • perform parameter sweeps over multiple parameters at once
    • generate backend-specific run functions that evaluate the vector field of your dynamical system
    • Implement dynamic edge equations that include scalar delays or delay distributions (delay distributions are automatically translated into gamma-kernel convolutions)
    • choose from various pre-implemented dynamical systems that can be directly used for simulations or integrated into custom models

Installation

Stable release (PyPI)

PyRates can be installed via the pip command. We recommend to use Anaconda to create a new python environment with Python >= 3.6 and then simply run the following line from a terminal with the environment being activated:

pip install pyrates

You can install optional (non-default) packages by specifying one or more options in brackets, e.g.:

pip install pyrates[backends]

Available options are backends, dev, and all at the moment. The latter includes all optional packages. Furthermore, the option tests includes all packages necessary to run tests found in the github repository.

Development version (github)

Alternatively, it is possible to clone this repository and run one of the following lines from the directory in which the repository was cloned:

python setup.py install

or

pip install '.[<options>]'

Documentation

For a full API of PyRates, see https://pyrates.readthedocs.io/en/latest/. For examplary simulations and model configurations, please have a look at the jupyter notebooks provided in the documenation folder.

Reference

If you use this framework, please cite: Gast, R., Rose, D., Salomon, C., Möller, H. E., Weiskopf, N., & Knösche, T. R. (2019). PyRates-A Python framework for rate-based neural simulations. PloS one, 14(12), e0225900.

Contact

If you have questions, problems or suggestions regarding PyRates, please contact Richard Gast.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrates-0.14.2.tar.gz (117.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyrates-0.14.2-py3-none-any.whl (165.6 kB view details)

Uploaded Python 3

File details

Details for the file pyrates-0.14.2.tar.gz.

File metadata

  • Download URL: pyrates-0.14.2.tar.gz
  • Upload date:
  • Size: 117.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.12

File hashes

Hashes for pyrates-0.14.2.tar.gz
Algorithm Hash digest
SHA256 b2c7c5f401aa16fed9ab4a28ad0ef13648ca44651c113cbb55712141c8817bef
MD5 9be248925a27d0a881cd410388a43a0f
BLAKE2b-256 8916f1626b121dde2ba85b40616f9eac2afeaad411626f05d08464682d62b6a8

See more details on using hashes here.

File details

Details for the file pyrates-0.14.2-py3-none-any.whl.

File metadata

  • Download URL: pyrates-0.14.2-py3-none-any.whl
  • Upload date:
  • Size: 165.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.12

File hashes

Hashes for pyrates-0.14.2-py3-none-any.whl
Algorithm Hash digest
SHA256 68934801ea32e7887e3fb28079a33a819723ed1be6bc7979caf559cb7100a84a
MD5 b572881cd5eed301fe8fa6e5616b9106
BLAKE2b-256 da4bcc3a4de55f2d7090eaf47e4bf49ffb13e0a0be7f246a01be452c244845b0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page