diff --git a/oceanmesh/edgefx.py b/oceanmesh/edgefx.py index 9a6ebf0..5eaf2e1 100644 --- a/oceanmesh/edgefx.py +++ b/oceanmesh/edgefx.py @@ -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 diff --git a/oceanmesh/filterfx.py b/oceanmesh/filterfx.py index 3c78ae2..efef4a3 100644 --- a/oceanmesh/filterfx.py +++ b/oceanmesh/filterfx.py @@ -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: diff --git a/tests/test_global_stereo.py b/tests/test_global_stereo.py index ca5920d..38c8e25 100644 --- a/tests/test_global_stereo.py +++ b/tests/test_global_stereo.py @@ -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():