From 5dd8e1eb37d368b2a300f5c3d8453abfb992a648 Mon Sep 17 00:00:00 2001 From: jdhughes-usgs Date: Mon, 30 Mar 2020 18:35:42 -0400 Subject: [PATCH] fix(str): add consistent fixed and free format approach closes #832 --- flopy/modflow/mfstr.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/flopy/modflow/mfstr.py b/flopy/modflow/mfstr.py index b3e6160b86..125d7946e8 100644 --- a/flopy/modflow/mfstr.py +++ b/flopy/modflow/mfstr.py @@ -734,8 +734,7 @@ def load(f, model, nper=None, ext_unit_dict=None): for i in fmt6: istart += i tt = line[istart:].strip().split() - for iaux in range(len(aux_names)): - name = aux_names[iaux] + for iaux, name in enumerate(aux_names): current[ibnd][name] = np.float32(tt[iaux]) # convert indices to zero-based