Skip to content

Commit 6998e38

Browse files
mjrenomjreno
authored andcommitted
make model dicts consistent
1 parent 07f610c commit 6998e38

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

flopy/mf6/mfmodel.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2231,9 +2231,9 @@ def netcdf_model(mname, mtype, grid_type, mesh=None):
22312231

22322232
# supported => LAYERED
22332233
if mesh:
2234-
attrs["mesh"] = mesh
2234+
attrs["mesh"] = mesh.upper()
22352235

2236-
return attrs
2236+
return {"attrs": attrs}
22372237

22382238
def netcdf_info(self, mesh=None):
22392239
"""Return dictionary of dataset (model) scoped attributes
@@ -2242,10 +2242,6 @@ def netcdf_info(self, mesh=None):
22422242
mesh : str
22432243
mesh type if dataset is ugrid compliant
22442244
"""
2245-
attrs = MFModel.netcdf_model(
2245+
return MFModel.netcdf_model(
22462246
self.name, self.model_type, self.get_grid_type(), mesh
22472247
)
2248-
2249-
res_d = {}
2250-
res_d["attrs"] = attrs
2251-
return res_d

0 commit comments

Comments
 (0)