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.3 #2821

Merged
merged 362 commits into from
Apr 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
362 commits
Select commit Hold shift + click to select a range
7803bf3
changelog
valentinsulzer Feb 18, 2023
5302e86
fix half-cell bug
valentinsulzer Feb 18, 2023
21c8e4c
integration tests
valentinsulzer Feb 18, 2023
e337e62
half-cell test
valentinsulzer Feb 18, 2023
5fdee96
updating docs
valentinsulzer Feb 18, 2023
50b41f9
style
valentinsulzer Feb 18, 2023
07f1f57
coverage
valentinsulzer Feb 18, 2023
72f8688
coverage - parameters
valentinsulzer Feb 18, 2023
db705a3
more coverage
valentinsulzer Feb 18, 2023
917ed6f
scikit fem coverage
valentinsulzer Feb 18, 2023
ae30a97
tests and coverage
valentinsulzer Feb 18, 2023
908395a
working on examples
valentinsulzer Feb 19, 2023
b1f1742
Merge branch 'issue-2703-temperature' into issue-2418-dimensional
valentinsulzer Feb 19, 2023
c8416cc
fix plating example
valentinsulzer Feb 19, 2023
85ea886
Merge branch 'develop' into issue-2418-dimensional
valentinsulzer Feb 19, 2023
c21cdfb
working on examples
valentinsulzer Feb 19, 2023
c1780c6
remove typical electrolyte concentration and fix tests
valentinsulzer Feb 19, 2023
9dfe43a
fix lead-acid tests
valentinsulzer Feb 19, 2023
b92ba78
#2418 fix electrolyte concentration
valentinsulzer Feb 19, 2023
314cb12
Merge branch 'develop' into issue-2418-dimensional
valentinsulzer Feb 19, 2023
5337210
cracking model
valentinsulzer Feb 19, 2023
72351b3
tests and urls
valentinsulzer Feb 19, 2023
ee69970
latexify
valentinsulzer Feb 20, 2023
3708a08
fix examples
valentinsulzer Feb 20, 2023
b99b0fc
another fix attempt
valentinsulzer Feb 20, 2023
73b2a3c
rob comments
valentinsulzer Feb 21, 2023
d7ed340
Merge branch 'issue-2418-dimensional' of https://github.com/pybamm-te…
Feb 22, 2023
0bbab2e
Merge branch 'pybamm-team:develop' into 2439-autogenerate-docstrings
agriyakhetarpal Feb 23, 2023
ec9a315
Merge branch '2439-autogenerate-docstrings' of https://github.com/agr…
agriyakhetarpal Feb 23, 2023
339b745
Divided dl_cr by 3600 to replace deleted constant t0_cr
Feb 23, 2023
eb492fc
Merge pull request #2724 from DrSOKane/issue-2418-dimensional
valentinsulzer Feb 23, 2023
9ff550f
#2418 merge develop
valentinsulzer Feb 23, 2023
dc71db2
Update pybamm/CITATIONS.txt
valentinsulzer Feb 23, 2023
cbd2952
add doc_utils.py and configure Full Model
agriyakhetarpal Feb 24, 2023
f70f4cb
add **Extends** back to BaseModel
agriyakhetarpal Feb 24, 2023
01e29f5
Rename one_plus_dlnf_dlnc to thermodynamic_factor
jeromtom Feb 24, 2023
e18b5aa
Parameter check
jeromtom Feb 24, 2023
5bf384f
reorder **Extends** and Parameters sections for all files
agriyakhetarpal Feb 24, 2023
10ed25f
"1 + dlnf/dlnc" replaced with "Thermodynamic factor"
jeromtom Feb 24, 2023
28a100c
Update util.py
jeromtom Feb 24, 2023
154743c
Update util.rst
jeromtom Feb 24, 2023
7b355c3
Update pybamm/util.py
jeromtom Feb 24, 2023
c1c69a5
Update parameter_values.py
jeromtom Feb 24, 2023
b56e345
Update docs/source/api/util.rst
jeromtom Feb 24, 2023
f898196
Update parameter_values.py
jeromtom Feb 24, 2023
c2aab67
rename decorators
agriyakhetarpal Feb 24, 2023
948da19
unit tests for doc_utils.py: initial draft
agriyakhetarpal Feb 24, 2023
0026996
this should fix ubuntu build
agriyakhetarpal Feb 25, 2023
f4ac093
Update parameter_values.py
jeromtom Feb 25, 2023
584fae9
Update util.py
jeromtom Feb 25, 2023
c9072bb
Update util.py
jeromtom Feb 25, 2023
17a20d4
Update util.py
jeromtom Feb 25, 2023
deba2f4
Revert "Update util.py"
jeromtom Feb 25, 2023
1079367
Update util.py
jeromtom Feb 26, 2023
19667b8
add lychee workflow
agriyakhetarpal Feb 26, 2023
8e93d0d
pin version with sha-256 hash for stable v1.6.1
agriyakhetarpal Feb 27, 2023
457f30e
add config file
agriyakhetarpal Feb 27, 2023
68cf5fd
add file formats to be checked
agriyakhetarpal Feb 27, 2023
333d1e8
use github API token because of timeouts
agriyakhetarpal Feb 27, 2023
3dfb9c0
oops, fix formatting error
agriyakhetarpal Feb 27, 2023
9d8c889
pin version and add cache job
agriyakhetarpal Feb 27, 2023
4c1d2cc
fix formatting
agriyakhetarpal Feb 27, 2023
b904f30
fix formatting again
agriyakhetarpal Feb 27, 2023
c396db5
reorder jobs schema, should fix run
agriyakhetarpal Feb 27, 2023
2897671
add other useful variables
valentinsulzer Feb 28, 2023
0483f46
Merge branch 'develop' into issue-2418-dimensional
valentinsulzer Feb 28, 2023
5816493
#2418 changelog
valentinsulzer Feb 28, 2023
0a3a616
Merge branch 'issue-2418-dimensional' into other-useful-variables
valentinsulzer Mar 1, 2023
7edc595
Merge branch 'pybamm-team:develop' into Issue#2728-Update-the-docstri…
jeromtom Mar 1, 2023
ac1b58c
Optional arguments rendered in separate lines
jeromtom Mar 1, 2023
847d317
fix voltage component plot
valentinsulzer Mar 1, 2023
b2f8b62
Merge pull request #2419 from pybamm-team/issue-2418-dimensional
valentinsulzer Mar 1, 2023
5a20808
update CCCV example to be more standard
valentinsulzer Mar 2, 2023
461ccb1
add voltage components example
valentinsulzer Mar 2, 2023
f5490a3
Merge branch 'develop' into other-useful-variables
valentinsulzer Mar 2, 2023
314810a
changelog
valentinsulzer Mar 2, 2023
fbb7b80
Fixing indentation error
jeromtom Mar 2, 2023
1404074
Merge pull request #2729 from jeromtom/Issue#2728-Update-the-docstrin…
valentinsulzer Mar 2, 2023
ce7d117
fix some tests
valentinsulzer Mar 2, 2023
222808a
fix tests
valentinsulzer Mar 2, 2023
34f7c37
fix output tests
valentinsulzer Mar 2, 2023
ffe3028
coverage
valentinsulzer Mar 2, 2023
c27f8af
docs
valentinsulzer Mar 2, 2023
51745b3
exclude changelog from being checked
agriyakhetarpal Mar 4, 2023
0cfb2b3
and delete old URL checker workflow
agriyakhetarpal Mar 4, 2023
37aee21
Merge branch 'develop' into 2439-autogenerate-docstrings
agriyakhetarpal Mar 4, 2023
7eecb68
style: pre-commit fixes
pre-commit-ci[bot] Mar 4, 2023
e782c3e
fix cache
agriyakhetarpal Mar 5, 2023
9cb4909
reduce max concurrency from 128 to 32
agriyakhetarpal Mar 5, 2023
a366d9a
accept status code 429 with max concurrency 128
agriyakhetarpal Mar 5, 2023
8ee9cbc
accept both 200 and 429
agriyakhetarpal Mar 5, 2023
cc35827
Merge branch 'pybamm-team:develop' into lychee-URL-checking
agriyakhetarpal Mar 5, 2023
cc880c7
Update examples/scripts/compare_lithium_ion.py
valentinsulzer Mar 6, 2023
ddfeafd
rename variables
valentinsulzer Mar 6, 2023
388d136
Bug Fix
jeromtom Mar 6, 2023
6a3c26c
fix examples
valentinsulzer Mar 6, 2023
9d5f5a1
Merge pull request #2740 from pybamm-team/other-useful-variables
valentinsulzer Mar 6, 2023
a09fc8d
save diffusivity variables
rtimms Mar 6, 2023
e79012d
chore: update pre-commit hooks
pre-commit-ci[bot] Mar 7, 2023
fc86b7b
retry accepting 200 and 429
agriyakhetarpal Mar 7, 2023
af79897
fix accept status codes
agriyakhetarpal Mar 7, 2023
d751e7b
Move lychee args to correct position
mre Mar 7, 2023
961a12f
Merge pull request #1 from mre/patch-1
agriyakhetarpal Mar 7, 2023
67d42b6
Merge branch 'pybamm-team:develop' into lychee-URL-checking
agriyakhetarpal Mar 7, 2023
998dc1a
changelog
agriyakhetarpal Mar 7, 2023
17c8d36
Update NCA_Kim2011.py
1836005678 Mar 7, 2023
31357ff
style: pre-commit fixes
pre-commit-ci[bot] Mar 7, 2023
f1b53d4
Merge pull request #2749 from pybamm-team/pre-commit-ci-update-config
valentinsulzer Mar 7, 2023
5272b4c
Update NCA_Kim2011.py
1836005678 Mar 7, 2023
8fcd5ff
trigger on push only on main and develop
Saransh-cpp Mar 7, 2023
e0f459a
exclude local links and pybamm twitter handle
agriyakhetarpal Mar 7, 2023
f45f4a5
Merge pull request #2748 from pybamm-team/extra-particle-variables
rtimms Mar 7, 2023
8e88fb2
fix links for license file and match ScienceDirect and DOI links with…
agriyakhetarpal Mar 7, 2023
589a9c0
Update lychee_url_checker.yml
agriyakhetarpal Mar 7, 2023
2c97aae
fix regex
agriyakhetarpal Mar 7, 2023
fc1b7a3
remove escape characters
agriyakhetarpal Mar 7, 2023
fb82592
Create .lycheeignore
agriyakhetarpal Mar 8, 2023
7347b6a
Merge branch 'develop' into 2439-autogenerate-docstrings
agriyakhetarpal Mar 8, 2023
fe22c94
add sphinx extension to automatically add docstrings extends label
agriyakhetarpal Mar 8, 2023
28f593b
Merge branch '2439-autogenerate-docstrings' of https://github.com/agr…
agriyakhetarpal Mar 8, 2023
9ba013e
remove Extends label from all docstrings
agriyakhetarpal Mar 8, 2023
b05efa1
move extension outside of docs/, fix ubuntu build
agriyakhetarpal Mar 8, 2023
3078360
Merge pull request #2734 from agriyakhetarpal/lychee-URL-checking
valentinsulzer Mar 8, 2023
6decdad
#2666 put t_+ back inside div, loosen tolerance for test
valentinsulzer Mar 9, 2023
6f9cf0e
remove old url check
valentinsulzer Mar 9, 2023
0e5c883
#2666 integration tests
valentinsulzer Mar 9, 2023
097c3e0
#2760 try offsetting step
valentinsulzer Mar 10, 2023
7c3c999
add ruff cache to gitignore and fix ubuntu build
agriyakhetarpal Mar 10, 2023
1dc5266
Merge pull request #2759 from pybamm-team/remove_old_url_check
valentinsulzer Mar 10, 2023
fe13b02
Merge pull request #2597 from agriyakhetarpal/2439-autogenerate-docst…
valentinsulzer Mar 10, 2023
3b74c69
#2763 start improving latexify
valentinsulzer Mar 10, 2023
e32672a
improve latexify for DFN
valentinsulzer Mar 10, 2023
7b29fc3
added test and fixed grammar
jeromtom Mar 11, 2023
1fec195
Fixed spacing and changes wording
jeromtom Mar 11, 2023
7a8b386
Merge develop
jeromtom Mar 11, 2023
82797a2
fix unit tests
valentinsulzer Mar 12, 2023
6079035
fix parameter name
jeromtom Mar 12, 2023
38352d2
fix parameters in lithium ion and added test using assertRaisesRegex
jeromtom Mar 12, 2023
aac7bbf
fix parameter name in lithium ion parameters
jeromtom Mar 12, 2023
d09a64a
Rewriting test using assertRaisesRegex
jeromtom Mar 12, 2023
ac0acd6
fixed tests and checks
jeromtom Mar 12, 2023
99b9508
docs: update README.md [skip ci]
allcontributors[bot] Mar 12, 2023
e5dd46f
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Mar 12, 2023
5b64b2b
Merge pull request #2727 from jeromtom/Issue-#2726-Update-parameter
valentinsulzer Mar 12, 2023
9c6eb00
Update CHANGELOG.md
valentinsulzer Mar 12, 2023
063586a
Merge pull request #2767 from pybamm-team/all-contributors/add-jeromtom
valentinsulzer Mar 12, 2023
797d000
change name of active version in css rules
agriyakhetarpal Mar 12, 2023
f8bfd32
configure version switcher json, display, and styling
agriyakhetarpal Mar 12, 2023
ff37ac8
update versions.json at releases via update_version.py
agriyakhetarpal Mar 12, 2023
b6d9f0b
style: pre-commit fixes
pre-commit-ci[bot] Mar 12, 2023
54a0d7b
merge develop
valentinsulzer Mar 13, 2023
ac69721
Merge branch 'develop' into issue-2666-electrolyte_conservation
valentinsulzer Mar 13, 2023
75bf422
add links and theme switch
agriyakhetarpal Mar 13, 2023
b0e4c04
add static readthedocs link for versions.json
agriyakhetarpal Mar 13, 2023
cabecf0
Merge pull request #2769 from agriyakhetarpal/fix-version-switcher
valentinsulzer Mar 13, 2023
195a721
Merge branch 'develop' into thermodynamic-factor-changelog
valentinsulzer Mar 13, 2023
190febe
fix formatting
valentinsulzer Mar 13, 2023
a38e1a8
Merge branch 'develop' into issue-2763-latexify
valentinsulzer Mar 13, 2023
89f904f
changelog
valentinsulzer Mar 13, 2023
c63671d
Merge pull request #2768 from pybamm-team/thermodynamic-factor-changelog
valentinsulzer Mar 13, 2023
b052130
Merge branch 'develop' into issue-2760-step
valentinsulzer Mar 13, 2023
6946efa
#2760 update offset
valentinsulzer Mar 13, 2023
11024b5
#2760 update error message to use offset from settings
valentinsulzer Mar 13, 2023
0607186
chore: update pre-commit hooks
pre-commit-ci[bot] Mar 14, 2023
124efe5
Merge pull request #2774 from pybamm-team/pre-commit-ci-update-config
valentinsulzer Mar 14, 2023
acffb16
#2760 fix tests
valentinsulzer Mar 14, 2023
244b22e
batt-carnot
aabills Mar 15, 2023
3ef943d
make fail
aabills Mar 15, 2023
3842558
Method for calculating theoretical efficiency
aabills Mar 15, 2023
a749f82
update changelog
aabills Mar 15, 2023
617549c
whoops, forgot the ol debug print statement
aabills Mar 15, 2023
fc5da27
#2760 integration test
valentinsulzer Mar 15, 2023
bde2c60
Merge branch 'develop' into issue-2763-latexify
valentinsulzer Mar 15, 2023
1c3efc3
coverage
valentinsulzer Mar 15, 2023
054da20
coverage
valentinsulzer Mar 15, 2023
6c1c339
try reducing current in model options notebook
valentinsulzer Mar 15, 2023
129274a
Merge branch 'develop' into issue-2666-electrolyte_conservation
valentinsulzer Mar 15, 2023
0fa49e2
edits
aabills Mar 15, 2023
84b85cb
remove stoich and ne params, hardcode instead
valentinsulzer Mar 15, 2023
4241404
changelog
valentinsulzer Mar 15, 2023
c0d394e
Merge pull request #2777 from abillscmu/batt-carnot
valentinsulzer Mar 15, 2023
c5073e7
fix example
valentinsulzer Mar 15, 2023
6bad548
fix example
valentinsulzer Mar 15, 2023
c79c5cb
try fixing scikits tests
valentinsulzer Mar 15, 2023
7bef9ec
make ElectrodeSOH.solve output {str: float} dict instead of Solution}
valentinsulzer Mar 15, 2023
460e684
#2666 changelog
valentinsulzer Mar 15, 2023
09944fd
Merge pull request #2758 from pybamm-team/issue-2666-electrolyte_cons…
valentinsulzer Mar 15, 2023
eccdd2e
Merge branch 'develop' into issue-2760-step
valentinsulzer Mar 16, 2023
509bc4a
tolerances
valentinsulzer Mar 16, 2023
e7187d4
Merge branch 'develop' into issue-2763-latexify
valentinsulzer Mar 16, 2023
3752b4c
Merge branch 'develop' into electrode-soh-solve-output
valentinsulzer Mar 16, 2023
d820e11
example and changelog
valentinsulzer Mar 16, 2023
e9f68d7
change step offset to 1e-9
valentinsulzer Mar 16, 2023
7e2e0ed
fix error test
valentinsulzer Mar 16, 2023
4566dc0
coverage
valentinsulzer Mar 16, 2023
b483d9c
Merge pull request #2773 from pybamm-team/issue-2760-step
valentinsulzer Mar 16, 2023
e7e99b7
Merge branch 'develop' into remove-unneeded-params
valentinsulzer Mar 16, 2023
54d1771
changelog
valentinsulzer Mar 16, 2023
a0c0ab2
add energy to summary vars
aabills Mar 16, 2023
d56e062
done...
aabills Mar 16, 2023
566e3d0
fix changelog
aabills Mar 16, 2023
f45829b
Merge pull request #2778 from pybamm-team/remove-unneeded-params
valentinsulzer Mar 16, 2023
5465052
Merge pull request #2779 from pybamm-team/electrode-soh-solve-output
valentinsulzer Mar 16, 2023
2f7965f
do not review this commit
aabills Mar 16, 2023
25f2997
Merge branch 'pybamm-team:develop' into energy-summary
aabills Mar 16, 2023
cbd3565
fix test
aabills Mar 17, 2023
7ff45ec
Merge pull request #2781 from abillscmu/energy-summary
valentinsulzer Mar 17, 2023
18aac33
Merge branch 'develop' into patch-2
valentinsulzer Mar 19, 2023
27905ac
fix test
valentinsulzer Mar 19, 2023
ae2b91e
fix formatting
valentinsulzer Mar 19, 2023
d773b8d
coverage
valentinsulzer Mar 19, 2023
37d7045
Merge branch 'develop' into issue-2763-latexify
valentinsulzer Mar 19, 2023
c19fbed
coverage
valentinsulzer Mar 19, 2023
9d06ea3
Merge pull request #2751 from 1836005678/patch-2
valentinsulzer Mar 19, 2023
256269c
#2763 changelog
valentinsulzer Mar 19, 2023
9800bbd
Merge branch 'develop' into issue-2763-latexify
valentinsulzer Mar 19, 2023
e59bb51
Merge pull request #2764 from pybamm-team/issue-2763-latexify
valentinsulzer Mar 19, 2023
a64f788
chore: update pre-commit hooks
pre-commit-ci[bot] Mar 20, 2023
1b7959e
#2793 ruff
rtimms Mar 21, 2023
fca4dea
#2793 update test
rtimms Mar 21, 2023
c36c2bd
Merge pull request #2795 from pybamm-team/issue-2793-input-bounds
rtimms Mar 22, 2023
05f622c
Merge pull request #2794 from pybamm-team/pre-commit-ci-update-config
valentinsulzer Mar 22, 2023
12818f1
add new esoh variables from dVdQ paper
valentinsulzer Mar 24, 2023
6bbf8ea
changelog
valentinsulzer Mar 24, 2023
c78bed2
Merge pull request #2807 from pybamm-team/dvdq
valentinsulzer Mar 26, 2023
0f0caff
docs: update README.md [skip ci]
allcontributors[bot] Mar 27, 2023
65284f1
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Mar 27, 2023
6f81b35
Fix use of last-state as starting-solution in Simulation.solve()
jsbrittain Mar 27, 2023
28504ae
chore: update pre-commit hooks
pre-commit-ci[bot] Mar 28, 2023
28e2382
Update version to v23.3
Mar 28, 2023
ac47b03
Add changelog entry
jsbrittain Mar 28, 2023
25936fc
Revert lru_cache to functional form; Add lru-dict for integrators
jsbrittain Mar 27, 2023
04170e3
Improve LRUDict test coverage/quality
jsbrittain Mar 28, 2023
5d570ed
Merge pull request #2822 from pybamm-team/issue-2788-last-state
martinjrobins Mar 29, 2023
5551aba
docs: update README.md [skip ci]
allcontributors[bot] Mar 29, 2023
6444e27
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Mar 29, 2023
8232ac4
Merge pull request #2824 from pybamm-team/all-contributors/add-jsbrit…
martinjrobins Mar 29, 2023
edd9c9c
Merge branch 'develop' into all-contributors/add-arjxn-py
brosaplanella Mar 29, 2023
49a1b90
Specify default number of retained iterators in Casadi solver; reorde…
jsbrittain Mar 29, 2023
a8bfe24
Merge pull request #2818 from pybamm-team/pre-commit-ci-update-config
valentinsulzer Mar 29, 2023
2d561b7
Merge pull request #2823 from pybamm-team/issue-1442-ram
martinjrobins Mar 29, 2023
988ceeb
Removed deprecated .readthedocs.yml
arjxn-py Mar 25, 2023
bae47fd
Added .readthedocs.yaml with build.tools.python
arjxn-py Mar 25, 2023
0623359
Added os key for docs build
arjxn-py Mar 25, 2023
790b4a6
Merge pull request #2817 from pybamm-team/all-contributors/add-arjxn-py
rtimms Mar 30, 2023
82dfabd
Merge pull request #2812 from arjxn-py/Issue-#2804-Deprecate-.readthe…
brosaplanella Mar 30, 2023
cc1bff5
Merge pull request #2820 from pybamm-team/create-pull-request/patch-c…
brosaplanella Mar 31, 2023
8a51a42
rename Open-circuit voltage to Bulk open-circuit voltage
valentinsulzer Mar 31, 2023
bf594c6
changelog
valentinsulzer Mar 31, 2023
08dc8f7
Merge pull request #2845 from pybamm-team/remove-ocv
valentinsulzer Mar 31, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
23 changes: 22 additions & 1 deletion .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,9 @@
"avatar_url": "https://avatars.githubusercontent.com/u/83979298?v=4",
"profile": "https://github.com/jeromtom",
"contributions": [
"doc"
"doc",
"code",
"test"
]
},
{
Expand All @@ -590,6 +592,25 @@
"contributions": [
"example"
]
},
{
"login": "jsbrittain",
"name": "jsbrittain",
"avatar_url": "https://avatars.githubusercontent.com/u/98161205?v=4",
"profile": "http://www.jsbrittain.com/",
"contributions": [
"code",
"test"
]
},
{
"login": "arjxn-py",
"name": "Arjun",
"avatar_url": "https://avatars.githubusercontent.com/u/104268427?v=4",
"profile": "https://github.com/arjxn-py",
"contributions": [
"infra"
]
}
],
"contributorsPerLine": 7,
Expand Down
55 changes: 55 additions & 0 deletions .github/workflows/lychee_url_checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Check URLs with Lychee

on:
push:
branches:
- main
- develop
pull_request:
schedule:
# Run everyday at 3 am UTC
- cron: "0 3 * * *"

jobs:
linkChecker:
runs-on: ubuntu-latest
steps:

# cache Lychee results to avoid hitting rate limits
- name: Restore lychee cache
uses: actions/cache@v3
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-

# check URLs with Lychee
- uses: actions/checkout@v3

# use stable version for now to avoid breaking changes
- name: Lychee URL checker
uses: lycheeverse/lychee-action@v1.6.1
with:
# arguments with file types to check
args: >-
--cache
--no-progress
--max-cache-age 2d
--timeout 10
--max-retries 5
--skip-missing
--exclude-loopback
--exclude https://twitter.com/pybamm_
--exclude "https://doi\.org|www.sciencedirect\.com/*"
--accept 200,429
--exclude-path ./CHANGELOG.md
--exclude-path ./scripts/update_version.py
'./**/*.rst'
'./**/*.md'
'./**/*.py'
'./**/*.ipynb'
# fail the action on broken links
fail: true
env:
# to be used in case rate limits are surpassed
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
34 changes: 0 additions & 34 deletions .github/workflows/url_checker.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ dist/
coverage.xml
htmlcov/

# virtual enviroment
# virtual environment
env/
venv/
venv3.5/
Expand All @@ -74,6 +74,7 @@ lib64
share/
pyvenv.cfg
.vscode
.ruff_cache/

# sundials
sundials
Expand Down
17 changes: 17 additions & 0 deletions .lycheeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# a list of links/files to be ignored by lychee link checker (see workflow file)

# Errors in docs/source/user_guide/getting_started.md
file:///home/runner/work/PyBaMM/PyBaMM/docs/source/user_guide/api_docs

# Errors in docs/source/user_guide/fundamentals/index.md
file:///home/runner/work/PyBaMM/PyBaMM/docs/source/user_guide/fundamentals/base_battery_model
file:///home/runner/work/PyBaMM/PyBaMM/docs/source/user_guide/fundamentals/parameter_sets
file:///home/runner/work/PyBaMM/PyBaMM/docs/source/user_guide/fundamentals/quick_plot
file:///home/runner/work/PyBaMM/PyBaMM/docs/source/user_guide/fundamentals/plot_voltage_components

# Errors in docs/source/user_guide/index.md
file:///home/runner/work/PyBaMM/PyBaMM/docs/source/user_guide/api_docs

# Errors in examples/notebooks/README.md
file:///home/runner/work/PyBaMM/PyBaMM/examples/notebooks/using-submodels.ipynb
file:///home/runner/work/PyBaMM/PyBaMM/examples/notebooks/create-model.ipynb
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:
- id: black

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.253"
rev: "v0.0.259"
hooks:
- id: ruff
args: [--ignore=E741, --exclude=__init__.py]
29 changes: 29 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# .readthedocs.yml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Build documentation in the docs/ directory with Sphinx
sphinx:
builder: html
configuration: docs/conf.py
fail_on_warning: false

# Set the version of Python and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.8"
# You can also specify other tool versions:
# nodejs: "19"
# rust: "1.64"
# golang: "1.19"

# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: docs/requirements.txt
- method: pip
path: .
20 changes: 0 additions & 20 deletions .readthedocs.yml

This file was deleted.

41 changes: 38 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,47 @@
# [Unreleased](https://github.com/pybamm-team/PyBaMM/)

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

## Features

- Added option to limit the number of integrators stored in CasadiSolver, which is particularly relevant when running simulations back-to-back [#2823](https://github.com/pybamm-team/PyBaMM/pull/2823)
- Added new variables, related to electrode balance, for the `ElectrodeSOH` model ([#2807](https://github.com/pybamm-team/PyBaMM/pull/2807))
- Added method to calculate maximum theoretical energy. ([#2777](https://github.com/pybamm-team/PyBaMM/pull/2777)) and add to summary variables ([#2781](https://github.com/pybamm-team/PyBaMM/pull/2781))
- Renamed "Terminal voltage [V]" to just "Voltage [V]". "Terminal voltage [V]" can still be used and will return the same value as "Voltage [V]". ([#2740](https://github.com/pybamm-team/PyBaMM/pull/2740))
- Added "Negative electrode surface potential difference at separator interface [V]", which is the value of the surface potential difference (`phi_s - phi_e`) at the anode/separator interface, commonly controlled in fast-charging algorithms to avoid plating. Also added "Positive electrode surface potential difference at separator interface [V]". ([#2740](https://github.com/pybamm-team/PyBaMM/pull/2740))
- Added "Bulk open-circuit voltage [V]", which is the open-circuit voltage as calculated from the bulk particle concentrations. The old variable "Measured open circuit voltage [V]", which referred to the open-circuit potential as calculated from the surface particle concentrations, has been renamed to "Surface open-circuit voltage [V]". ([#2740](https://github.com/pybamm-team/PyBaMM/pull/2740)) "Bulk open-circuit voltage [V]" was briefly named "Open-circuit voltage [V]", but this was changed in ([#2845](https://github.com/pybamm-team/PyBaMM/pull/2845))
- Added an example for `plot_voltage_components`, explaining what the different voltage components are. ([#2740](https://github.com/pybamm-team/PyBaMM/pull/2740))

## Bug fixes

- Fixed excessive RAM consumption when running multiple simulations ([#2823](https://github.com/pybamm-team/PyBaMM/pull/2823))
- Fixed a bug where variable bounds could not contain `InputParameters` ([#2795](https://github.com/pybamm-team/PyBaMM/pull/2795))
- Improved `model.latexify()` to have a cleaner and more readable output ([#2764](https://github.com/pybamm-team/PyBaMM/pull/2764))
- Fixed electrolyte conservation in the case of concentration-dependent transference number ([#2758](https://github.com/pybamm-team/PyBaMM/pull/2758))
- Fixed `plot_voltage_components` so that the sum of overpotentials is now equal to the voltage ([#2740](https://github.com/pybamm-team/PyBaMM/pull/2740))
- Fixed use of last_state as starting_solution in Simulation.solve() ([#2822](https://github.com/pybamm-team/PyBaMM/pull/2822))

## Optimizations

- Migrated to [Lychee](https://github.com/lycheeverse/lychee-action) workflow for checking URLs ([#2734](https://github.com/pybamm-team/PyBaMM/pull/2734))

## Breaking changes

- `ElectrodeSOH.solve` now returns a `{str: float}` dict instead of a `pybamm.Solution` object (to avoid having to do `.data[0]` every time). In any code that uses `sol = ElectrodeSOH.solve()`, `sol[key].data[0]` should be replaced with `sol[key]`. ([#2779](https://github.com/pybamm-team/PyBaMM/pull/2779))
- Removed "... cation signed stoichiometry" and "... electrons in reaction" parameters, they are now hardcoded. ([#2778](https://github.com/pybamm-team/PyBaMM/pull/2778))
- When using `solver.step()`, the first time point in the step is shifted by `pybamm.settings.step_start_offset` (default 1 ns) to avoid having duplicate times in the solution steps from the end of one step and the start of the next. ([#2773](https://github.com/pybamm-team/PyBaMM/pull/2773))
- Renamed "Measured open circuit voltage [V]" to "Surface open-circuit voltage [V]". This variable was calculated from surface particle concentrations, and hence "hid" the overpotential from particle gradients. The new variable "Bulk open-circuit voltage [V]" is calculated from bulk particle concentrations instead. ([#2740](https://github.com/pybamm-team/PyBaMM/pull/2740))
- Renamed all references to "open circuit" to be "open-circuit" instead. ([#2740](https://github.com/pybamm-team/PyBaMM/pull/2740))
- Renamed parameter "1 + dlnf/dlnc" to "Thermodynamic factor". ([#2727](https://github.com/pybamm-team/PyBaMM/pull/2727))
- All PyBaMM models are now dimensional. This has been benchmarked against dimensionless models and found to give around the same solve time. Implementing dimensional models greatly reduces the barrier to entry for adding new models. However, this comes with several breaking changes: (i) the `timescale` and `length_scales` attributes of a model have been removed (they are no longer needed) (ii) several dimensionless variables are no longer defined, but the corresponding dimensional variables can still be accessed by adding the units to the name (iii) some parameters used only for non-dimensionalization, such as "Typical current [A]", have been removed ([#2419](https://github.com/pybamm-team/PyBaMM/pull/2419))

# [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)
- 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

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.2"
version: "23.3"
repository-code: "https://github.com/pybamm-team/PyBaMM"
title: "Python Battery Mathematical Modelling (PyBaMM)"
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ Editable notebooks are made available using [Google Colab](https://colab.researc
GitHub does some magic with particular filenames. In particular:

- The first page people see when they go to [our GitHub page](https://github.com/pybamm-team/PyBaMM) displays the contents of [README.md](README.md), which is written in the [Markdown](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet) format. Some guidelines can be found [here](https://help.github.com/articles/about-readmes/).
- The license for using PyBaMM is stored in [LICENSE](LICENSE), and [automatically](https://help.github.com/articles/adding-a-license-to-a-repository/) linked to by GitHub.
- The license for using PyBaMM is stored in [LICENSE](LICENSE.txt), and [automatically](https://help.github.com/articles/adding-a-license-to-a-repository/) linked to by GitHub.
- This file, [CONTRIBUTING.md](CONTRIBUTING.md) is recognised as the contribution guidelines and a link is [automatically](https://github.com/blog/1184-contributing-guidelines) displayed when new issues or pull requests are created.

## Acknowledgements
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
[![black code style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-53-orange.svg)](#-contributors)
[![All Contributors](https://img.shields.io/badge/all_contributors-54-orange.svg)](#-contributors)
<!-- ALL-CONTRIBUTORS-BADGE:END -->

</div>
Expand Down Expand Up @@ -247,8 +247,10 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<tr>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/ayeankit"><img src="https://avatars.githubusercontent.com/u/72691866?v=4?s=100" width="100px;" alt="Ankit Kumar"/><br /><sub><b>Ankit Kumar</b></sub></a><br /><a href="https://github.com/pybamm-team/PyBaMM/commits?author=ayeankit" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://aniketsinghrawat.vercel.app/"><img src="https://avatars.githubusercontent.com/u/31622972?v=4?s=100" width="100px;" alt="Aniket Singh Rawat"/><br /><sub><b>Aniket Singh Rawat</b></sub></a><br /><a href="https://github.com/pybamm-team/PyBaMM/commits?author=dikwickley" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/jeromtom"><img src="https://avatars.githubusercontent.com/u/83979298?v=4?s=100" width="100px;" alt="Jerom Palimattom Tom"/><br /><sub><b>Jerom Palimattom Tom</b></sub></a><br /><a href="https://github.com/pybamm-team/PyBaMM/commits?author=jeromtom" title="Documentation">📖</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/jeromtom"><img src="https://avatars.githubusercontent.com/u/83979298?v=4?s=100" width="100px;" alt="Jerom Palimattom Tom"/><br /><sub><b>Jerom Palimattom Tom</b></sub></a><br /><a href="https://github.com/pybamm-team/PyBaMM/commits?author=jeromtom" title="Documentation">📖</a> <a href="https://github.com/pybamm-team/PyBaMM/commits?author=jeromtom" title="Code">💻</a> <a href="https://github.com/pybamm-team/PyBaMM/commits?author=jeromtom" title="Tests">⚠️</a></td>
<td align="center" valign="top" width="14.28%"><a href="http://bradyplanden.github.io"><img src="https://avatars.githubusercontent.com/u/55357039?v=4?s=100" width="100px;" alt="Brady Planden"/><br /><sub><b>Brady Planden</b></sub></a><br /><a href="#example-BradyPlanden" title="Examples">💡</a></td>
<td align="center" valign="top" width="14.28%"><a href="http://www.jsbrittain.com/"><img src="https://avatars.githubusercontent.com/u/98161205?v=4?s=100" width="100px;" alt="jsbrittain"/><br /><sub><b>jsbrittain</b></sub></a><br /><a href="https://github.com/pybamm-team/PyBaMM/commits?author=jsbrittain" title="Code">💻</a> <a href="https://github.com/pybamm-team/PyBaMM/commits?author=jsbrittain" title="Tests">⚠️</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/arjxn-py"><img src="https://avatars.githubusercontent.com/u/104268427?v=4?s=100" width="100px;" alt="Arjun"/><br /><sub><b>Arjun</b></sub></a><br /><a href="#infra-arjxn-py" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
</tr>
</tbody>
</table>
Expand Down
17 changes: 10 additions & 7 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
author = "The PyBaMM Team"

# The short X.Y version
version = "23.2"
version = "23.3"
# The full version, including alpha/beta/rc tags
release = version

Expand All @@ -50,6 +50,7 @@
"sphinx_design",
"sphinx_copybutton",
"myst_parser",
"sphinx_extend_parent",
]


Expand Down Expand Up @@ -135,12 +136,14 @@
"url": "https://github.com/pybamm-team/PyBaMM/tree/develop/CONTRIBUTING.md",
},
],
# Add light/dark mode and documentation version switcher:
# "navbar_end": ["theme-switcher", "version-switcher", "navbar-icon-links"],
# "switcher": {
# "version_match": switcher_version,
# "json_url": "https://numpy.org/doc/_static/versions.json",
# },
"switcher": {
"version_match": release,
"json_url": "https://pybamm.readthedocs.io/en/latest/_static/versions.json", # noqa: E501
},
# turn to False to not fail build if json_url is not found
"check_switcher": True,
# for dark mode toggle, version switcher, and social media links
"navbar_end": ["theme-switcher", "version-switcher", "navbar-icon-links"],
"use_edit_page_button": True,
}

Expand Down
15 changes: 7 additions & 8 deletions docs/source/_static/pybamm.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ h3 {

/* Style the active version button.

- dev: orange
- latest: orange
- stable: green
- old, PR: red

Expand All @@ -48,24 +48,23 @@ Wong, B. Points of view: Color blindness.
Nat Methods 8, 441 (2011). https://doi.org/10.1038/nmeth.1618
*/

/* If the active version has the name "dev", style it orange */
#version_switcher_button[data-active-version-name*="dev"] {
/* If the active version has the name "latest", style it orange */
.version-switcher__button[data-active-version-name*="latest"] {
background-color: #e69f00;
border-color: #e69f00;
color: #000000;
}

/* green for `stable` */
#version_switcher_button[data-active-version-name*="stable"] {
.version-switcher__button[data-active-version-name*="stable"] {
background-color: #009e73;
border-color: #009e73;
}

/* red for `old` */
#version_switcher_button:not(
[data-active-version-name*="stable"],
[data-active-version-name*="dev"],
[data-active-version-name=""]
.version-switcher__button:not(
[data-active-version-name*="latest"],
[data-active-version-name*="stable"]
) {
background-color: #980f0f;
border-color: #980f0f;
Expand Down
Loading