Skip to content

Commit

Permalink
Merge 7cb08b0 into 86206ff
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhughes-usgs authored Aug 21, 2021
2 parents 86206ff + 7cb08b0 commit 279a861
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions flopy/utils/zonbud.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import copy
import numpy as np
from itertools import groupby
from collections import OrderedDict
from .utils_def import totim_to_datetime


Expand Down Expand Up @@ -152,9 +151,7 @@ def __init__(

self.izone = izone
self.allzones = np.unique(izone)
self._zonenamedict = OrderedDict(
[(z, "ZONE_{}".format(z)) for z in self.allzones]
)
self._zonenamedict = {z: "ZONE_{}".format(z) for z in self.allzones}

if aliases is not None:
s = (
Expand Down Expand Up @@ -2199,10 +2196,8 @@ def __init__(self, model, izone, extension=".zon", aliases=None):
self._parent.add_package("zon", self)
self.filename = self._parent.name + extension
self.aliases = aliases
self.allzones = [int(zn) for zn in np.unique(izone) if zn != 0]
self._zonenamedict = OrderedDict(
[(zn, "ZONE_{}".format(zn)) for zn in self.allzones]
)
self.allzones = [int(z) for z in np.unique(izone) if z != 0]
self._zonenamedict = {z: "ZONE_{}".format(z) for z in self.allzones}

if aliases is not None:
if not isinstance(aliases, dict):
Expand Down

0 comments on commit 279a861

Please sign in to comment.