Skip to content

Commit

Permalink
fix typo in suggested change
Browse files Browse the repository at this point in the history
  • Loading branch information
paigem committed Aug 27, 2021
1 parent 9f79f07 commit 9d04cba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xrft/xrft.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,11 +386,11 @@ def fft(
# raise error if there are multiple coordinates attached to the dimension(s) over which the FFT is taken
for d in dim:
bad_coords = [
cname for cname in da.coords if cname != dim and dim in da[cname].dims
cname for cname in da.coords if cname != d and d in da[cname].dims
]
if bad_coords:
raise ValueError(
f"The input array contains coordinate variable(s) ({bad_coords}) whose dims include the transform dimension(s) `{dim}`. "
f"The input array contains coordinate variable(s) ({bad_coords}) whose dims include the transform dimension(s) `{d}`. "
f"Please drop these coordinates (`.drop({bad_coords}`) before invoking xrft."
)

Expand Down

0 comments on commit 9d04cba

Please sign in to comment.