Skip to content

Commit 4a7e409

Browse files
Merge pull request #2739 from pybamm-team/develop
Make release v23.2
2 parents 5003fcf + 81d8c35 commit 4a7e409

File tree

160 files changed

+1740
-1037
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+1740
-1037
lines changed

.all-contributorsrc

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
"login": "dalonsoa",
129129
"name": "Diego",
130130
"avatar_url": "https://avatars1.githubusercontent.com/u/6095790?v=4",
131-
"profile": "https://www.imperial.ac.uk/admin-services/ict/self-service/research-support/rcs/research-software-engineering/",
131+
"profile": "https://github.com/dalonsoa",
132132
"contributions": [
133133
"bug",
134134
"review",
@@ -549,9 +549,47 @@
549549
"name": "iatzak",
550550
"avatar_url": "https://avatars.githubusercontent.com/u/112731474?v=4",
551551
"profile": "https://github.com/iatzak",
552+
"contributions": [
553+
"doc",
554+
"bug",
555+
"code"
556+
]
557+
},
558+
{
559+
"login": "ayeankit",
560+
"name": "Ankit Kumar",
561+
"avatar_url": "https://avatars.githubusercontent.com/u/72691866?v=4",
562+
"profile": "https://github.com/ayeankit",
563+
"contributions": [
564+
"code"
565+
]
566+
},
567+
{
568+
"login": "dikwickley",
569+
"name": "Aniket Singh Rawat",
570+
"avatar_url": "https://avatars.githubusercontent.com/u/31622972?v=4",
571+
"profile": "https://aniketsinghrawat.vercel.app/",
572+
"contributions": [
573+
"code"
574+
]
575+
},
576+
{
577+
"login": "jeromtom",
578+
"name": "Jerom Palimattom Tom",
579+
"avatar_url": "https://avatars.githubusercontent.com/u/83979298?v=4",
580+
"profile": "https://github.com/jeromtom",
552581
"contributions": [
553582
"doc"
554583
]
584+
},
585+
{
586+
"login": "BradyPlanden",
587+
"name": "Brady Planden",
588+
"avatar_url": "https://avatars.githubusercontent.com/u/55357039?v=4",
589+
"profile": "http://bradyplanden.github.io",
590+
"contributions": [
591+
"example"
592+
]
555593
}
556594
],
557595
"contributorsPerLine": 7,

.github/ISSUE_TEMPLATE/new_parameter_set.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ body:
66
value: |
77
Third-party parameter sets can be added to PyBaMM by registering an entry
88
point with `pybamm-parameter-sets` as described in our
9-
[documentation](https://pybamm.readthedocs.io/en/latest/source/parameters/parameter_sets.html).
9+
[documentation](https://pybamm.readthedocs.io/en/latest/source/api/parameters/parameter_sets.html).
1010
- type: input
1111
id: parameter-set-url
1212
attributes:

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ Please add a line in the relevant section of [CHANGELOG.md](https://github.com/p
1414

1515
# Key checklist:
1616

17-
- [ ] No style issues: `$ pre-commit run`
18-
- [ ] All tests pass: `$ python run-tests.py --unit`
19-
- [ ] The documentation builds: `$ cd docs` and then `$ make clean; make html`
17+
- [ ] 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)
18+
- [ ] All tests pass: `$ python run-tests.py --all`
19+
- [ ] The documentation builds: `$ python run-tests.py --doctest`
2020

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

2323
## Further checks:
2424

.github/workflows/url_checker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Checkout
1414
uses: actions/checkout@v3
1515
- name: URLs-checker
16-
uses: urlstechie/urlchecker-action@0.0.31
16+
uses: urlstechie/urlchecker-action@master
1717
with:
1818
# A comma-separated list of file types to cover in the URL checks
1919
file_types: .rst,.md,.py,.ipynb

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*.DS_Store
77
*.mat
88
*.csv
9+
*.hidden
910

1011
# don't ignore important .txt and .csv files
1112
!requirements*

.pre-commit-config.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,13 @@ ci:
33
autofix_commit_msg: "style: pre-commit fixes"
44

55
repos:
6-
- repo: https://github.com/pre-commit/mirrors-prettier
7-
rev: v3.0.0-alpha.4
8-
hooks:
9-
- id: prettier
10-
exclude: assets/js/webapp\.js
11-
126
- repo: https://github.com/psf/black
13-
rev: 22.12.0
7+
rev: 23.1.0
148
hooks:
159
- id: black
1610

1711
- repo: https://github.com/charliermarsh/ruff-pre-commit
18-
rev: "v0.0.237"
12+
rev: "v0.0.253"
1913
hooks:
2014
- id: ruff
2115
args: [--ignore=E741, --exclude=__init__.py]

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# [Unreleased](https://github.com/pybamm-team/PyBaMM/)
22

3+
# [v23.2](https://github.com/pybamm-team/PyBaMM/tree/v23.2) - 2023-02-28
4+
5+
## Features
6+
7+
- 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)
8+
- 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)).
9+
- Added temperature control to experiment class. [#2518](https://github.com/pybamm-team/PyBaMM/pull/2518)
10+
11+
## Bug fixes
12+
13+
- Fixed current_sigmoid_ocp to be valid for both electrodes ([#2719](https://github.com/pybamm-team/PyBaMM/pull/2719)).
14+
- Fixed the length scaling for the first dimension of r-R plots ([#2663](https://github.com/pybamm-team/PyBaMM/pull/2663)).
15+
316
# [v23.1](https://github.com/pybamm-team/PyBaMM/tree/v23.1) - 2023-01-31
417

518
## Features

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ keywords:
2424
- "expression tree"
2525
- "python"
2626
- "symbolic differentiation"
27-
version: "23.1"
27+
version: "23.2"
2828
repository-code: "https://github.com/pybamm-team/PyBaMM"
2929
title: "Python Battery Mathematical Modelling (PyBaMM)"

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ We use [GIT](https://en.wikipedia.org/wiki/Git) and [GitHub](https://en.wikipedi
3737
1. Create an [issue](https://guides.github.com/features/issues/) where new proposals can be discussed before any coding is done.
3838
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
3939
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).
40-
4. [Install](https://pybamm.readthedocs.io/en/latest/install/install-from-source.html) PyBaMM with the developer options.
40+
4. [Install](https://pybamm.readthedocs.io/en/latest/source/user_guide/installation/install-from-source.html) PyBaMM with the developer options.
4141
5. [Test](#testing) if your installation worked, using the test script: `$ python run-tests.py --unit`.
4242

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

6262
## Coding style guidelines
6363

64-
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.
64+
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.
6565

6666
### Ruff
6767

@@ -307,7 +307,7 @@ PyBaMM is documented in several ways.
307307

308308
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.
309309

310-
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()` ``.
310+
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()` ``.
311311

312312
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.
313313

0 commit comments

Comments
 (0)