Skip to content

Commit 16b6c74

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6c52c3e commit 16b6c74

Some content is hidden

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

52 files changed

+48
-96
lines changed

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

docs/src/userguide/plotting_examples/1d_with_legend.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
temperature = temperature[5:9, :]
1414

1515
for cube in temperature.slices("longitude"):
16-
1716
# Create a string label to identify this cube (i.e. latitude: value)
1817
cube_label = "latitude: %s" % cube.coord("latitude").points[0]
1918

lib/iris/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ def __init__(self, datum_support=False, pandas_ndim=False):
175175
self.__dict__["pandas_ndim"] = pandas_ndim
176176

177177
def __repr__(self):
178-
179178
# msg = ('Future(example_future_flag={})')
180179
# return msg.format(self.example_future_flag)
181180
msg = "Future(datum_support={}, pandas_ndim={})"

lib/iris/_merge.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,6 +1418,7 @@ def _define_space(self, space, positions, indexes, function_matrix):
14181418
participates in a functional relationship.
14191419
14201420
"""
1421+
14211422
# Heuristic reordering of coordinate defintion indexes into
14221423
# preferred dimension order.
14231424
def axis_and_name(name):

lib/iris/analysis/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,6 @@ def _dimensional_metadata_comparison(*cubes, object_get=None):
296296
# for coordinate groups
297297
for cube, coords in zip(cubes, all_coords):
298298
for coord in coords:
299-
300299
# if this coordinate has already been processed, then continue on
301300
# to the next one
302301
if id(coord) in processed_coords:

lib/iris/analysis/_area_weighted.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ def _calculate_regrid_area_weighted_weights(
853853
cached_x_bounds = []
854854
cached_x_indices = []
855855
max_x_indices = 0
856-
for (x_0, x_1) in grid_x_bounds:
856+
for x_0, x_1 in grid_x_bounds:
857857
if grid_x_decreasing:
858858
x_0, x_1 = x_1, x_0
859859
x_bounds, x_indices = _cropped_bounds(src_x_bounds, x_0, x_1)

lib/iris/analysis/_interpolation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def _account_for_circular(self, points, data):
268268
"""
269269
from iris.analysis.cartography import wrap_lons
270270

271-
for (circular, modulus, index, dim, offset) in self._circulars:
271+
for circular, modulus, index, dim, offset in self._circulars:
272272
if modulus:
273273
# Map all the requested values into the range of the source
274274
# data (centred over the centre of the source data to allow

0 commit comments

Comments
 (0)