Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpx is added as an optional dependency #499

Merged
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

## Breaking Changes

- [#499](https://github.com/pybop-team/PyBOP/pull/499) - BPX is added as an optional dependency.
- [#483](https://github.com/pybop-team/PyBOP/pull/483) - Replaces `pybop.MAP` with `pybop.LogPosterior` with an updated call args and bugfixes.
- [#436](https://github.com/pybop-team/PyBOP/pull/436) - **API Change:** The functionality from `BaseCost.evaluate/S1` & `BaseCost._evaluate/S1` is represented in `BaseCost.__call__` & `BaseCost.compute`. `BaseCost.compute` directly acts on the predictions, while `BaseCost.__call__` calls `BaseProblem.evaluate/S1` before `BaseCost.compute`. `compute` has optional args for gradient cost calculations.
- [#424](https://github.com/pybop-team/PyBOP/issues/424) - Replaces the `init_soc` input to `FittingProblem` with the option to pass an initial OCV value, updates `BaseModel` and fixes `multi_model_identification.ipynb` and `spm_electrode_design.ipynb`.
Expand Down
22 changes: 22 additions & 0 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,28 @@ For those who prefer to install PyBOP from a local clone of the repository or wi

In editable mode, changes you make to the source code will immediately affect the PyBOP installation without the need for reinstallation.

Optional Packages
-----------------
plotly - PyBOP uses plotly>=5.0, and can be installed with:

.. code-block:: console

pip install plotly
BradyPlanden marked this conversation as resolved.
Show resolved Hide resolved

scikit-fem - This is a dependency for the multi-dimensional pybamm models, and can be installed using:

.. code-block:: console

pip install scikit-fem[all]
BradyPlanden marked this conversation as resolved.
Show resolved Hide resolved

bpx - To use physics based battery models of Faraday Institution's MSM project Battery Parameter eXchange (BPX) is required:

.. code-block:: console

pip install bpx
BradyPlanden marked this conversation as resolved.
Show resolved Hide resolved

For more information of the additional packages, user may have a look `here <https://github.com/pybop-team/PyBOP/blob/develop/pyproject.toml>`_.
BradyPlanden marked this conversation as resolved.
Show resolved Hide resolved

Verifying Installation
----------------------

Expand Down
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ dependencies = [
"numpy>=1.16, <2.0",
"scipy>=1.3",
"pints>=0.5",
"bpx>=0.4",
]

[project.optional-dependencies]
Expand Down Expand Up @@ -58,7 +57,10 @@ dev = [
scifem = [
"scikit-fem>=8.1.0" # scikit-fem is a dependency for the multi-dimensional pybamm models
]
all = ["pybop[plot]", "pybop[scifem]"]
bpx = [
"bpx>=0.4",
]
all = ["pybop[plot]", "pybop[scifem]", "pybop[bpx]"]
BradyPlanden marked this conversation as resolved.
Show resolved Hide resolved

[tool.setuptools.packages.find]
include = ["pybop", "pybop.*"]
Expand Down
Loading