Skip to content

Commit

Permalink
minor lints
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsail committed Nov 22, 2023
1 parent 34f84a5 commit 9f81d45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion oceanmesh/edgefx.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,9 @@ def wavelength_sizing_function(
)
dy *= meters_per_degree
dx *= meters_per_degree
grid = Grid(bbox=dem.bbox, dx=dem.dx, dy=dem.dy, extrapolate=True, values=0.0, crs=crs)
grid = Grid(
bbox=dem.bbox, dx=dem.dx, dy=dem.dy, extrapolate=True, values=0.0, crs=crs
)
tmpz[np.abs(tmpz) < 1] = 1
grid.values = period * np.sqrt(gravity * np.abs(tmpz)) / wl

Expand Down
4 changes: 2 additions & 2 deletions tests/test_bathymetric_gradient_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_bathymetric_gradient_function():
EPSG = 4326 # EPSG:4326 or WGS84
bbox = (-74.4, -73.4, 40.2, 41.2)
extent = om.Region(extent=bbox, crs=EPSG)
dem = om.DEM(fdem, crs=4326)
# dem = om.DEM(fdem, crs=4326)

min_edge_length = 0.0025 # minimum mesh size in domain in projection
max_edge_length = 0.10 # maximum mesh size in domain in projection
Expand Down Expand Up @@ -82,7 +82,7 @@ def test_bathymetric_gradient_function():
"Bathymetric Gradient",
"Feature Sizing & Bathymetric Gradient",
],
[edge_length1, edge_length3],
[edge_length1, edge_length3],
):
print(f"Generating mesh associated with {name_}")
edge_length_ = om.enforce_mesh_gradation(edge_length, gradation=0.15)
Expand Down

0 comments on commit 9f81d45

Please sign in to comment.