Skip to content

Commit 89d7d52

Browse files
authored
Merge branch 'main' into numpydocs1
2 parents 2086a25 + 54ad9be commit 89d7d52

File tree

25 files changed

+187
-300
lines changed

25 files changed

+187
-300
lines changed

.github/workflows/benchmarks_report.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Download artifact
2121
id: download-artifact
2222
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#using-data-from-the-triggering-workflow
23-
uses: actions/github-script@v6
23+
uses: actions/github-script@v7
2424
with:
2525
script: |
2626
let allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
@@ -65,7 +65,7 @@ jobs:
6565
if: needs.download.outputs.reports_exist == 1
6666
steps:
6767
- name: Checkout repo
68-
uses: actions/checkout@v3
68+
uses: actions/checkout@v4
6969

7070
- name: Download artifact
7171
uses: actions/download-artifact@v3

.github/workflows/benchmarks_run.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636

3737
steps:
3838
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
39-
- uses: actions/checkout@v3
39+
- uses: actions/checkout@v4
4040
with:
4141
fetch-depth: 0
4242

.github/workflows/ci-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555

5656
steps:
5757
- name: "checkout"
58-
uses: actions/checkout@v3
58+
uses: actions/checkout@v4
5959

6060
- name: "environment configure"
6161
env:
@@ -80,7 +80,7 @@ jobs:
8080
env_name: ${{ env.ENV_NAME }}
8181

8282
- name: "conda install"
83-
uses: conda-incubator/setup-miniconda@v2
83+
uses: conda-incubator/setup-miniconda@v3
8484
with:
8585
miniforge-version: latest
8686
channels: conda-forge,defaults

.github/workflows/ci-wheels.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
name: "build sdist & wheel"
2929
runs-on: ubuntu-latest
3030
steps:
31-
- uses: actions/checkout@v3
31+
- uses: actions/checkout@v4
3232
with:
3333
fetch-depth: 0
3434

@@ -57,7 +57,7 @@ jobs:
5757
env:
5858
ENV_NAME: "ci-wheels"
5959
steps:
60-
- uses: actions/checkout@v3
60+
- uses: actions/checkout@v4
6161
with:
6262
fetch-depth: 0
6363

@@ -82,7 +82,7 @@ jobs:
8282
env_name: ${{ env.ENV_NAME }}
8383

8484
- name: "conda install"
85-
uses: conda-incubator/setup-miniconda@v2
85+
uses: conda-incubator/setup-miniconda@v3
8686
with:
8787
miniforge-version: latest
8888
channels: conda-forge,defaults

docs/src/developers_guide/contributing_getting_involved.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,5 @@ If you are new to using GitHub we recommend reading the
6161

6262
../generated/api/iris
6363
../whatsnew/index
64-
../techpapers/index
6564
../copyright
6665
../voted_issues

docs/src/further_topics/index.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.. _further_topics_index:
2+
3+
4+
Further Topics
5+
===============
6+
7+
Extra information on specific technical issues.
8+
9+
.. toctree::
10+
:maxdepth: 1
11+
12+
filtering_warnings
13+
metadata
14+
lenient_metadata
15+
lenient_maths
16+
um_files_loading
17+
missing_data_handling
18+
netcdf_io
19+
dask_best_practices/index
20+
ugrid/index

docs/src/further_topics/lenient_maths.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ introduced and discussed the concept of lenient metadata; a more pragmatic and
3535
forgiving approach to :ref:`comparing <lenient equality>`,
3636
:ref:`combining <lenient combination>` and understanding the
3737
:ref:`differences <lenient difference>` between your metadata
38-
(:numref:`metadata members table`). The lenient metadata philosophy introduced
38+
(:ref:`metadata members table`). The lenient metadata philosophy introduced
3939
there is extended to cube maths, with the view to also preserving as much common
40-
coordinate (:numref:`metadata classes table`) information, as well as common
40+
coordinate (:ref:`metadata classes table`) information, as well as common
4141
metadata, between the participating :class:`~iris.cube.Cube` operands as possible.
4242

4343
Let's consolidate our understanding of lenient and strict cube maths through

docs/src/further_topics/lenient_metadata.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ and also :ref:`conversion <metadata conversion>`.
1717

1818
The common metadata API is implemented through the ``metadata`` property
1919
on each of the Iris `CF Conventions`_ class containers
20-
(:numref:`metadata classes table`), and provides a common gateway for users to
20+
(:ref:`metadata classes table`), and provides a common gateway for users to
2121
easily manage and manipulate their metadata in a consistent and unified way.
2222

23-
This is primarily all thanks to the metadata classes (:numref:`metadata classes table`)
23+
This is primarily all thanks to the metadata classes (:ref:`metadata classes table`)
2424
that support the necessary state and behaviour required by the common metadata
2525
API. Namely, it is the ``equal`` (``__eq__``), ``difference`` and ``combine``
2626
methods that provide this rich metadata behaviour, all of which are explored
@@ -267,7 +267,7 @@ Now, compare our metadata,
267267
>>> metadata.equal(latitude.metadata, lenient=True)
268268
True
269269

270-
Again, lenient equality (:numref:`lenient equality table`) offers a more
270+
Again, lenient equality (:ref:`lenient equality table`) offers a more
271271
forgiving and practical alternative to strict behaviour.
272272

273273

@@ -277,7 +277,7 @@ Lenient Difference
277277
------------------
278278

279279
Similar to :ref:`lenient equality`, the lenient ``difference`` method
280-
(:numref:`lenient difference table`) considers there to be no difference between
280+
(:ref:`lenient difference table`) considers there to be no difference between
281281
comparing **something** with **nothing** (``None``). This working assumption is
282282
not naively applied to all metadata members, but rather a more pragmatic approach
283283
is adopted, as discussed later in :ref:`lenient members`.
@@ -334,7 +334,7 @@ Lenient Combination
334334
-------------------
335335

336336
The behaviour of the lenient ``combine`` metadata class method is outlined
337-
in :numref:`lenient combine table`, and as with :ref:`lenient equality` and
337+
in :ref:`lenient combine table`, and as with :ref:`lenient equality` and
338338
:ref:`lenient difference` is enabled through the ``lenient`` keyword argument.
339339

340340
The difference in behaviour between **lenient** and

docs/src/further_topics/metadata.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ give them meaning.
5252
The **metadata** used to define an Iris `CF Conventions`_ class is composed of
5353
individual **metadata members**, almost all of which reference specific
5454
`CF Conventions`_ terms. The individual metadata members used to define each of
55-
the Iris `CF Conventions`_ classes are shown in :numref:`metadata members table`.
55+
the Iris `CF Conventions`_ classes are shown in :ref:`metadata members table`.
5656

57-
As :numref:`metadata members table` highlights, **specific** metadata is used to
57+
As :ref:`metadata members table` highlights, **specific** metadata is used to
5858
define and represent each Iris `CF Conventions`_ class. This means that metadata
5959
alone, can be used to easily **identify**, **compare** and **differentiate**
6060
between individual class instances.
@@ -111,7 +111,7 @@ Common Metadata API
111111
cube = iris.load_cube(iris.sample_data_path("A1B_north_america.nc"))
112112

113113
As of Iris ``3.0.0``, a unified treatment of metadata has been applied
114-
across each Iris class (:numref:`metadata members table`) to allow users
114+
across each Iris class (:ref:`metadata members table`) to allow users
115115
to easily manage and manipulate their metadata in a consistent way.
116116

117117
This is achieved through the ``metadata`` property, which allows you to
@@ -158,7 +158,7 @@ Or use the ``metadata`` property again, but this time on the ``forecast_period``
158158
CoordMetadata(standard_name='forecast_period', long_name=None, var_name='forecast_period', units=Unit('hours'), attributes={}, coord_system=None, climatological=False)
159159

160160
Note that, the ``metadata`` property is available on each of the Iris `CF Conventions`_
161-
class containers referenced in :numref:`metadata members table`, and thus provides
161+
class containers referenced in :ref:`metadata members table`, and thus provides
162162
a **common** and **consistent** approach to managing your metadata, which we'll
163163
now explore a little more fully.
164164

@@ -168,7 +168,7 @@ Metadata Classes
168168

169169
The ``metadata`` property will return an appropriate `namedtuple`_ metadata class
170170
for each Iris `CF Conventions`_ class container. The metadata class returned by
171-
each container class is shown in :numref:`metadata classes table` below,
171+
each container class is shown in :ref:`metadata classes table` below,
172172

173173
.. _metadata classes table:
174174
.. table:: - Iris namedtuple metadata classes
@@ -187,7 +187,7 @@ each container class is shown in :numref:`metadata classes table` below,
187187
========================================== ========================================================
188188

189189
Akin to the behaviour of a `namedtuple`_, the metadata classes in
190-
:numref:`metadata classes table` create **tuple-like** instances i.e., they provide a
190+
:ref:`metadata classes table` create **tuple-like** instances i.e., they provide a
191191
**snapshot** of the associated metadata member **values**, which are **not
192192
settable**, but they **may be mutable** depending on the data-type of the member.
193193
For example, given the following ``metadata`` of a :class:`~iris.coords.DimCoord`,
@@ -243,13 +243,13 @@ with a **snapshot** of the container class metadata values at that point in time
243243

244244
Skip ahead to :ref:`metadata assignment <metadata assignment>` for a fuller
245245
discussion on options how to **set** and **get** metadata on the instance of
246-
an Iris `CF Conventions`_ container class (:numref:`metadata classes table`).
246+
an Iris `CF Conventions`_ container class (:ref:`metadata classes table`).
247247

248248

249249
Metadata Class Behaviour
250250
------------------------
251251

252-
As mentioned previously, the metadata classes in :numref:`metadata classes table`
252+
As mentioned previously, the metadata classes in :ref:`metadata classes table`
253253
inherit the behaviour of a `namedtuple`_, and so act and feel like a `namedtuple`_,
254254
just as you might expect. For example, given the following ``metadata``,
255255

@@ -326,7 +326,7 @@ Richer Metadata Behaviour
326326
cube = iris.load_cube(iris.sample_data_path("A1B_north_america.nc"))
327327
longitude = cube.coord("longitude")
328328

329-
The metadata classes from :numref:`metadata classes table` support additional
329+
The metadata classes from :ref:`metadata classes table` support additional
330330
behaviour above and beyond that of the standard Python `namedtuple`_, which
331331
allows you to easily **compare**, **combine**, **convert** and understand the
332332
**difference** between your ``metadata`` instances.
@@ -340,7 +340,7 @@ Metadata Equality
340340
The metadata classes support both **equality** (``__eq__``) and **inequality**
341341
(``__ne__``), but no other `rich comparison`_ operators are implemented.
342342
This is simply because there is no obvious ordering to any collective of metadata
343-
members, as defined in :numref:`metadata members table`.
343+
members, as defined in :ref:`metadata members table`.
344344

345345
For example, given the following :class:`~iris.coords.DimCoord`,
346346

@@ -455,7 +455,7 @@ be ``False``,
455455

456456
The reason different metadata classes cannot be compared is simply because each
457457
metadata class contains **different** members, as shown in
458-
:numref:`metadata members table`. However, there is an exception to the rule...
458+
:ref:`metadata members table`. However, there is an exception to the rule...
459459

460460

461461
.. _exception rule:
@@ -834,7 +834,7 @@ using ``from_metadata``,
834834
>>> print(newmeta)
835835
DimCoordMetadata(standard_name=air_temperature, var_name=air_temperature, units=K, attributes={'Conventions': 'CF-1.5', 'STASH': STASH(model=1, section=3, item=236), 'Model scenario': 'A1B', 'source': 'Data from Met Office Unified Model 6.05'})
836836

837-
By examining :numref:`metadata members table`, we can see that the
837+
By examining :ref:`metadata members table`, we can see that the
838838
:class:`~iris.cube.Cube` and :class:`~iris.coords.DimCoord` container
839839
classes share the following common metadata members,
840840

@@ -880,7 +880,7 @@ Metadata Assignment
880880
latitude = cube.coord("latitude")
881881

882882
The ``metadata`` property available on each Iris `CF Conventions`_ container
883-
class (:numref:`metadata classes table`) can not only be used **to get**
883+
class (:ref:`metadata classes table`) can not only be used **to get**
884884
the metadata of an instance, but also **to set** the metadata on an instance.
885885

886886
For example, given the following :class:`~iris.common.metadata.DimCoordMetadata` of the
File renamed without changes.

0 commit comments

Comments
 (0)