From 2eea963b545a3885c18f6abe0f1b0fdb618c07aa Mon Sep 17 00:00:00 2001 From: Mike Taves Date: Wed, 7 Aug 2019 00:10:14 +1200 Subject: [PATCH] fix(MFList): older numpy needs file in binary mode for writetxt (#626) --- flopy/utils/util_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flopy/utils/util_list.py b/flopy/utils/util_list.py index d79c653b35..c9ece34108 100644 --- a/flopy/utils/util_list.py +++ b/flopy/utils/util_list.py @@ -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: