Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 6, 2024
1 parent d6d3805 commit a098203
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/iris/tests/test_cube_to_pp.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,9 @@ def test_lbvc(self):
def test_surface_field(self):
def setup_cube(cube):
temp_pp_path = iris.util.create_temp_filename(".pp")
iris.fileformats.pp.save(cube, target=temp_pp_path, label_surface_fields=True)
iris.fileformats.pp.save(
cube, target=temp_pp_path, label_surface_fields=True
)
cube = iris.fileformats.pp.load(temp_pp_path)
return cube

Expand All @@ -385,9 +387,7 @@ def setup_cube(cube):

# check surface fields aren't incorrectly applied
cube = stock.lat_lon_cube()
v_coord = iris.coords.DimCoord(
standard_name="depth", units="m", points=[-5]
)
v_coord = iris.coords.DimCoord(standard_name="depth", units="m", points=[-5])
cube.add_aux_coord(v_coord)
cube = setup_cube(cube)
for field in cube:
Expand Down

0 comments on commit a098203

Please sign in to comment.