Skip to content

Commit

Permalink
lints
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Apr 10, 2024
1 parent 7191c77 commit eea613e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions oceans/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,10 @@ def medfilt1(x, L=3):
>>> L = 103
>>> xout = medfilt1(x=x, L=L)
>>> ax = plt.subplot(212)
>>> (l1, l2,) = ax.plot(
>>> (
... l1,
... l2,
... ) = ax.plot(
... x
... ), ax.plot(xout)
>>> ax.grid(True)
Expand Down Expand Up @@ -608,7 +611,7 @@ def pl33tn(x, dt=1.0, T=33.0, mode="valid", t=None):
import pandas as pd
import xarray as xr

if isinstance(x, (xr.Dataset, pd.DataFrame)):
if isinstance(x, xr.Dataset | pd.DataFrame):
raise TypeError("Input a DataArray not a Dataset, or a Series not a DataFrame.")

if isinstance(x, pd.Series) and not isinstance(
Expand Down
2 changes: 1 addition & 1 deletion oceans/sw_extras/sw_extras.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def cph(bvfr2):
Returns
-------
cph : array_like
Brünt-Väisälä Frequency [ cylcles hour :sup:`-1`]
Brünt-Väisälä Frequency [ cycles hour :sup:`-1`]
Examples
--------
Expand Down

0 comments on commit eea613e

Please sign in to comment.