-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/unst 8490 621 extforce converter boundary condition #717
Feature/unst 8490 621 extforce converter boundary condition #717
Conversation
…es to the `TestMeteo`
…he tests.utils module
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, see my various comments. Maybe we need to talk tomorrow about the (silly) difference between regular polylines and boundary polylines.
tests/data/input/dflowfm_individual_files/polylines/polyline-no-z-with-label.pli
Outdated
Show resolved
Hide resolved
…nditionQuantity` class.
… to accept tracer quantities
…of github.com:Deltares/HYDROLIB-core into feature/621_extforce_converter-initial-condition-file
…-condition-file` branch
…to yes/no from 1/0
…del` or a path to external forcing file and the `_read_old_file` not is used inside the constructor to read the external forcing file if path is given to the converter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
Quality Gate passedIssues Measures |
all the comments here are already done |
Add Converter for the Boundary Condition quantities in the old external forcing file
New Features
Now there is a boundary condition converter
Design
hydrolib/tools/ext_old_to_new/converters.py
as there are a lot of similarities and most probably in the future they will be redesigned, or lots of the repeated lines will be moved upstream to theBaseConverter
super class.ext_old_to_new
is redesigned and replaced with theExternalForcingConverter
classhydrolib/tools/ext_old_to_new/utils.backup_file
funcion is remove as there is now need to enter the function if you actually do not want to backup you file (the function should be called only if you need its functionality) and the condition should be made in the calling script.Formating and Styling
sonar
online tool, these formatter works standalone or with pre-commit hooks.Testing
Data
tests/data/input/boundary-conditions/old-external-boundary_condition_only.ext
tests/data/input/dflowfm_individual_files/polylines/polyline-no-z-no-label.pli
tests/data/input/dflowfm_individual_files/polylines/polyline-no-z-with-label.pli
tests/data/input/dflowfm_individual_files/polylines/polyline-with-z-no-label.pliz
New Tests
tests/dflowfm/extold/test_boundary.py
.tests/dflowfm/extold/test_boundary.py::TestBoundary::test_existing_file
.tests/dflowfm/polyfile/test_polyline_models.py
, currently the polyline failes with the scientific notation, and reads only the the number of dimensions (2*2) will read only the first two numbers in the row even if there is a z, and the z value will only be read if the second dimension is 3 and the extension has to be.pliz
in the same time.tests/tools/test_converters.py::TestBoundaryConverter
.ExternalForcingConverter
class.Old errors
[]
as a default values was converted toField(default_factory=list)