Skip to content

Commit

Permalink
flake8 fix for CIs
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsail committed Nov 21, 2023
1 parent 6e0c4e2 commit 59d6bde
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion oceanmesh/clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion oceanmesh/edgefx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions oceanmesh/mesh_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 59d6bde

Please sign in to comment.