Skip to content

Commit

Permalink
test(plotutil): fix syntax causing test failures (#2130)
Browse files Browse the repository at this point in the history
* accidentally broken with switch to ruff
* fixes optional dependency ci tests
  • Loading branch information
wpbonelli authored Mar 28, 2024
1 parent e84f430 commit ed262db
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions flopy/plot/plotutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ed262db

Please sign in to comment.