Skip to content

Commit

Permalink
fix(remove_package): fixed remove_package to rebuild namefile recarra…
Browse files Browse the repository at this point in the history
…y correctly after removing package - issue #776 (#784)

Close #776
  • Loading branch information
spaulins-usgs authored and langevin-usgs committed Jan 17, 2020
1 parent 061c727 commit 102d25b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flopy/mf6/mfmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,8 @@ def remove_package(self, package_name):
for item in package_data:
if item[1] != package._filename:
if new_rec_array is None:
new_rec_array = np.rec.array(item, package_data.dtype)
new_rec_array = np.rec.array([item.tolist()],
package_data.dtype)
else:
new_rec_array = np.hstack((item, new_rec_array))
except:
Expand Down

0 comments on commit 102d25b

Please sign in to comment.