From 59d6bdec158662a3a614eeb8fa4437c432db3def Mon Sep 17 00:00:00 2001 From: tomsail Date: Tue, 21 Nov 2023 10:30:47 +0100 Subject: [PATCH] flake8 fix for CIs --- oceanmesh/clean.py | 2 +- oceanmesh/edgefx.py | 2 +- oceanmesh/mesh_generator.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/oceanmesh/clean.py b/oceanmesh/clean.py index 3335432..d1d4f98 100644 --- a/oceanmesh/clean.py +++ b/oceanmesh/clean.py @@ -256,7 +256,7 @@ def delete_exterior_faces(vertices, faces, min_disconnected_area): # Delete where nflag == 1 from tmp t1 mesh t1 = np.delete(t1, nflag == 1, axis=0) logger.info( - f"ACCEPTED: Deleting {int(np.sum(nflag==0))} faces outside the main mesh" + f"ACCEPTED: Deleting {int(np.sum(nflag == 0))} faces outside the main mesh" ) # Calculate the remaining area diff --git a/oceanmesh/edgefx.py b/oceanmesh/edgefx.py index d366f7d..4f53faf 100644 --- a/oceanmesh/edgefx.py +++ b/oceanmesh/edgefx.py @@ -932,7 +932,7 @@ def multiscale_sizing_function( # interpolate all finer nests onto coarse func and enforce gradation rate for k, finer in enumerate(list_of_grids[idx1 + 1 :]): logger.info( - f" Interpolating sizing function #{idx1+1 + k} onto sizing function #{idx1}" + f" Interpolating sizing function #{idx1 + 1 + k} onto sizing function #{idx1}" ) _wkt = finer.crs.to_dict() if "units" in _wkt: diff --git a/oceanmesh/mesh_generator.py b/oceanmesh/mesh_generator.py index f40e7f6..06ae670 100644 --- a/oceanmesh/mesh_generator.py +++ b/oceanmesh/mesh_generator.py @@ -528,11 +528,11 @@ def generate_mesh(domain, edge_length, **kwargs): maxdp = delta_t * np.sqrt((Ftot**2).sum(1)).max() logger.info( - f"Iteration #{count+1}, max movement is {maxdp}, there are {len(p)} vertices and {len(t)}" + f"Iteration #{count + 1}, max movement is {maxdp}, there are {len(p)} vertices and {len(t)}" ) end = time.time() - logger.info(f"Elapsed wall-clock time {end-start} seconds") + logger.info(f"Elapsed wall-clock time {end - start} seconds") def _unpack_sizing(edge_length, opts):