Skip to content

Commit

Permalink
black lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsail committed Nov 21, 2023
1 parent d8c7956 commit 5008b7d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions oceanmesh/edgefx.py
Original file line number Diff line number Diff line change
Expand Up @@ -871,9 +871,7 @@ def wavelength_sizing_function(
dy *= meters_per_degree
dx *= meters_per_degree

grid = Grid(
bbox=dem.bbox, dx=dx, dy=dy, extrapolate=True, values=0.0, crs=crs
)
grid = Grid(bbox=dem.bbox, dx=dx, dy=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
2 changes: 1 addition & 1 deletion oceanmesh/filterfx.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def filt2(Z, res, wl, filtertype, truncate=2.6):
"Wavelength lambda must be a two-element array for a bandpass filter."
)

if ~isinstance(wl, np.ndarray) :
if ~isinstance(wl, np.ndarray):
wl = np.array(list(wl))

else:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_global_stereo.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# https://github.com/ec-jrc/pyPoseidon/tree/master/Tutorial
# You can get them with
# curl -L url https://www.dropbox.com/sh/nd2b012wrpt6qnq/AAAD7aA_qXztUhlT39YK2yBua?dl=1 > data.zip
fname = os.path.join(os.path.dirname(__file__), 'data', 'ocean', "ocean.shp")
fname = os.path.join(os.path.dirname(__file__), "data", "ocean", "ocean.shp")


def test_global_stereo():
Expand Down

0 comments on commit 5008b7d

Please sign in to comment.