Skip to content

Commit

Permalink
fix(mp7particledata.py): avoid attribute error (#2441)
Browse files Browse the repository at this point in the history
Fix #2440 and one more similar case
  • Loading branch information
wpbonelli authored Feb 8, 2025
1 parent 069d543 commit 9385daa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flopy/modpath/mp7particledata.py
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,7 @@ def __init__(self, subdivisiondata=None, lrcregions=None):
if len(lrcregions) != shape:
raise ValueError(
"{}: lrcregions data must have {} rows but a total of {} rows "
"were provided.".format(self.name, shape, lrcregions.shape[0])
"were provided.".format(self.name, shape, len(lrcregions))
)

# validate that there are 6 columns in each lrcregions entry
Expand Down Expand Up @@ -1319,7 +1319,7 @@ def __init__(self, subdivisiondata=None, nodes=None):
if len(nodes) != shape:
raise ValueError(
"{}: node data must have {} rows but a total of {} rows were "
"provided.".format(self.name, shape, nodes.shape[0])
"provided.".format(self.name, shape, len(nodes))
)

totalcellcount = 0
Expand Down

0 comments on commit 9385daa

Please sign in to comment.