Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions autotest/t004_test_utilarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,10 @@ def test_mflist():
fluxcol = 'flux{}'.format(per)
dfper = df.dropna(subset=[fluxcol], axis=0).copy()
dfper.rename(columns={fluxcol: 'flux'}, inplace=True)
assert np.array_equal(dfper[['k', 'i', 'j', 'flux']].to_records(index=False), data)
dfdata = dfper[['k', 'i', 'j', 'flux']].to_records(index=False)
dfdata = dfdata.astype(data.dtype)
errmsg = 'data not equal:\n {}\n {}'.format(dfdata, data)
assert np.array_equal(dfdata, data), errmsg

m4ds = ml.wel.stress_period_data.masked_4D_arrays
sp_data = flopy.utils.MfList.masked4D_arrays_to_stress_period_data \
Expand Down Expand Up @@ -792,7 +795,7 @@ def test_util3d_reset():
# test_util2d_external_fixed_nomodelws()
# test_util2d_external_fixed_path_nomodelws()
# test_transient2d()
#test_transient3d()
# test_transient3d()
# test_util2d()
# test_util3d()
# test_how()
Binary file modified examples/data/mf6/test003_gwfs_disv/test003_gwfs_disv.dbf
Binary file not shown.
Binary file modified examples/data/mf6/test003_gwfs_disv/test003_gwfs_disv.shp
Binary file not shown.
Binary file modified examples/data/mf6/test003_gwfs_disv/test003_gwfs_disv.shx
Binary file not shown.
1 change: 0 additions & 1 deletion flopy/utils/util_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,6 @@ def get_dataframe(self, squeeze=True):
dfi = dfi.set_index(names)
else:
dfi = pd.DataFrame.from_records(recs)
# dfi = dfi.set_index(names)
dfg = dfi.groupby(names)
count = dfg[varnames[0]].count().rename('n')
if (count > 1).values.any():
Expand Down