Skip to content

Commit

Permalink
Fix: pacify flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Marabotto authored and Julien Marabotto committed Jul 16, 2024
1 parent 94bab2a commit 138b81e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nitransforms/vis.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,11 @@ def plot_quiverdsm(
c_greens = np.zeros((1, 7))
if np.shape(c_blues) == (0,):
c_blues = np.zeros((1, 7))
elif np.shape(c_reds) != (0,) and np.shape(c_greens) != (0,) and np.shape(c_blues) != (0,):
elif (
np.shape(c_reds) != (0,) and \
np.shape(c_greens) != (0,) and \
np.shape(c_blues) != (0,)
):
assert len(np.concatenate((c_reds, c_greens, c_blues))) == len(x) - len(zeros)

c_reds = np.asanyarray(c_reds)
Expand Down

0 comments on commit 138b81e

Please sign in to comment.