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 Feb 13, 2024
1 parent 578cd67 commit 2fb1046
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/iris/experimental/geobridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ def cube_faces_to_polydata(cube):
polydata = Transform.from_1d(**kwargs)

else:
raise NotImplementedError(
"Only 1D and 2D coordinates are supported"
)
raise NotImplementedError("Only 1D and 2D coordinates are supported")
else:
raise NotImplementedError("Cube must have a mesh or have 2 dimensions")

Expand All @@ -62,9 +60,7 @@ def region_extraction(cube, mesh, region, preference):

region_cube = cube[:, indices]

new_mesh = Mesh.from_coords(
*region_cube.coords(dimensions=cube.mesh_dim())
)
new_mesh = Mesh.from_coords(*region_cube.coords(dimensions=cube.mesh_dim()))
new_mesh_coords = new_mesh.to_MeshCoords(cube.location)

for coord in new_mesh_coords:
Expand Down

0 comments on commit 2fb1046

Please sign in to comment.