From c3eb9e2acccc315ae614338546451f1df3c8b77c Mon Sep 17 00:00:00 2001 From: mwtoews Date: Mon, 2 Apr 2018 20:38:33 +1200 Subject: [PATCH] Make numpy format floats as a string --- flopy/modflow/mfsfr2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flopy/modflow/mfsfr2.py b/flopy/modflow/mfsfr2.py index d802fdd144..05c13b1e2a 100644 --- a/flopy/modflow/mfsfr2.py +++ b/flopy/modflow/mfsfr2.py @@ -2608,7 +2608,7 @@ def _get_item2_names(nstrm, reachinput, isfropt, structured=False): return names -def _fmt_string(array, float_format='{}'): +def _fmt_string(array, float_format='{!s}'): fmt_string = '' for field in array.dtype.descr: vtype = field[1][1].lower() @@ -2630,7 +2630,7 @@ def _fmt_string(array, float_format='{}'): return fmt_string -def _fmt_string_list(array, float_format='{}'): +def _fmt_string_list(array, float_format='{!s}'): fmt_string = [] for field in array.dtype.descr: vtype = field[1][1].lower()