Skip to content

Commit 2daa4d4

Browse files
committed
Revert "[pre-commit.ci] pre-commit autoupdate (SciTools#4560)"
This reverts commit d503ce6.
1 parent ea41516 commit 2daa4d4

File tree

24 files changed

+66
-73
lines changed

24 files changed

+66
-73
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 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.1.0
32+
rev: 21.12b0
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]

benchmarks/benchmarks/plot.py

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

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/whatsnew/3.2.rst renamed to docs/src/whatsnew/dev.rst

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
.. include:: ../common_links.inc
22

3-
v3.2 (15 Feb 2022)
4-
******************
3+
|iris_version| |build_date| [unreleased]
4+
****************************************
55

66
This document explains the changes made to Iris for this release
77
(:doc:`View all changes <index>`.)
88

99

10-
.. dropdown:: :opticon:`report` v3.2.0 Release Highlights
10+
.. dropdown:: :opticon:`report` |iris_version| Release Highlights
1111
:container: + shadow
1212
:title: text-primary text-center font-weight-bold
1313
:body: bg-light
@@ -18,7 +18,8 @@ This document explains the changes made to Iris for this release
1818

1919
* We've added experimental support for
2020
:ref:`Meshes <ugrid>`, which can now be loaded and
21-
attached to a cube. Mesh support is based on the `CF-UGRID`_ model.
21+
attached to a cube. Mesh support is based on the based on `CF-UGRID`_
22+
model.
2223
* We've also dropped support for ``Python 3.7``.
2324

2425
And finally, get in touch with us on :issue:`GitHub<new/choose>` if you have
@@ -177,9 +178,6 @@ This document explains the changes made to Iris for this release
177178
to indicate cloud fraction greater than 7.9 oktas, rather than 7.5
178179
(:issue:`3305`, :pull:`4535`)
179180

180-
#. `@lbdreyer`_ fixed a bug in :class:`iris.io.load_http` which was missing an import
181-
(:pull:`4580`)
182-
183181

184182
💣 Incompatible Changes
185183
=======================
@@ -351,7 +349,7 @@ This document explains the changes made to Iris for this release
351349

352350
#. `@lbdreyer`_ corrected the license PyPI classifier. (:pull:`4435`)
353351

354-
#. `@aaronspring`_ exchanged ``dask`` with
352+
#. `@aaronspring <https://github.com/aaronspring>`_ exchanged ``dask`` with
355353
``dask-core`` in testing environments reducing the number of dependencies
356354
installed for testing. (:pull:`4434`)
357355

docs/src/whatsnew/dev.rst.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This document explains the changes made to Iris for this release
2424

2525
NOTE: section below is a template for bugfix patches
2626
====================================================
27-
(Please remove this section when creating an initial 'dev.rst')
27+
(Please remove this section when creating an initial 'latest.rst')
2828

2929
v3.X.X (DD MMM YYYY)
3030
====================
@@ -41,7 +41,7 @@ v3.X.X (DD MMM YYYY)
4141

4242
NOTE: section above is a template for bugfix patches
4343
====================================================
44-
(Please remove this section when creating an initial 'dev.rst')
44+
(Please remove this section when creating an initial 'latest.rst')
4545

4646

4747

docs/src/whatsnew/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ Iris versions.
1111
:maxdepth: 1
1212

1313
dev.rst
14-
3.2.rst
1514
3.1.rst
1615
3.0.rst
1716
2.4.rst

docs/src/whatsnew/latest.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.2.rst
1+
dev.rst

lib/iris/__init__.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@
4444
standard library function :func:`os.path.expanduser` and
4545
module :mod:`fnmatch` for more details.
4646
47-
.. warning::
48-
49-
If supplying a URL, only OPeNDAP Data Sources are supported.
50-
5147
* constraints:
5248
Either a single constraint, or an iterable of constraints.
5349
Each constraint can be either a string, an instance of
@@ -108,7 +104,7 @@ def callback(cube, field, filename):
108104

109105

110106
# Iris revision.
111-
__version__ = "3.3.dev0"
107+
__version__ = "3.2.dev0"
112108

113109
# Restrict the names imported when using "from iris import *"
114110
__all__ = [
@@ -291,7 +287,6 @@ def load(uris, constraints=None, callback=None):
291287
292288
* uris:
293289
One or more filenames/URIs, as a string or :class:`pathlib.PurePath`.
294-
If supplying a URL, only OPeNDAP Data Sources are supported.
295290
296291
Kwargs:
297292
@@ -320,7 +315,6 @@ def load_cube(uris, constraint=None, callback=None):
320315
321316
* uris:
322317
One or more filenames/URIs, as a string or :class:`pathlib.PurePath`.
323-
If supplying a URL, only OPeNDAP Data Sources are supported.
324318
325319
Kwargs:
326320
@@ -360,7 +354,6 @@ def load_cubes(uris, constraints=None, callback=None):
360354
361355
* uris:
362356
One or more filenames/URIs, as a string or :class:`pathlib.PurePath`.
363-
If supplying a URL, only OPeNDAP Data Sources are supported.
364357
365358
Kwargs:
366359
@@ -406,7 +399,6 @@ def load_raw(uris, constraints=None, callback=None):
406399
407400
* uris:
408401
One or more filenames/URIs, as a string or :class:`pathlib.PurePath`.
409-
If supplying a URL, only OPeNDAP Data Sources are supported.
410402
411403
Kwargs:
412404

lib/iris/analysis/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1394,7 +1394,7 @@ def _lazy_rms(array, axis, **kwargs):
13941394
# all. Thus trying to use this aggregator with weights will currently
13951395
# raise an error in dask due to the unexpected keyword `weights`,
13961396
# rather than silently returning the wrong answer.
1397-
return da.sqrt(da.mean(array**2, axis=axis, **kwargs))
1397+
return da.sqrt(da.mean(array ** 2, axis=axis, **kwargs))
13981398

13991399

14001400
@_build_dask_mdtol_function

0 commit comments

Comments
 (0)