Skip to content

Commit 45a6845

Browse files
mjrenomjreno
authored andcommitted
fix merge
1 parent 3c539dc commit 45a6845

File tree

1 file changed

+14
-20
lines changed

1 file changed

+14
-20
lines changed

flopy/mf6/data/mfstructure.py

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1725,9 +1725,6 @@ class MFSimulationStructure:
17251725
get_data_structure(path : string)
17261726
Returns a data structure if it exists, otherwise returns None. Data
17271727
structure type returned is based on the tuple/list "path"
1728-
tag_read_array
1729-
Searches through all packages and tags any packages with a name that
1730-
indicates they are the READASARRAYS or READARRAYGRID version of a package.
17311728
"""
17321729

17331730
def __init__(self):
@@ -1825,29 +1822,26 @@ def get_data_structure(self, path):
18251822
else:
18261823
return None
18271824

1828-
def tag_read_array(self):
1829-
for key, package_struct in self.package_struct_objs.items():
1825+
def _tag_read_array(self):
1826+
for pkg_spec in self.pkg_spec.values():
18301827
if (
1831-
package_struct.get_data_structure(('options', 'readasarrays'))
1828+
pkg_spec.get_data_structure(('options', 'readasarrays'))
18321829
):
1833-
package_struct.read_as_arrays = True
1830+
pkg_spec.read_as_arrays = True
18341831
elif (
1835-
package_struct.get_data_structure(('options', 'readarraygrid'))
1832+
pkg_spec.get_data_structure(('options', 'readarraygrid'))
18361833
):
1837-
package_struct.read_array_grid = True
1838-
for model_key, model_struct in self.model_struct_objs.items():
1839-
for (
1840-
key,
1841-
package_struct,
1842-
) in model_struct.package_struct_objs.items():
1834+
pkg_spec.read_array_grid = True
1835+
for mdl_spec in self.mdl_spec.values():
1836+
for pkg_spec in mdl_spec.pkg_spec.values():
18431837
if (
1844-
package_struct.get_data_structure(('options', 'readasarrays'))
1838+
pkg_spec.get_data_structure(('options', 'readasarrays'))
18451839
):
1846-
package_struct.read_as_arrays = True
1840+
pkg_spec.read_as_arrays = True
18471841
elif (
1848-
package_struct.get_data_structure(('options', 'readarraygrid'))
1842+
pkg_spec.get_data_structure(('options', 'readarraygrid'))
18491843
):
1850-
package_struct.read_array_grid = True
1844+
pkg_spec.read_array_grid = True
18511845

18521846

18531847
class MFStructure:
@@ -1890,5 +1884,5 @@ def _load(self):
18901884
package.package_abbr
18911885
] = entry[1:]
18921886
# process each package
1893-
self.sim_struct.process_dfn(DfnPackage(package))
1894-
self.sim_struct.tag_read_array()
1887+
self.sim_spec.register(Dfn(package))
1888+
self.sim_spec._tag_read_array()

0 commit comments

Comments
 (0)