Skip to content

Commit fc9a1cb

Browse files
committed
Revert "Merge remote-tracking branch 'upstream/main' into all_benchmarks"
This reverts commit 81c4bcf, reversing changes made to 7561195.
1 parent 8658bde commit fc9a1cb

File tree

166 files changed

+5817
-8738
lines changed

Some content is hidden

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

166 files changed

+5817
-8738
lines changed

.cirrus.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ linux_task_template: &LINUX_TASK_TEMPLATE
6060
- echo "$(date +%Y).$(expr $(date +%U) / ${CACHE_PERIOD}):${CONDA_CACHE_BUILD}"
6161
- uname -r
6262
populate_script:
63+
- export CONDA_OVERRIDE_LINUX="$(uname -r | cut -d'+' -f1)"
6364
- bash miniconda.sh -b -p ${HOME}/miniconda
6465
- conda config --set always_yes yes --set changeps1 no
6566
- conda config --set show_channel_urls True
@@ -140,6 +141,8 @@ task:
140141
only_if: ${SKIP_TEST_TASK} == ""
141142
<< : *CREDITS_TEMPLATE
142143
matrix:
144+
env:
145+
PY_VER: 3.7
143146
env:
144147
PY_VER: 3.8
145148
name: "${CIRRUS_OS}: py${PY_VER} tests"
@@ -150,6 +153,7 @@ task:
150153
<< : *IRIS_TEST_DATA_TEMPLATE
151154
<< : *LINUX_TASK_TEMPLATE
152155
tests_script:
156+
- export CONDA_OVERRIDE_LINUX="$(uname -r | cut -d'+' -f1)"
153157
- echo "[Resources]" > ${SITE_CFG}
154158
- echo "test_data_dir = ${IRIS_TEST_DATA_DIR}/test_data" >> ${SITE_CFG}
155159
- echo "doc_dir = ${CIRRUS_WORKING_DIR}/docs" >> ${SITE_CFG}
@@ -170,6 +174,7 @@ task:
170174
<< : *IRIS_TEST_DATA_TEMPLATE
171175
<< : *LINUX_TASK_TEMPLATE
172176
tests_script:
177+
- export CONDA_OVERRIDE_LINUX="$(uname -r | cut -d'+' -f1)"
173178
- echo "[Resources]" > ${SITE_CFG}
174179
- echo "test_data_dir = ${IRIS_TEST_DATA_DIR}/test_data" >> ${SITE_CFG}
175180
- echo "doc_dir = ${CIRRUS_WORKING_DIR}/docs" >> ${SITE_CFG}
@@ -192,6 +197,7 @@ task:
192197
name: "${CIRRUS_OS}: py${PY_VER} link check"
193198
<< : *LINUX_TASK_TEMPLATE
194199
tests_script:
200+
- export CONDA_OVERRIDE_LINUX="$(uname -r | cut -d'+' -f1)"
195201
- mkdir -p ${MPL_RC_DIR}
196202
- echo "backend : agg" > ${MPL_RC_FILE}
197203
- echo "image.cmap : viridis" >> ${MPL_RC_FILE}

.github/workflows/refresh-lockfiles.yml

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

7272
strategy:
7373
matrix:
74-
python: ['38']
74+
python: ['37', '38']
7575

7676
steps:
7777
- uses: actions/checkout@v2

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ minimum_pre_commit_version: 1.21.0
1313

1414
repos:
1515
- repo: https://github.com/pre-commit/pre-commit-hooks
16-
rev: v4.1.0
16+
rev: v4.0.1
1717
hooks:
1818
# Prevent giant files from being committed.
1919
- id: check-added-large-files
@@ -29,7 +29,7 @@ repos:
2929
- id: no-commit-to-branch
3030

3131
- repo: https://github.com/psf/black
32-
rev: 22.1.0
32+
rev: 21.11b1
3333
hooks:
3434
- id: black
3535
pass_filenames: false
@@ -50,7 +50,7 @@ repos:
5050
args: [--filter-files]
5151

5252
- repo: https://github.com/asottile/blacken-docs
53-
rev: v1.12.1
53+
rev: v1.12.0
5454
hooks:
5555
- id: blacken-docs
5656
types: [file, rst]

.readthedocs.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
version: 2
22

33
build:
4-
os: ubuntu-20.04
5-
tools:
6-
python: mambaforge-4.10
4+
image: latest
75

86
conda:
9-
environment: requirements/ci/readthedocs.yml
7+
environment: requirements/ci/readthedocs.yml
108

119
sphinx:
12-
configuration: docs/src/conf.py
13-
fail_on_warning: false
10+
configuration: docs/src/conf.py
11+
fail_on_warning: false
1412

1513
python:
16-
install:
17-
- method: pip
18-
path: .
19-
extra_requirements:
20-
- docs
14+
install:
15+
- method: setuptools
16+
path: .
17+
18+
formats:
19+
- htmlzip
20+
- pdf

benchmarks/benchmarks/plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def setup(self):
2222
# Should generate 10 distinct contours, regardless of dim size.
2323
dim_size = int(ARTIFICIAL_DIM_SIZE / 5)
2424
repeat_number = int(dim_size / 10)
25-
repeat_range = range(int((dim_size**2) / repeat_number))
25+
repeat_range = range(int((dim_size ** 2) / repeat_number))
2626
data = np.repeat(repeat_range, repeat_number)
2727
data = data.reshape((dim_size,) * 2)
2828

docs/gallery_code/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ you may start the jupyter notebook via::
2323

2424
If you wish to contribute to the gallery see the
2525
:ref:`contributing.documentation.gallery` section of the
26-
:ref:`contributing.documentation_full`.
26+
:ref:`contributing.documentation`.

docs/gallery_code/meteorology/plot_wind_barbs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def main():
3030

3131
# To illustrate the full range of barbs, scale the wind speed up to pretend
3232
# that a storm is passing over
33-
magnitude = (uwind**2 + vwind**2) ** 0.5
33+
magnitude = (uwind ** 2 + vwind ** 2) ** 0.5
3434
magnitude.convert_units("knot")
3535
max_speed = magnitude.collapsed(
3636
("latitude", "longitude"), iris.analysis.MAX
@@ -41,7 +41,7 @@ def main():
4141
vwind = vwind / max_speed * max_desired
4242

4343
# Create a cube containing the wind speed
44-
windspeed = (uwind**2 + vwind**2) ** 0.5
44+
windspeed = (uwind ** 2 + vwind ** 2) ** 0.5
4545
windspeed.rename("windspeed")
4646
windspeed.convert_units("knot")
4747

docs/gallery_code/meteorology/plot_wind_speed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def main():
2727
vwind = iris.load_cube(infile, "y_wind")
2828

2929
# Create a cube containing the wind speed.
30-
windspeed = (uwind**2 + vwind**2) ** 0.5
30+
windspeed = (uwind ** 2 + vwind ** 2) ** 0.5
3131
windspeed.rename("windspeed")
3232

3333
# Plot the wind speed as a contour plot.

docs/src/_templates/imagehash.html

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

docs/src/common_links.inc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
.. _test-iris-imagehash: https://github.com/SciTools/test-iris-imagehash
3838
.. _using git: https://docs.github.com/en/github/using-git
3939
.. _requirements/ci/: https://github.com/SciTools/iris/tree/main/requirements/ci
40-
.. _CF-UGRID: https://ugrid-conventions.github.io/ugrid-conventions/
4140

4241

4342
.. comment

0 commit comments

Comments
 (0)