You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception has occurred: KeyError
'bottom'
File "D:\dev\imod-python\imod\schemata.py", line 349, in validate
other_obj = kwargs[self.other]
File "D:\dev\imod-python\imod\mf6\pkgbase.py", line 421, in _validate
schema.validate(self.dataset[variable], **kwargs)
File "D:\dev\imod-python\examples\mf6\circle.py", line 114, in
gwf_model["disv"]._validate(imod.mf6.VerticesDiscretization._write_schemata, idomain=idomain )
KeyError: 'bottom'
The text was updated successfully, but these errors were encountered:
I investigated this. This is caused by a missing overrided of the _validate method, where "bottom" is added to the validation kwargs. By shere accident, the models already add this "bottom" to the kwargs:
In GitLab by @luitjansl on May 26, 2023, 17:54
to reproduce, go the example in imod-python\examples\mf6\circle.py
and add the following line at line number 114
gwf_model["disv"]._validate(imod.mf6.VerticesDiscretization._write_schemata, idomain=idomain )
this crashes and gives the following message:
Exception has occurred: KeyError
'bottom'
File "D:\dev\imod-python\imod\schemata.py", line 349, in validate
other_obj = kwargs[self.other]
File "D:\dev\imod-python\imod\mf6\pkgbase.py", line 421, in _validate
schema.validate(self.dataset[variable], **kwargs)
File "D:\dev\imod-python\examples\mf6\circle.py", line 114, in
gwf_model["disv"]._validate(imod.mf6.VerticesDiscretization._write_schemata, idomain=idomain )
KeyError: 'bottom'
The text was updated successfully, but these errors were encountered: