Skip to content

Commit c1e6e47

Browse files
committed
Merge remote-tracking branch 'upstream/main' into dark_theme
* upstream/main: (23 commits) Lockfiles and pydata-sphinx-theme fix (SciTools#5188) Allow smarter weights (cubes, coordinates, cell measures, or ancillary variables) for aggregation (SciTools#5084) removed cell measure mask check and error (SciTools#5181) Updated environment lockfiles (SciTools#5177) Lazy weighted RMS calculation (SciTools#5017) Add coverage badge to README.md (SciTools#5176) Add coverage testing (SciTools#4765) Whats new updates for v3.4.1 . NetCDF thread safety take two (SciTools#5095) Updated environment lockfiles (SciTools#5163) Plugin support (SciTools#5144) Expand scope of common contributor links (SciTools#5159) Replace apparently retired UDUNITS documentation link. (SciTools#5153) [pre-commit.ci] pre-commit autoupdate (SciTools#5150) Fixing typo's in Gitwash. (SciTools#5145) add readme #showyourstripes (SciTools#5141) [pre-commit.ci] pre-commit autoupdate (SciTools#5143) Iris ❤ Xarray docs page. (SciTools#5025) [pre-commit.ci] pre-commit autoupdate (SciTools#5136) Updated citation (SciTools#5116) ...
2 parents 163b56f + e2dc89c commit c1e6e47

File tree

137 files changed

+3701
-2199
lines changed

Some content is hidden

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

137 files changed

+3701
-2199
lines changed

.github/workflows/ci-tests.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,12 @@ jobs:
3636
matrix:
3737
os: ["ubuntu-latest"]
3838
python-version: ["3.10"]
39-
session: ["tests", "doctest", "gallery", "linkcheck"]
39+
session: ["doctest", "gallery", "linkcheck"]
4040
include:
41+
- os: "ubuntu-latest"
42+
python-version: "3.10"
43+
session: "tests"
44+
coverage: "--coverage"
4145
- os: "ubuntu-latest"
4246
python-version: "3.9"
4347
session: "tests"
@@ -133,4 +137,8 @@ jobs:
133137
env:
134138
PY_VER: ${{ matrix.python-version }}
135139
run: |
136-
nox --session ${{ matrix.session }} -- --verbose
140+
nox --session ${{ matrix.session }} -- --verbose ${{ matrix.coverage }}
141+
142+
- name: Upload coverage report
143+
uses: codecov/codecov-action@v3
144+
if: ${{ matrix.coverage }}

.pre-commit-config.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ repos:
2929
- id: no-commit-to-branch
3030

3131
- repo: https://github.com/psf/black
32-
rev: 22.12.0
32+
rev: 23.1.0
3333
hooks:
3434
- id: black
3535
pass_filenames: false
@@ -43,18 +43,17 @@ repos:
4343
args: [--config=./setup.cfg]
4444

4545
- repo: https://github.com/pycqa/isort
46-
rev: 5.11.4
46+
rev: 5.12.0
4747
hooks:
4848
- id: isort
4949
types: [file, python]
5050
args: [--filter-files]
5151

5252
- repo: https://github.com/asottile/blacken-docs
53-
rev: v1.12.1
53+
rev: 1.13.0
5454
hooks:
5555
- id: blacken-docs
5656
types: [file, rst]
57-
additional_dependencies: [black==21.6b0]
5857

5958
- repo: https://github.com/aio-libs/sort-all
6059
rev: v1.2.0

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
<a href="https://results.pre-commit.ci/latest/github/SciTools/iris/main">
2020
<img src="https://results.pre-commit.ci/badge/github/SciTools/iris/main.svg"
2121
alt="pre-commit.ci status"></a>
22+
<a href="https://codecov.io/gh/SciTools/iris">
23+
<img src="https://codecov.io/gh/SciTools/iris/branch/main/graph/badge.svg?token=0GeICSIF3g"
24+
alt="code coverage"></a>
2225
</p>
2326

2427
<p align="center">
@@ -54,3 +57,24 @@ For documentation see the
5457
developer version or the most recent released
5558
<a href="https://scitools-iris.readthedocs.io/en/stable/">stable</a> version.
5659
</p>
60+
61+
## [#ShowYourStripes](https://showyourstripes.info/s/globe)
62+
63+
<h4 align="center">
64+
<a href="https://showyourstripes.info/s/globe">
65+
<img src="https://raw.githubusercontent.com/ed-hawkins/show-your-stripes/master/2021/GLOBE---1850-2021-MO.png"
66+
height="50" width="800"
67+
alt="#showyourstripes Global 1850-2021"></a>
68+
</h4>
69+
70+
**Graphics and Lead Scientist**: [Ed Hawkins](http://www.met.reading.ac.uk/~ed/home/index.php), National Centre for Atmospheric Science, University of Reading.
71+
72+
**Data**: Berkeley Earth, NOAA, UK Met Office, MeteoSwiss, DWD, SMHI, UoR, Meteo France & ZAMG.
73+
74+
<p>
75+
<a href="https://showyourstripes.info/s/globe">#ShowYourStripes</a> is distributed under a
76+
<a href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>
77+
<a href="https://creativecommons.org/licenses/by/4.0/">
78+
<img src="https://i.creativecommons.org/l/by/4.0/80x15.png" alt="creative-commons-by" style="border-width:0"></a>
79+
</p>
80+

benchmarks/benchmarks/experimental/ugrid/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def time_create(self, *params):
5050

5151
class Connectivity(UGridCommon):
5252
def setup(self, n_faces):
53-
self.array = np.zeros([n_faces, 3], dtype=np.int)
53+
self.array = np.zeros([n_faces, 3], dtype=int)
5454
super().setup(n_faces)
5555

5656
def create(self):

docs/Makefile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ html-quick:
2020
echo "make html-quick in $$i..."; \
2121
(cd $$i; $(MAKE) $(MFLAGS) $(MYMAKEFLAGS) html-quick); done
2222

23-
spelling:
24-
@for i in $(SUBDIRS); do \
25-
echo "make spelling in $$i..."; \
26-
(cd $$i; $(MAKE) $(MFLAGS) $(MYMAKEFLAGS) spelling); done
27-
2823
all:
2924
@for i in $(SUBDIRS); do \
3025
echo "make all in $$i..."; \

docs/gallery_code/general/plot_custom_aggregation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def main():
7272

7373
# Make an aggregator from the user function.
7474
SPELL_COUNT = Aggregator(
75-
"spell_count", count_spells, units_func=lambda units: 1
75+
"spell_count", count_spells, units_func=lambda units, **kwargs: 1
7676
)
7777

7878
# Define the parameters of the test.

docs/gallery_code/general/plot_lineplot_with_legend.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ def main():
2424
)
2525

2626
for cube in temperature.slices("longitude"):
27-
2827
# Create a string label to identify this cube (i.e. latitude: value).
2928
cube_label = "latitude: %s" % cube.coord("latitude").points[0]
3029

docs/gallery_code/general/plot_projections_and_annotations.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727

2828
def make_plot(projection_name, projection_crs):
29-
3029
# Create a matplotlib Figure.
3130
plt.figure()
3231

docs/gallery_code/general/plot_zonal_means.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717

1818
def main():
19-
2019
# Loads air_temp.pp and "collapses" longitude into a single, average value.
2120
fname = iris.sample_data_path("air_temp.pp")
2221
temperature = iris.load_cube(fname)

docs/gallery_code/meteorology/plot_lagged_ensemble.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ def main():
8686

8787
# Iterate over all possible latitude longitude slices.
8888
for cube in last_timestep.slices(["latitude", "longitude"]):
89-
9089
# Get the ensemble member number from the ensemble coordinate.
9190
ens_member = cube.coord("realization").points[0]
9291

0 commit comments

Comments
 (0)