Skip to main content

A package for optimising parameters in PyBaMM. Under development.

Project description

pybamm-param: PyBaMM Parameter Optimization Tool

pybamm-param Documentation Status Open In Colab codecov Code style: black

WARNING: this package is still under development and significant API changes might take please in the upcoming releases.

This package is provides parameter optimization for PyBaMM (Python Battery Mathematical Modelling) using different optimization techniques. Examples on how to run this package can be found in the examples folder

🚀 Installing pybamm-param

Using pip

The recommended way to install pybamm-param is by installing the latest release from PyPI. This can be done running

pip install pbparam

We strongly recommend using virtual environments, see more detailed instructions below (steps 1 and 2).

Install from source

Another option is to install from source. This is not recommended, unless you want to make edits to the code.

The first step is to install virtualenv in order to create virtual environments

pip install virtualenv

The module dependencies are listed in pyproject.toml, the dependancies which are non optional which are installed with the package.

The optional dependancies are split into dev and docs. dev are used for testing and linting, docs are used for building the sphinx documentation.

Linux & MacOS

  1. Create a virtual environment (this is strongly recommended to avoid clashes with the dependencies)

    virtualenv --python="<path to python 3.11>" env
    
  2. Activate the virtual environment

    source env/bin/activate
    

    The virtual environment can later be deactivated (if needed) by running

    deactivate
    
  3. Install packages into the virtual envronment

    pip install -e ./[dev,docs]
    

Windows

  1. Create a virtual environment (this is strongly recommended to avoid clashes with the dependencies)

    python -m virtualenv env
    
  2. Activate the virtual environment

    env\Scripts\activate.bat
    

    The virtual environment can later be deactivated (if needed) by running

    deactivate
    
  3. Install package from Github

    pip install -e .\\[dev,docs]
    

🛠️ Contributing to pybamm-param

If you'd like to help us develop pybamm-param by adding new methods, writing documentation, or fixing embarrassing bugs, please have a look at these guidelines first.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

pbparam-0.1.tar.gz (367.3 kB view details)

Uploaded Source

Built Distribution

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

pbparam-0.1-py2.py3-none-any.whl (388.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pbparam-0.1.tar.gz.

File metadata

  • Download URL: pbparam-0.1.tar.gz
  • Upload date:
  • Size: 367.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.6

File hashes

Hashes for pbparam-0.1.tar.gz
Algorithm Hash digest
SHA256 fa32b467aad9e28df202eb5b30c813c37a99de9108a6b1a583e996248cba1bc0
MD5 3a6a955c2eec4228f1c74222af9e4300
BLAKE2b-256 a90c7b38616c5756b0664e692c30b472e215964214ffefcb3ac549496f0a56b6

See more details on using hashes here.

File details

Details for the file pbparam-0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: pbparam-0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 388.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.6

File hashes

Hashes for pbparam-0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5cc2128c949fefc17c468896244e2c923ed6b1bce3e667cec036248b59fd3734
MD5 7785b259f28675cc844dbd639bc000ac
BLAKE2b-256 de9e723e1384236ddc09b3e0e1eec9c9bdf7a8691ca8dfa3f484e383a967c91a

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