Skip to content

Commit 1395965

Browse files
Merge branch 'main' into explanation_performance
2 parents e96fc93 + 5a0df96 commit 1395965

87 files changed

Lines changed: 2162 additions & 1306 deletions

File tree

Some content is hidden

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

.github/ci/recipe.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ requirements:
4646
- holoviews >= 1.22.0 # https://github.com/prefix-dev/rattler-build/issues/2326
4747
- pooch >=1.8.0
4848
- polars >=1.31.0
49+
- tabulate >=0.10.0
4950

5051
tests:
5152
- python:

.github/workflows/additional.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
env:
1616
COLUMNS: 120
1717
steps:
18-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
18+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
1919
with:
2020
persist-credentials: false
2121
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
@@ -35,7 +35,7 @@ jobs:
3535
contents: read
3636

3737
steps:
38-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
38+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
3939
with:
4040
persist-credentials: false
4141
- uses: prefix-dev/setup-pixi@5185adfbffb4bd703da3010310260805d89ebb11 # v0.9.6

.github/workflows/ci.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
github.repository == 'Parcels-code/Parcels'
2727
&& (github.event_name == 'push' || github.event_name == 'pull_request')
2828
steps:
29-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
29+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
3030
with:
3131
fetch-depth: 2
3232
persist-credentials: false
@@ -49,7 +49,7 @@ jobs:
4949
cache-key: ${{ steps.pixi-lock.outputs.cache-key }}
5050
pixi-version: ${{ steps.pixi-lock.outputs.pixi-version }}
5151
steps:
52-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
52+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
5353
with:
5454
persist-credentials: false
5555
- uses: Parcels-code/pixi-lock/create-and-cache@38495788b79a5ff26009aecc15daa9a8310b8832 # v0.1.0
@@ -82,7 +82,7 @@ jobs:
8282
- os: ubuntu
8383
pixi-environment: "test-minimum"
8484
steps:
85-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
85+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
8686
with:
8787
persist-credentials: false
8888
- name: Restore cached pixi lockfile
@@ -98,7 +98,7 @@ jobs:
9898
# https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache
9999
- name: Restore cached hypothesis directory
100100
id: restore-hypothesis-cache
101-
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
101+
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
102102
with:
103103
path: .hypothesis/
104104
key: cache-hypothesis-${{ runner.os }}-${{ github.run_id }}
@@ -112,7 +112,7 @@ jobs:
112112
- name: Save cached hypothesis directory
113113
id: save-hypothesis-cache
114114
if: always() && steps.unit-test.outcome != 'skipped'
115-
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
115+
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
116116
with:
117117
path: .hypothesis/
118118
key: cache-hypothesis-${{ runner.os }}-${{ github.run_id }}
@@ -142,7 +142,7 @@ jobs:
142142
os: [ubuntu]
143143
pixi-environment: [test]
144144
steps:
145-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
145+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
146146
with:
147147
persist-credentials: false
148148
- name: Restore cached pixi lockfile
@@ -158,7 +158,7 @@ jobs:
158158
# https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache
159159
- name: Restore cached hypothesis directory
160160
id: restore-hypothesis-cache
161-
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
161+
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
162162
with:
163163
path: .hypothesis/
164164
key: cache-hypothesis-${{ runner.os }}-${{ github.run_id }}
@@ -172,7 +172,7 @@ jobs:
172172
- name: Save cached hypothesis directory
173173
id: save-hypothesis-cache
174174
if: always() && steps.unit-test.outcome != 'skipped'
175-
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
175+
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
176176
with:
177177
path: .hypothesis/
178178
key: cache-hypothesis-${{ runner.os }}-${{ github.run_id }}
@@ -197,7 +197,7 @@ jobs:
197197
env:
198198
COVERAGE_REPORT: "ubuntu_test_validation_test_report.html"
199199
steps:
200-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
200+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
201201
with:
202202
persist-credentials: false
203203
- name: Restore cached pixi lockfile
@@ -213,7 +213,7 @@ jobs:
213213
# https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache
214214
- name: Restore cached hypothesis directory
215215
id: restore-hypothesis-cache
216-
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
216+
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
217217
with:
218218
path: .hypothesis/
219219
key: cache-hypothesis-${{ runner.os }}-${{ github.run_id }}
@@ -227,7 +227,7 @@ jobs:
227227
- name: Save cached hypothesis directory
228228
id: save-hypothesis-cache
229229
if: always() && steps.unit-test.outcome != 'skipped'
230-
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
230+
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
231231
with:
232232
path: .hypothesis/
233233
key: cache-hypothesis-${{ runner.os }}-${{ github.run_id }}
@@ -263,7 +263,7 @@ jobs:
263263
- os: ubuntu
264264
python-version: "3.11"
265265
steps:
266-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
266+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
267267
with:
268268
persist-credentials: false
269269
- name: Restore cached pixi lockfile
@@ -312,7 +312,7 @@ jobs:
312312
contents: read
313313
steps:
314314
- name: Checkout
315-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
315+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
316316
with:
317317
persist-credentials: false
318318
- name: Restore cached pixi lockfile
@@ -341,7 +341,7 @@ jobs:
341341
id-token: write
342342
runs-on: ubuntu-latest
343343
steps:
344-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
344+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
345345
with:
346346
fetch-depth: 0
347347
persist-credentials: false
@@ -375,9 +375,9 @@ jobs:
375375
security-events: write # Required for upload-sarif (used by zizmor-action) to upload SARIF files.
376376
steps:
377377
- name: Checkout repository
378-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
378+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
379379
with:
380380
persist-credentials: false
381381

382382
- name: Run zizmor
383-
uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6
383+
uses: zizmorcore/zizmor-action@192e21d79ab29983730a13d1382995c2307fbcaa # v0.5.7

.github/workflows/pypi-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
permissions:
1818
contents: read
1919
steps:
20-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
20+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
2121
with:
2222
fetch-depth: 0
2323
persist-credentials: false

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515
- id: zizmor
1616
args: ["--offline"]
1717
- repo: https://github.com/astral-sh/ruff-pre-commit
18-
rev: v0.15.18
18+
rev: v0.15.20
1919
hooks:
2020
- id: ruff
2121
name: ruff lint (.py)
@@ -28,7 +28,7 @@ repos:
2828
- id: ruff-format
2929
types_or: [python, jupyter]
3030
- repo: https://github.com/rbubley/mirrors-prettier # Update mirror as official mirror is deprecated
31-
rev: v3.8.4
31+
rev: v3.9.4
3232
hooks:
3333
- id: prettier
3434

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ build:
1414
build:
1515
html:
1616
- pixi run -e docs python ci/scripts/download-all-tutorial-datasets.py
17-
- SPHINXOPTS='-T' BUILDDIR=$READTHEDOCS_OUTPUT/html pixi run docs-clean
17+
- pixi run -e docs sphinx-build -T -b html docs $READTHEDOCS_OUTPUT/html
1818
sphinx:
1919
configuration: docs/conf.py

docs/_static/custom.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.bd-article .toctree-wrapper > p.caption {
2+
display: none;
3+
}

docs/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@
123123
"**.ipynb_checkpoints",
124124
"user_guide/examples_v3",
125125
".jupyter_cache",
126-
"user_guide/examples/explanation_kernelloop.md", # TODO v4: https://github.com/Parcels-code/Parcels/issues/2695
127126
]
128127

129128
# The reST default role (used for this markup: `text`) to use for all
@@ -188,11 +187,12 @@
188187
# relative to this directory. They are copied after the builtin static files,
189188
# so a file named "default.css" will overwrite the builtin "default.css".
190189
html_static_path = ["_static"]
190+
html_css_files = ["custom.css"]
191191
html_theme_options = {
192192
"logo": {
193193
"alt_text": "Parcels - Home",
194-
"image_light": "logo-horo-transparent.png",
195-
"image_dark": "logo-horo-transparent-dark.png",
194+
"image_light": "_static/logo-horo-transparent.png",
195+
"image_dark": "_static/logo-horo-transparent-dark.png",
196196
},
197197
"use_edit_page_button": True,
198198
"github_url": "https://github.com/Parcels-code/parcels",

docs/getting_started/index.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

docs/index.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ _Animation of virtual particles carried by ocean surface flow in the global ocea
1212
You can browse the documentation for older versions by using the version switcher in the bottom right.
1313
```
1414

15-
**Useful links**: [Installation instructions](getting_started/installation.md) | [Discussions on GitHub](https://github.com/Parcels-code/parcels/discussions) | [Issue on GitHub](https://github.com/Parcels-code/parcels/issues) | [Parcels website](https://parcels-code.org/) | [CLAM community website](https://clam-community.github.io/) | [API reference](reference/parcels/index)
15+
**Useful links**: [Installation instructions](user_guide/getting_started/installation) | [Discussions on GitHub](https://github.com/Parcels-code/parcels/discussions) | [Issue on GitHub](https://github.com/Parcels-code/parcels/issues) | [Parcels website](https://parcels-code.org/) | [CLAM community website](https://clam-community.github.io/) | [API reference](reference/parcels/index)
16+
17+
New to **Parcels**? Check out the [installation instructions](user_guide/getting_started/installation), run the [quickstart tutorial](user_guide/getting_started/tutorial_quickstart), and learn the [key concepts](user_guide/getting_started/explanation_concepts) to understand the package.
1618

1719
`````{grid} 1 2 2 2
1820
:gutter: 4
@@ -22,13 +24,12 @@ You can browse the documentation for older versions by using the version switche
2224
````{grid-item-card} Getting started
2325
:shadow: md
2426
25-
New to **Parcels**? Check out the installation guide, run the quickstart tutorial, and learn the key concepts to understand the package.
27+
New to **Parcels**? Check out the [installation instructions](user_guide/getting_started/installation), run the [quickstart tutorial](user_guide/getting_started/tutorial_quickstart), and learn the [key concepts](user_guide/getting_started/explanation_concepts) to understand the package.
2628
2729
+++
2830
29-
```{button-ref} getting_started/index
31+
```{button-ref} user_guide/index
3032
:ref-type: doc
31-
:click-parent:
3233
:color: secondary
3334
:expand:
3435
@@ -38,13 +39,12 @@ Get started!
3839
````{grid-item-card} How to?
3940
:shadow: md
4041
41-
Wondering how to load a `FieldSet` or write a `Kernel`? Find **tutorials** and explainers to these and other questions here:
42+
Wondering how to load a `FieldSet` or write a `Kernel`? Find **tutorials** and explainers to these and other questions here.
4243
4344
+++
4445
4546
```{button-ref} user_guide/index
4647
:ref-type: doc
47-
:click-parent:
4848
:color: secondary
4949
:expand:
5050
@@ -60,7 +60,6 @@ We encourage anyone to help improve **Parcels**: read our guidelines to get star
6060
6161
```{button-ref} development/index
6262
:ref-type: doc
63-
:click-parent:
6463
:color: secondary
6564
:expand:
6665
@@ -76,7 +75,6 @@ Want to interact with other users and **Parcels** developers?
7675
7776
```{button-ref} community/index
7877
:ref-type: doc
79-
:click-parent:
8078
:color: secondary
8179
:expand:
8280
@@ -95,6 +93,5 @@ User guide <user_guide/index>
9593
Community <community/index>
9694
Development <development/index>
9795
API reference <reference/parcels/index>
98-
v4 <v4/index>
9996
Parcels website <https://parcels-code.org/>
10097
```

0 commit comments

Comments
 (0)