Skip to content

Commit

Permalink
Attempted cleanups from CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jthielen committed Sep 23, 2020
1 parent f5eae0f commit 57bb1e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/metpy/calc/kinematics.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def advection(
v=None,
w=None,
*,
dx=None,
dx=None, # noqa: RST213
dy=None,
dz=None,
x_dim=-1,
Expand All @@ -367,8 +367,8 @@ def advection(
N-dimensional arrays with units of velocity representing the flow, with a component of
the wind in each dimension. For 1D advection, use 1 positional argument (with `dx` for
grid spacing and `x_dim` to specify axis if not the default of -1) or use 1 applicable
keyword argument (u, v, or w) for proper physical dimension (with corresponding `d*`
for grid spacing and `*_dim` to specify axis). For 2D/horizontal advection, use 2
keyword argument (u, v, or w) for proper physical dimension (with corresponding `d\*`
for grid spacing and `\*_dim` to specify axis). For 2D/horizontal advection, use 2
positional arguments in order for u and v winds respectively (with `dx` and `dy` for
grid spacings and `x_dim` and `y_dim` keyword arguments to specify axes), or specify u
and v as keyword arguments (grid spacings and axes likewise). For 3D advection,
Expand Down
6 changes: 3 additions & 3 deletions src/metpy/xarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -1117,9 +1117,9 @@ def wrapper(*args, **kwargs):
if isinstance(wrap_like, str):
match = bound_args.arguments[wrap_like]
elif isinstance(wrap_like, tuple):
for i in range(len(wrap_like)):
if isinstance(wrap_like[i], str):
match[i] = bound_args.arguments[wrap_like[i]]
for i, arg in enumerate(wrap_like):
if isinstance(arg, str):
match[i] = bound_args.arguments[arg]

# Cast all DataArrays to Pint Quantities
for arg_name in bound_args.arguments:
Expand Down

0 comments on commit 57bb1e7

Please sign in to comment.