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
Bug description
Modflow6Simulation.from_imod5_data does not work when constant is in PRJ file.
Minor issue, it can be easily replaced by a contstant IDF, but thought this should work so submitted it.
Steps to reproduce
What error message do you get?
File "c:\data\projdirs\Peelvenen\Fase1_OLO\models\Model_Bugmelding\RUNFILES\BASIS1\BASIS1_STAT-MF6-COND-imodpython\src\mf6.py", line 67, in mf6_simulation_from_prj
simulation = Modflow6Simulation.from_imod5_data(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\data\projdirs\iMOD-Suite-tutorial_03.pixi\envs\default\Lib\site-packages\imod\logging\logging_decorators.py", line 32, in wrapper
return_value = fun(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "c:\data\projdirs\iMOD-Suite-tutorial_03.pixi\envs\default\Lib\site-packages\imod\mf6\simulation.py", line 1422, in from_imod5_data
groundwaterFlowModel = GroundwaterFlowModel.from_imod5_data(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\data\projdirs\iMOD-Suite-tutorial_03.pixi\envs\default\Lib\site-packages\imod\logging\logging_decorators.py", line 32, in wrapper
return_value = fun(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "c:\data\projdirs\iMOD-Suite-tutorial_03.pixi\envs\default\Lib\site-packages\imod\mf6\model_gwf.py", line 357, in from_imod5_data
drn_pkg = Drainage.from_imod5_data(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\data\projdirs\iMOD-Suite-tutorial_03.pixi\envs\default\Lib\site-packages\imod\mf6\drn.py", line 272, in from_imod5_data
regridded_package_data["conductance"] = distribute_drn_conductance(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\data\projdirs\iMOD-Suite-tutorial_03.pixi\envs\default\Lib\site-packages\imod\util\dims.py", line 15, in decorator
x = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "c:\data\projdirs\iMOD-Suite-tutorial_03.pixi\envs\default\Lib\site-packages\imod\prepare\topsystem\conductance.py", line 210, in distribute_drn_conductance
PLANAR_GRID.validate(conductance)
File "c:\data\projdirs\iMOD-Suite-tutorial_03.pixi\envs\default\Lib\site-packages\imod\schemata.py", line 139, in validate
schema.validate(obj, **kwargs)
File "c:\data\projdirs\iMOD-Suite-tutorial_03.pixi\envs\default\Lib\site-packages\imod\schemata.py", line 239, in validate
actual = tuple(obj.dims)
^^^^^^^^
AttributeError: 'numpy.float64' object has no attribute 'dims'. Did you mean: 'dumps'?
Model_Bugmelding\RUNFILES\BASIS1\BASIS1_STAT-MF6-COND-imodpython\02 RUN MODEL.bat
- in deze batch wel de verwijzing naar python installatie goed zetten
Om het model met iMOD5 door te rekenen (inclusief de HFB en een constante ingevuld onder CONDUCTANCE) N.B. dit werkt.
Let op
als je het model met iMOD5 runt komen de resulten te staan in Model_Bugmelding\RESULTS
De iMOD python berekeningen worden in een folder RESULTS weggeschreven op de locatie waar de berekening ook aangeroepen wordt.
Desktop (please complete the following information):
OS: Windows 11
iMOD Python Version 0.18.1
Additional context
Add any other context about the problem here. The more information you can
provide us, the quicker we respond and fix the problem.
The text was updated successfully, but these errors were encountered:
Bug description
Modflow6Simulation.from_imod5_data does not work when constant is in PRJ file.
Minor issue, it can be easily replaced by a contstant IDF, but thought this should work so submitted it.
Steps to reproduce
File "c:\data\projdirs\Peelvenen\Fase1_OLO\models\Model_Bugmelding\RUNFILES\BASIS1\BASIS1_STAT-MF6-COND-imodpython\src\mf6.py", line 67, in mf6_simulation_from_prj
simulation = Modflow6Simulation.from_imod5_data(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\data\projdirs\iMOD-Suite-tutorial_03.pixi\envs\default\Lib\site-packages\imod\logging\logging_decorators.py", line 32, in wrapper
return_value = fun(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "c:\data\projdirs\iMOD-Suite-tutorial_03.pixi\envs\default\Lib\site-packages\imod\mf6\simulation.py", line 1422, in from_imod5_data
groundwaterFlowModel = GroundwaterFlowModel.from_imod5_data(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\data\projdirs\iMOD-Suite-tutorial_03.pixi\envs\default\Lib\site-packages\imod\logging\logging_decorators.py", line 32, in wrapper
return_value = fun(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "c:\data\projdirs\iMOD-Suite-tutorial_03.pixi\envs\default\Lib\site-packages\imod\mf6\model_gwf.py", line 357, in from_imod5_data
drn_pkg = Drainage.from_imod5_data(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\data\projdirs\iMOD-Suite-tutorial_03.pixi\envs\default\Lib\site-packages\imod\mf6\drn.py", line 272, in from_imod5_data
regridded_package_data["conductance"] = distribute_drn_conductance(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\data\projdirs\iMOD-Suite-tutorial_03.pixi\envs\default\Lib\site-packages\imod\util\dims.py", line 15, in decorator
x = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "c:\data\projdirs\iMOD-Suite-tutorial_03.pixi\envs\default\Lib\site-packages\imod\prepare\topsystem\conductance.py", line 210, in distribute_drn_conductance
PLANAR_GRID.validate(conductance)
File "c:\data\projdirs\iMOD-Suite-tutorial_03.pixi\envs\default\Lib\site-packages\imod\schemata.py", line 139, in validate
schema.validate(obj, **kwargs)
File "c:\data\projdirs\iMOD-Suite-tutorial_03.pixi\envs\default\Lib\site-packages\imod\schemata.py", line 239, in validate
actual = tuple(obj.dims)
^^^^^^^^
AttributeError: 'numpy.float64' object has no attribute 'dims'. Did you mean: 'dumps'?
An example model can be downloaded here:
Model, dit is zelfde model als in HFB issue melding, 1x downloaden is genoeg
Als je het model uitpakt run fix_path.exe om alle paden (oa in PRJ files) goed te zetten:
Zonder constante kan het model doorgerekend worden met iMOD python. Run hiervoor onderstaande 2 batch files. N.B. dit werkt.
- in deze batch wel de verwijzing naar python installatie goed zetten
Met Constante in PRJ rekent het model niet met iMOD python. Run hiervoor onderstaande 2 batch files. N.B. dit werkt niet.
- in deze batch wel de verwijzing naar python installatie goed zetten
Om het model met iMOD5 door te rekenen (inclusief de HFB en een constante ingevuld onder CONDUCTANCE) N.B. dit werkt.
Let op
als je het model met iMOD5 runt komen de resulten te staan in Model_Bugmelding\RESULTS
De iMOD python berekeningen worden in een folder RESULTS weggeschreven op de locatie waar de berekening ook aangeroepen wordt.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here. The more information you can
provide us, the quicker we respond and fix the problem.
The text was updated successfully, but these errors were encountered: