Skip to content

Commit

Permalink
fix(MFList): older numpy needs file in binary mode for writetxt (#626)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwtoews authored and langevin-usgs committed Aug 6, 2019
1 parent 648eeba commit 2eea963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flopy/utils/util_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ def write_transient(self, f, single_per=None, forceInternal=False):

if kper_vtype == np.recarray:
name = f.name
if self.__binary:
if self.__binary or not numpy114:
f.close()
# switch file append mode to binary
with open(name, 'ab+') as f:
Expand Down

0 comments on commit 2eea963

Please sign in to comment.