Skip to content

Commit

Permalink
Apply style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gmgunter committed Aug 17, 2023
1 parent 4f8adef commit 782dfda
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/tophu/multilook.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,20 +66,16 @@ def multilook(arr: da.Array, nlooks: IntOrInts) -> da.Array:
# Warn if the number of looks along any axis is even-valued.
if any(map(util.iseven, nlooks)):
warnings.warn(
(
"one or more components of nlooks is even-valued -- this will result in"
" a phase delay in the multilooked data equivalent to a half-bin shift"
),
"one or more components of nlooks is even-valued -- this will result in"
" a phase delay in the multilooked data equivalent to a half-bin shift",
RuntimeWarning,
)

# Warn if any array dimensions are not integer multiples of `nlooks`.
if any(m % n != 0 for (m, n) in zip(arr.shape, nlooks)):
warnings.warn(
(
"input array shape is not an integer multiple of nlooks -- remainder"
" samples will be excluded from output"
),
"input array shape is not an integer multiple of nlooks -- remainder"
" samples will be excluded from output",
RuntimeWarning,
)

Expand Down

0 comments on commit 782dfda

Please sign in to comment.