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

Make release v23.2 #2739

Merged
merged 131 commits into from
Feb 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
131 commits
Select commit Hold shift + click to select a range
7ab0f5e
#2358 modified experiment class to allow temperatures
Scottmar93 Dec 4, 2022
f14375b
#2358 fixed flake8 issues
Scottmar93 Dec 4, 2022
5f8e52f
#2358 passing tests
Scottmar93 Dec 4, 2022
04da6c8
style: pre-commit fixes
pre-commit-ci[bot] Dec 4, 2022
5493cc5
#2358 removed degC (only use oC)
Scottmar93 Jan 8, 2023
4d3c030
simplified dropping of temperature part
Scottmar93 Jan 8, 2023
04b59e6
Merge branch 'issue-2358-add-temperature-to-experiment' of https://gi…
Scottmar93 Jan 8, 2023
884c40a
Merge branch 'develop' into issue-2358-add-temperature-to-experiment
Scottmar93 Jan 8, 2023
d6a61bf
style: pre-commit fixes
pre-commit-ci[bot] Jan 8, 2023
f64a3fa
#2358 increase coverage
Scottmar93 Jan 8, 2023
5fcc60b
Merge branch 'issue-2358-add-temperature-to-experiment' of https://gi…
Scottmar93 Jan 8, 2023
8ef4aa1
#2358 remove repeated line
Scottmar93 Jan 8, 2023
1fe0c9e
#2358 updated changelog
Scottmar93 Jan 10, 2023
1d9a852
fixed exponent in doc string
dikwickley Jan 27, 2023
4e1cbd3
#2643 add using banded options flag
martinjrobins Feb 1, 2023
695175e
switch some doc files to markdown, add favicon
valentinsulzer Feb 2, 2023
a4bf0e8
style: pre-commit fixes
pre-commit-ci[bot] Feb 2, 2023
8f45f85
add myst_parser as a dependency
valentinsulzer Feb 2, 2023
7d12faa
Merge branch 'markdown-docs' of github.com:pybamm-team/PyBaMM into ma…
valentinsulzer Feb 2, 2023
3c9da5f
add favicon.png
valentinsulzer Feb 2, 2023
d218aa4
Merge pull request #2648 from pybamm-team/markdown-docs
valentinsulzer Feb 2, 2023
88da02a
Update Install Link
jeromtom Feb 4, 2023
6bf88fd
Update CHANGELOG.md
jeromtom Feb 4, 2023
6accce4
Try using the master branch
Saransh-cpp Feb 4, 2023
7b889bc
Revert "Update Install Link"
jeromtom Feb 4, 2023
8c8499b
@dalonsoa Updating link
jeromtom Feb 4, 2023
4a18528
Updating links in docs\index.rst #2660
jeromtom Feb 4, 2023
eeb96bd
Updated link on README.md
jeromtom Feb 4, 2023
6ed23c6
Revert "Revert "Update Install Link""
jeromtom Feb 4, 2023
cc89db6
Revert "Update CHANGELOG.md"
jeromtom Feb 4, 2023
def1081
Update link new_parameter_set.yml
jeromtom Feb 5, 2023
2f35a8b
Update links on index.rst
jeromtom Feb 5, 2023
2f6057b
Update links in examples folder
jeromtom Feb 5, 2023
762473c
Update links in tutorials
jeromtom Feb 5, 2023
c92afad
More updates on examples folder
jeromtom Feb 5, 2023
a00127b
Update links in examples folder
jeromtom Feb 5, 2023
c6e4e1b
Update links on examples folder, and others
jeromtom Feb 5, 2023
a3756de
Merge pull request #2659 from pybamm-team/url-checker
valentinsulzer Feb 6, 2023
ca7dd19
Remove conditional for scaling of r-R plots
iatzak Feb 6, 2023
654aae6
chore: update pre-commit hooks
pre-commit-ci[bot] Feb 7, 2023
df5c745
style: pre-commit fixes
pre-commit-ci[bot] Feb 7, 2023
3ec8efb
updated exponent to \mathrm{e}
dikwickley Feb 7, 2023
8511aa5
minor fix
dikwickley Feb 7, 2023
d61b36b
changelog
iatzak Feb 8, 2023
80781e3
e
rtimms Feb 8, 2023
2764c3c
#2643 copy sparse data to banded matrix
martinjrobins Feb 8, 2023
a556d33
particle tuple #2669
rtimms Feb 8, 2023
5e2a92a
Merge remote-tracking branch 'refs/remotes/origin/#2669-particle-tupl…
rtimms Feb 8, 2023
3f609c1
#2669 MPM half-cell
rtimms Feb 8, 2023
4cc440c
style: pre-commit fixes
pre-commit-ci[bot] Feb 8, 2023
eb84a83
#2669 integration tests
rtimms Feb 9, 2023
9e92a46
#2669 PSD with SPM
rtimms Feb 9, 2023
212a7fa
#2669 fix example
rtimms Feb 10, 2023
6524a11
#2643 banded solver works on SPM and DFN ok
martinjrobins Feb 10, 2023
fd43138
style: pre-commit fixes
pre-commit-ci[bot] Feb 10, 2023
65051e3
#2643 remove unused code
martinjrobins Feb 10, 2023
6ecc09f
Merge branch 'i2643-banded' of github.com:pybamm-team/PyBaMM into i26…
martinjrobins Feb 10, 2023
5c241ff
#2643 docstring for idaklu add banded options
martinjrobins Feb 10, 2023
e0ee98b
style: pre-commit fixes
pre-commit-ci[bot] Feb 10, 2023
352ac51
#2669 changelog
rtimms Feb 10, 2023
ede7c98
#2643 tidy up debug code
martinjrobins Feb 10, 2023
e43b7b0
#2669 integration tests
rtimms Feb 10, 2023
3660162
#2669 ruff
rtimms Feb 10, 2023
6d3f70b
intregation
ayeankit Feb 11, 2023
df7d404
Merge pull request #2663 from iatzak/r-R-scaling
valentinsulzer Feb 13, 2023
b710ef4
Merge pull request #2664 from pybamm-team/pre-commit-ci-update-config
valentinsulzer Feb 13, 2023
6c8a566
docs: update README.md [skip ci]
allcontributors[bot] Feb 13, 2023
4475d61
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Feb 13, 2023
c55ad2d
style: pre-commit fixes
pre-commit-ci[bot] Feb 13, 2023
d73822c
chore: update pre-commit hooks
pre-commit-ci[bot] Feb 14, 2023
fe63d90
Merge pull request #2684 from pybamm-team/all-contributors/add-iatzak
valentinsulzer Feb 14, 2023
bf0bdfe
Merge pull request #2685 from pybamm-team/pre-commit-ci-update-config
valentinsulzer Feb 14, 2023
8f8dfd7
intregation
ayeankit Feb 14, 2023
5faa557
#2643 dont need to handle none anymore
martinjrobins Feb 14, 2023
6d21edb
style: pre-commit fixes
pre-commit-ci[bot] Feb 16, 2023
5053a14
docs: update README.md [skip ci]
allcontributors[bot] Feb 17, 2023
b7a9216
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Feb 17, 2023
ba5ee08
Merge pull request #2696 from ayeankit/ankit
rtimms Feb 17, 2023
947c25a
style: pre-commit fixes
pre-commit-ci[bot] Feb 17, 2023
77b6eac
Merge pull request #2697 from pybamm-team/all-contributors/add-ayeankit
rtimms Feb 17, 2023
3c30f50
#2669 coverage
rtimms Feb 17, 2023
728eda4
Merge pull request #2672 from pybamm-team/#2669-particle-tuple
rtimms Feb 17, 2023
3b7a572
merge develop
valentinsulzer Feb 17, 2023
e8d78a8
style: pre-commit fixes
pre-commit-ci[bot] Feb 17, 2023
1a8e592
Update index.rst
jeromtom Feb 17, 2023
741be68
Update index.rst
jeromtom Feb 17, 2023
395aece
Change Python version
jeromtom Feb 17, 2023
611d376
Reverting python version
jeromtom Feb 17, 2023
c9e2a45
Merge pull request #2518 from pybamm-team/issue-2358-add-temperature-…
valentinsulzer Feb 17, 2023
a4984e0
fix line length
valentinsulzer Feb 17, 2023
4318383
Merge branch 'develop' into fix-submesh-equation
valentinsulzer Feb 17, 2023
664a024
Merge branch 'develop' into i2643-banded
valentinsulzer Feb 17, 2023
9cfd35b
changelog
valentinsulzer Feb 17, 2023
85f3648
docs: update README.md [skip ci]
allcontributors[bot] Feb 17, 2023
dc9a06e
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Feb 17, 2023
eae2b83
Merge pull request #2627 from dikwickley/fix-submesh-equation
valentinsulzer Feb 17, 2023
f7e7a6f
style: pre-commit fixes
pre-commit-ci[bot] Feb 17, 2023
8521bc9
Merge pull request #2701 from pybamm-team/all-contributors/add-dikwic…
valentinsulzer Feb 17, 2023
a48b28f
Merge pull request #2677 from pybamm-team/i2643-banded
valentinsulzer Feb 18, 2023
2bb41d3
clean up some infra stuff
valentinsulzer Feb 18, 2023
ce7bf1d
fix parser
valentinsulzer Feb 18, 2023
2f52818
fix tox commands
valentinsulzer Feb 18, 2023
32c2648
revert tox.ini
valentinsulzer Feb 18, 2023
889f929
#2703 remove warning if temperature not provided
valentinsulzer Feb 19, 2023
12cbcff
Merge pull request #2702 from pybamm-team/pre-commit
valentinsulzer Feb 19, 2023
956e607
Revert "Updated link on README.md"
jeromtom Feb 19, 2023
0c560d5
Merge pull request #2656 from jeromtom/issue-#2655-Updating-depreciat…
valentinsulzer Feb 19, 2023
002b89b
docs: update README.md [skip ci]
allcontributors[bot] Feb 19, 2023
820b8f5
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Feb 19, 2023
6ab6c15
Merge pull request #2705 from pybamm-team/all-contributors/add-jeromtom
valentinsulzer Feb 19, 2023
bb01c52
chore: update pre-commit hooks
pre-commit-ci[bot] Feb 20, 2023
c9a155f
Merge pull request #2710 from pybamm-team/pre-commit-ci-update-config
valentinsulzer Feb 21, 2023
1b105a7
Multi-cycle addition to composite electrode notebook
BradyPlanden Feb 21, 2023
4303afa
Clean notebook
BradyPlanden Feb 21, 2023
1d31905
PyBaMM installation comment
BradyPlanden Feb 21, 2023
a806c02
docs: update README.md [skip ci]
allcontributors[bot] Feb 21, 2023
15134ee
Merge pull request #2713 from BradyPlanden/esoh_two_phase
valentinsulzer Feb 21, 2023
aa2265c
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Feb 21, 2023
f87c2f8
Merge pull request #2715 from pybamm-team/all-contributors/add-BradyP…
valentinsulzer Feb 21, 2023
4f03df4
Merge pull request #2704 from pybamm-team/issue-2703-temperature
valentinsulzer Feb 22, 2023
29c07c0
Changed current_sigmoid_ocp to be valid for both electrodes
Feb 22, 2023
e3ea4c7
changelog
Feb 22, 2023
e00c3c4
Added new temporary variable lithiation_current for current sigmoid
Feb 23, 2023
beb8cdf
Merge pull request #2719 from DrSOKane/current-sigmoid
valentinsulzer Feb 23, 2023
0a79cd8
chore: update pre-commit hooks
pre-commit-ci[bot] Feb 28, 2023
5917381
Update version to v23.2
Feb 28, 2023
c31b3d5
Merge pull request #2736 from pybamm-team/pre-commit-ci-update-config
valentinsulzer Feb 28, 2023
ef7fc46
add empty icon links
valentinsulzer Feb 28, 2023
7a85483
add PyPI
valentinsulzer Feb 28, 2023
3163f49
use icon links for twitter and github
valentinsulzer Feb 28, 2023
81d8c35
Merge pull request #2738 from pybamm-team/create-pull-request/patch-b…
brosaplanella Feb 28, 2023
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
40 changes: 39 additions & 1 deletion .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
"login": "dalonsoa",
"name": "Diego",
"avatar_url": "https://avatars1.githubusercontent.com/u/6095790?v=4",
"profile": "https://www.imperial.ac.uk/admin-services/ict/self-service/research-support/rcs/research-software-engineering/",
"profile": "https://github.com/dalonsoa",
"contributions": [
"bug",
"review",
Expand Down Expand Up @@ -549,9 +549,47 @@
"name": "iatzak",
"avatar_url": "https://avatars.githubusercontent.com/u/112731474?v=4",
"profile": "https://github.com/iatzak",
"contributions": [
"doc",
"bug",
"code"
]
},
{
"login": "ayeankit",
"name": "Ankit Kumar",
"avatar_url": "https://avatars.githubusercontent.com/u/72691866?v=4",
"profile": "https://github.com/ayeankit",
"contributions": [
"code"
]
},
{
"login": "dikwickley",
"name": "Aniket Singh Rawat",
"avatar_url": "https://avatars.githubusercontent.com/u/31622972?v=4",
"profile": "https://aniketsinghrawat.vercel.app/",
"contributions": [
"code"
]
},
{
"login": "jeromtom",
"name": "Jerom Palimattom Tom",
"avatar_url": "https://avatars.githubusercontent.com/u/83979298?v=4",
"profile": "https://github.com/jeromtom",
"contributions": [
"doc"
]
},
{
"login": "BradyPlanden",
"name": "Brady Planden",
"avatar_url": "https://avatars.githubusercontent.com/u/55357039?v=4",
"profile": "http://bradyplanden.github.io",
"contributions": [
"example"
]
}
],
"contributorsPerLine": 7,
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/new_parameter_set.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ body:
value: |
Third-party parameter sets can be added to PyBaMM by registering an entry
point with `pybamm-parameter-sets` as described in our
[documentation](https://pybamm.readthedocs.io/en/latest/source/parameters/parameter_sets.html).
[documentation](https://pybamm.readthedocs.io/en/latest/source/api/parameters/parameter_sets.html).
- type: input
id: parameter-set-url
attributes:
Expand Down
8 changes: 4 additions & 4 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ Please add a line in the relevant section of [CHANGELOG.md](https://github.com/p

# Key checklist:

- [ ] No style issues: `$ pre-commit run`
- [ ] All tests pass: `$ python run-tests.py --unit`
- [ ] The documentation builds: `$ cd docs` and then `$ make clean; make html`
- [ ] No style issues: `$ pre-commit run` (see [CONTRIBUTING.md](https://github.com/pybamm-team/PyBaMM/blob/develop/CONTRIBUTING.md#installing-and-using-pre-commit) for how to set this up to run automatically when committing locally, in just two lines of code)
- [ ] All tests pass: `$ python run-tests.py --all`
- [ ] The documentation builds: `$ python run-tests.py --doctest`

You can run all three at once, using `$ python run-tests.py --quick`.
You can run unit and doctests together at once, using `$ python run-tests.py --quick`.

## Further checks:

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/url_checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: URLs-checker
uses: urlstechie/urlchecker-action@0.0.31
uses: urlstechie/urlchecker-action@master
with:
# A comma-separated list of file types to cover in the URL checks
file_types: .rst,.md,.py,.ipynb
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*.DS_Store
*.mat
*.csv
*.hidden

# don't ignore important .txt and .csv files
!requirements*
Expand Down
10 changes: 2 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,13 @@ ci:
autofix_commit_msg: "style: pre-commit fixes"

repos:
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.4
hooks:
- id: prettier
exclude: assets/js/webapp\.js

- repo: https://github.com/psf/black
rev: 22.12.0
rev: 23.1.0
hooks:
- id: black

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.237"
rev: "v0.0.253"
hooks:
- id: ruff
args: [--ignore=E741, --exclude=__init__.py]
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# [Unreleased](https://github.com/pybamm-team/PyBaMM/)

# [v23.2](https://github.com/pybamm-team/PyBaMM/tree/v23.2) - 2023-02-28

## Features

- Added an option for using a banded jacobian and sundials banded solvers for the IDAKLU solve [#2677](https://github.com/pybamm-team/PyBaMM/pull/2677)
- The "particle size" option can now be a tuple to allow different behaviour in each electrode([#2672](https://github.com/pybamm-team/PyBaMM/pull/2672)).
- Added temperature control to experiment class. [#2518](https://github.com/pybamm-team/PyBaMM/pull/2518)

## Bug fixes

- Fixed current_sigmoid_ocp to be valid for both electrodes ([#2719](https://github.com/pybamm-team/PyBaMM/pull/2719)).
- Fixed the length scaling for the first dimension of r-R plots ([#2663](https://github.com/pybamm-team/PyBaMM/pull/2663)).

# [v23.1](https://github.com/pybamm-team/PyBaMM/tree/v23.1) - 2023-01-31

## Features
Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ keywords:
- "expression tree"
- "python"
- "symbolic differentiation"
version: "23.1"
version: "23.2"
repository-code: "https://github.com/pybamm-team/PyBaMM"
title: "Python Battery Mathematical Modelling (PyBaMM)"
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ We use [GIT](https://en.wikipedia.org/wiki/Git) and [GitHub](https://en.wikipedi
1. Create an [issue](https://guides.github.com/features/issues/) where new proposals can be discussed before any coding is done.
2. Create a [branch](https://help.github.com/articles/creating-and-deleting-branches-within-your-repository/) of this repo (ideally on your own [fork](https://help.github.com/articles/fork-a-repo/)), where all changes will be made
3. Download the source code onto your local system, by [cloning](https://help.github.com/articles/cloning-a-repository/) the repository (or your fork of the repository).
4. [Install](https://pybamm.readthedocs.io/en/latest/install/install-from-source.html) PyBaMM with the developer options.
4. [Install](https://pybamm.readthedocs.io/en/latest/source/user_guide/installation/install-from-source.html) PyBaMM with the developer options.
5. [Test](#testing) if your installation worked, using the test script: `$ python run-tests.py --unit`.

You now have everything you need to start making changes!
Expand All @@ -61,7 +61,7 @@ Finally, if you really, really, _really_ love developing PyBaMM, have a look at

## Coding style guidelines

PyBaMM follows the [PEP8 recommendations](https://www.python.org/dev/peps/pep-0008/) for coding style. These are very common guidelines, and community tools have been developed to check how well projects implement them. We recommend using pre-commit hooks to check your code before committing it. See [installing and using pre-commit](https://github.com/pybamm-team/PyBaMM/blob/develop/CONTRIBUTING.md#installing-and-using-pre-commit) section for more details.
PyBaMM follows the [PEP8 recommendations](https://www.python.org/dev/peps/pep-0008/) for coding style. These are very common guidelines, and community tools have been developed to check how well projects implement them. We recommend using pre-commit hooks to check your code before committing it. See [installing and using pre-commit](#installing-and-using-pre-commit) section for more details.

### Ruff

Expand Down Expand Up @@ -307,7 +307,7 @@ PyBaMM is documented in several ways.

First and foremost, every method and every class should have a [docstring](https://www.python.org/dev/peps/pep-0257/) that describes in plain terms what it does, and what the expected input and output is.

These docstrings can be fairly simple, but can also make use of [reStructuredText](http://docutils.sourceforge.net/docs/user/rst/quickref.html), a markup language designed specifically for writing [technical documentation](https://en.wikipedia.org/wiki/ReStructuredText). For example, you can link to other classes and methods by writing ``:class:`pybamm.Model` `` and ``:meth:`run()` ``.
These docstrings can be fairly simple, but can also make use of [reStructuredText](http://docutils.sourceforge.net/docs/user/rst/quickref.html), a markup language designed specifically for writing [technical documentation](https://en.wikipedia.org/wiki/ReStructuredText). For example, you can link to other classes and methods by writing `` :class:`pybamm.Model` `` and `` :meth:`run()` ``.

In addition, we write a (very) small bit of documentation in separate reStructuredText files in the `docs` directory. Most of what these files do is simply import docstrings from the source code. But they also do things like add tables and indexes. If you've added a new class to a module, search the `docs` directory for that module's `.rst` file and add your class (in alphabetical order) to its index. If you've added a whole new module, copy-paste another module's file and add a link to your new file in the appropriate `index.rst` file.

Expand Down
Loading