Skip to content
forked from simon123h/bice

A numerical path continuation software written in Python.

License

Notifications You must be signed in to change notification settings

comphy-lab/bice

 
 

Repository files navigation

BICE

CI-Checks CI-Docs codecov PyPI - Version

A numerical path continuation software written in Python.

Example

Example of a bifurcation diagram with snaking in the Swift-Hohenberg equation obtained with bice, see the corresponding SHE demo. Sample bifurcation diagram with snaking

Installation

To install the latest published version from PyPI simply execute:

pip3 install bice

If you instead want to install the package locally, e.g. for development purposes, you may download the latest version from this git and install it using:

git clone https://github.com/simon123h/bice
pip3 install -e bice/

in any directory of your choice.

Development Setup

To set up a local development environment with all dependencies, it is recommended to use a virtual environment:

Linux / macOS

# Create a virtual environment
python3 -m venv venv

# Activate the virtual environment
source venv/bin/activate

# Install the package in editable mode with development dependencies
pip install -e ".[dev]"

Windows

# Create a virtual environment
python -m venv venv

# Activate the virtual environment
.\venv\Scripts\Activate.ps1

# Install the package in editable mode with development dependencies
pip install -e ".[dev]"

Requirements

The software depends on Python 3 and the following third-party packages: numpy, scipy, matplotlib, findiff, and numdifftools. All will be installed automatically when installing bice.

Tutorials

We have first tutorials!

More will follow soon.

Meanwhile you can check out the less documented demos.

Documentation

Click here for the online version of the documentation.

Building the documentation locally

The documentation can be generated locally with:

nox -s docs

The documentation can then be found in the folder docs.

You will need to have the development dependencies installed:

pip3 install -e ".[dev]"

Running Checks

To ensure code quality, you can run the following commands locally:

# Using nox (recommended, handles its own environments)
nox -s lint
nox -s type_check
nox -s test

# Or manually in your active environment:
# Linting and formatting
ruff check .
ruff format .

# Type checking
mypy src/bice

# Tests
pytest tests/

For more details, see CONTRIBUTING.md.

About

A numerical path continuation software written in Python.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%