Skip to content

Commit

Permalink
fix(ParticleTrackFile.write_shapefile): check for "k" even if "i", "…
Browse files Browse the repository at this point in the history
…j are not present (modflowpy#2294)

* fix for "k", "node" output present with mp7 pathline and timeseries
  • Loading branch information
jlarsen-usgs authored Aug 17, 2024
1 parent 8656e4e commit f86881d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flopy/utils/particletrackfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,11 @@ def write_shapefile(
if "particlegroup" in names:
t.append(ra.particlegroup[0])
t.append(ra.time.max())
if "k" in names:
t.append(ra.k[loc_inds])
if "node" in names:
t.append(ra.node[loc_inds])
else:
if "k" in names:
t.append(ra.k[loc_inds])
if "i" in names:
t.append(ra.i[loc_inds])
if "j" in names:
Expand Down

0 comments on commit f86881d

Please sign in to comment.