From 8c5e7b2c6b8e1bc7542d8a924ac1cd3e1520a66c Mon Sep 17 00:00:00 2001 From: "stephen.worsley" Date: Wed, 1 May 2024 16:38:57 +0100 Subject: [PATCH] flake8 --- esmf_regrid/experimental/io.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/esmf_regrid/experimental/io.py b/esmf_regrid/experimental/io.py index 856befc4..b36044f0 100644 --- a/esmf_regrid/experimental/io.py +++ b/esmf_regrid/experimental/io.py @@ -19,8 +19,8 @@ ESMFAreaWeightedRegridder, ESMFBilinearRegridder, ESMFNearestRegridder, - MeshRecord, GridRecord, + MeshRecord, ) @@ -58,7 +58,7 @@ def _add_mask_to_cube(mask, cube, name): @contextmanager -def managed_var_name(src_cube, tgt_cube): +def _managed_var_name(src_cube, tgt_cube): src_coord_names = [] src_mesh_coords = [] if src_cube.mesh is not None: @@ -255,7 +255,7 @@ def _standard_mesh_cube(mesh, location, name): ) # Save cubes while ensuring var_names do not conflict for the sake of consistency. - with managed_var_name(src_cube, tgt_cube): + with _managed_var_name(src_cube, tgt_cube): cube_list = CubeList([src_cube, tgt_cube, weights_cube, weight_shape_cube]) for cube in cube_list: