Skip to content

Commit

Permalink
fix(mflist): default value not working (#812)
Browse files Browse the repository at this point in the history
* Close #811
  • Loading branch information
langevin-usgs committed Feb 13, 2020
1 parent 0d15251 commit 4a885a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flopy/utils/util_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import warnings
import numpy as np
from ..datbase import DataInterface, DataListInterface, DataType
from ..utils.recarray_utils import create_empty_recarray

try:
from numpy.lib import NumpyVersion
Expand Down Expand Up @@ -122,8 +123,7 @@ def plotable(self):
return True

def get_empty(self, ncell=0):
d = np.zeros(ncell, dtype=self.dtype)
d[:] = -1.0E+10
d = create_empty_recarray(ncell, self.dtype, default_value=-1.0E+10)
return d

def export(self, f, **kwargs):
Expand Down

0 comments on commit 4a885a1

Please sign in to comment.