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
Describe the bug
The following validation errors happen with test case e02_f002_c100_longculvert:
(.hydrolib) PS C:\Software\delft3d\test\deltares_testbench\data\cases\e02_f002_c100_longculvert> python.exe C:\Software\HYDROLIB-core\hydrolib\tools\ext_old_to_new\cli.py --mdufile tunnel.mdu
Traceback (most recent call last):
File "C:\Software\HYDROLIB-core\hydrolib\core\basemodel.py", line 71, in init
super().init(**data)
File "C:\Users\sumihar\virtualenvs.hydrolib\Lib\site-packages\pydantic\v1\main.py", line 341, in init
raise validation_error
pydantic.v1.error_wrappers.ValidationError: 3 validation errors for LegacyFMModel
numerics -> zlayercenterbedvel
value could not be parsed to a boolean (type=type_error.bool)
wind -> root
Unknown keywords are detected in section: 'Wind', '['stericcorrection']' (type=value_error)
processes -> root
Unknown keywords are detected in section: 'Processes', '['dtmassbalance']' (type=value_error)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Software\HYDROLIB-core\hydrolib\tools\ext_old_to_new\main_converter.py", line 409, in from_mdu
fm_model = LegacyFMModel(mdu_file, recurse=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Software\HYDROLIB-core\hydrolib\core\basemodel.py", line 931, in init
super().init(*args, **kwargs)
File "C:\Software\HYDROLIB-core\hydrolib\core\basemodel.py", line 91, in init
raise ValidationError([ErrorWrapper(e, loc=identifier)], self.class)
pydantic.v1.error_wrappers.ValidationError: 3 validation errors for LegacyFMModel
tunnel.mdu -> numerics -> zlayercenterbedvel
value could not be parsed to a boolean (type=type_error.bool)
tunnel.mdu -> wind -> root
Unknown keywords are detected in section: 'Wind', '['stericcorrection']' (type=value_error)
tunnel.mdu -> processes -> root
Unknown keywords are detected in section: 'Processes', '['dtmassbalance']' (type=value_error)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Software\HYDROLIB-core\hydrolib\tools\ext_old_to_new\cli.py", line 126, in
main()
File "C:\Software\HYDROLIB-core\hydrolib\tools\ext_old_to_new\cli.py", line 96, in main
converter = ExternalForcingConverter.from_mdu(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Software\HYDROLIB-core\hydrolib\tools\ext_old_to_new\main_converter.py", line 422, in from_mdu
data, mdu_info = ExternalForcingConverter.get_mdu_info(mdu_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Software\HYDROLIB-core\hydrolib\tools\ext_old_to_new\main_converter.py", line 360, in get_mdu_info
mdu_time = Time(**time_data)
^^^^^^^^^^^^^^^^^
File "C:\Software\HYDROLIB-core\hydrolib\core\basemodel.py", line 88, in init
raise e
File "C:\Software\HYDROLIB-core\hydrolib\core\basemodel.py", line 71, in init
super().init(**data)
File "C:\Users\sumihar\virtualenvs.hydrolib\Lib\site-packages\pydantic\v1\main.py", line 341, in init
raise validation_error
pydantic.v1.error_wrappers.ValidationError: 1 validation error for Time root
Unknown keywords are detected in section: 'Time', '['timestepanalysis']' (type=value_error)
To Reproduce
Steps to reproduce the behavior:
Go to 'C:\Software\delft3d\test\deltares_testbench\data\cases\e02_f002_c100_longculvert'
Run '(.hydrolib) PS C:\Software\delft3d\test\deltares_testbench\data\cases\e02_f002_c100_longculvert> python.exe C:\Software\HYDROLIB-core\hydrolib\tools\ext_old_to_new\cli.py --mdufile tunnel.mdu'
See error
Expected behavior
If those are obsolete parameters, please remove them. Otherwise, if they are not relevant for the extforce, we need to discuss further what to do.
Screenshots
If applicable, add screenshots to help explain your problem.
Version info (please complete the following information):
OS: Windows
Version [e.g. 0.1.5]
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
The following validation errors happen with test case e02_f002_c100_longculvert:
(.hydrolib) PS C:\Software\delft3d\test\deltares_testbench\data\cases\e02_f002_c100_longculvert> python.exe C:\Software\HYDROLIB-core\hydrolib\tools\ext_old_to_new\cli.py --mdufile tunnel.mdu
Traceback (most recent call last):
File "C:\Software\HYDROLIB-core\hydrolib\core\basemodel.py", line 71, in init
super().init(**data)
File "C:\Users\sumihar\virtualenvs.hydrolib\Lib\site-packages\pydantic\v1\main.py", line 341, in init
raise validation_error
pydantic.v1.error_wrappers.ValidationError: 3 validation errors for LegacyFMModel
numerics -> zlayercenterbedvel
value could not be parsed to a boolean (type=type_error.bool)
wind -> root
Unknown keywords are detected in section: 'Wind', '['stericcorrection']' (type=value_error)
processes -> root
Unknown keywords are detected in section: 'Processes', '['dtmassbalance']' (type=value_error)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Software\HYDROLIB-core\hydrolib\tools\ext_old_to_new\main_converter.py", line 409, in from_mdu
fm_model = LegacyFMModel(mdu_file, recurse=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Software\HYDROLIB-core\hydrolib\core\basemodel.py", line 931, in init
super().init(*args, **kwargs)
File "C:\Software\HYDROLIB-core\hydrolib\core\basemodel.py", line 91, in init
raise ValidationError([ErrorWrapper(e, loc=identifier)], self.class)
pydantic.v1.error_wrappers.ValidationError: 3 validation errors for LegacyFMModel
tunnel.mdu -> numerics -> zlayercenterbedvel
value could not be parsed to a boolean (type=type_error.bool)
tunnel.mdu -> wind -> root
Unknown keywords are detected in section: 'Wind', '['stericcorrection']' (type=value_error)
tunnel.mdu -> processes -> root
Unknown keywords are detected in section: 'Processes', '['dtmassbalance']' (type=value_error)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Software\HYDROLIB-core\hydrolib\tools\ext_old_to_new\cli.py", line 126, in
main()
File "C:\Software\HYDROLIB-core\hydrolib\tools\ext_old_to_new\cli.py", line 96, in main
converter = ExternalForcingConverter.from_mdu(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Software\HYDROLIB-core\hydrolib\tools\ext_old_to_new\main_converter.py", line 422, in from_mdu
data, mdu_info = ExternalForcingConverter.get_mdu_info(mdu_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Software\HYDROLIB-core\hydrolib\tools\ext_old_to_new\main_converter.py", line 360, in get_mdu_info
mdu_time = Time(**time_data)
^^^^^^^^^^^^^^^^^
File "C:\Software\HYDROLIB-core\hydrolib\core\basemodel.py", line 88, in init
raise e
File "C:\Software\HYDROLIB-core\hydrolib\core\basemodel.py", line 71, in init
super().init(**data)
File "C:\Users\sumihar\virtualenvs.hydrolib\Lib\site-packages\pydantic\v1\main.py", line 341, in init
raise validation_error
pydantic.v1.error_wrappers.ValidationError: 1 validation error for Time
root
Unknown keywords are detected in section: 'Time', '['timestepanalysis']' (type=value_error)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
If those are obsolete parameters, please remove them. Otherwise, if they are not relevant for the extforce, we need to discuss further what to do.
Screenshots
If applicable, add screenshots to help explain your problem.
Version info (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: