From ed262dbfe3a30e147bf7b6fab8c51327e0b64ad3 Mon Sep 17 00:00:00 2001 From: wpbonelli Date: Thu, 28 Mar 2024 12:38:46 -0400 Subject: [PATCH] test(plotutil): fix syntax causing test failures (#2130) * accidentally broken with switch to ruff * fixes optional dependency ci tests --- flopy/plot/plotutil.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/flopy/plot/plotutil.py b/flopy/plot/plotutil.py index 53698861dc..1660f09cb5 100644 --- a/flopy/plot/plotutil.py +++ b/flopy/plot/plotutil.py @@ -2417,10 +2417,12 @@ def intersect_modpath_with_crosssection( oppts[cell], ) idx = [ - i for i, (x, y) in enumerate(zip(m0[0], m1[0])) if x == y + i + for i, (x, y) in enumerate(zip(m0[0], m1[0])) + if x == y == True ] else: - idx = [i for i, x in enumerate(m0[0]) if x] + idx = [i for i, x in enumerate(m0[0]) if x == True] if idx: if cell not in idict: