Metadata-Version: 2.1
Name: pbparam
Version: 0.1
Summary: A package for optimising parameters in PyBaMM. Under development.
Author: Muhammed Sogut, W. Dhammika Widanage, Philip Grylls
Author-email: Ferran Brosa Planella <Ferran.Brosa-Planella@warwick.ac.uk>
License-Expression: BSD-3-Clause
License-File: LICENSE
Requires-Dist: matplotlib
Requires-Dist: pybamm
Provides-Extra: deploy
Requires-Dist: bump2version; extra == 'deploy'
Provides-Extra: dev
Requires-Dist: black; extra == 'dev'
Requires-Dist: coverage; extra == 'dev'
Requires-Dist: flake8>=3; extra == 'dev'
Requires-Dist: nox; extra == 'dev'
Provides-Extra: docs
Requires-Dist: guzzle-sphinx-theme; extra == 'docs'
Requires-Dist: sphinx-rtd-theme; extra == 'docs'
Requires-Dist: sphinx>=1.5; extra == 'docs'
Description-Content-Type: text/markdown

# pybamm-param: PyBaMM Parameter Optimization Tool

[![pybamm-param](https://github.com/paramm-team/pybamm-param/actions/workflows/test_on_push.yml/badge.svg?branch=main)](https://github.com/paramm-team/pybamm-param/actions/workflows/test_on_push.yml)
[![Documentation Status](https://readthedocs.org/projects/pybamm-param/badge/?version=latest)](https://pybamm-param.readthedocs.io/en/latest/?badge=latest)
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/paramm-team)
[![codecov](https://codecov.io/gh/paramm-team/pybamm-param/branch/main/graph/badge.svg?token=CMFXMUU1SJ)](https://codecov.io/gh/paramm-team/pybamm-param)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/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](./examples)

## 🚀 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
```bash
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

```bash
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)

    ```bash
    virtualenv --python="<path to python 3.11>" env
    ```

2. Activate the virtual environment

    ```bash
    source env/bin/activate
    ```

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

    ```bash
    deactivate
    ```

3. Install packages into the virtual envronment

    ```bash
    pip install -e ./[dev,docs]
    ```

#### Windows

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

    ```bash
    python -m virtualenv env
    ```

2. Activate the virtual environment

    ```bash
    env\Scripts\activate.bat
    ```

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

    ```bash
    deactivate
    ```

3. Install package from Github

    ```bash
    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](https://github.com/paramm-team/pybamm-param/blob/main/CONTRIBUTING.md) first.
