Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: T3D header is not correct (#356)
* Added ZSurf option for verticalPositionType. * Added a child class that inherrits from QuantityUnitPair that also has a vertical position index. * Fixed the aliases to adhere to the 2D3D manual. * Reverted Time Interpolation back to the original timeInterpolation. Updated testcase data to reflect the changes made to some keywords in the .bc file. * Added support for the timeInterpolation keyword when creating a T3D forcing. * Removed the QuantityUnitPositionPair class again, in favour of a better design. * Fixed failing tests as a result of making the QuantityUnitPair a BaseModel instead of a NamedTuple. * Added new test for the QuantityUnitPair. * Added documentation to the VerticalInterpolation enum. * Added documentation to the TimeInterpolation enum. * Added documentation to the QuantityUnitPair class. * Updated documentation of ForcingBase to the new documentation style. * Added documenation to the T3D class. * Added validation: Ensure the first QuantityUnitPair is for `time`. * Intermediate commit of the new validation. * Intermediate commit of the new validation. * Fixed an error in the validator and fixed formatting. * Fixed some testcases and added a couple of testcases. * Added additional testcases * Added additional testcases * Added additional test cases. * Updated reference data for T3D * Updated the remaining documentation for this file. * autoformat: isort & black * Fixed a bug with the `number_of_verticalpositions`. Implemented review comments. Updated testcases. * Use `Vertical Position` instead of `verticalpositionindex` * Updated keywords for the T3D header and added a test to ensure loading a .bc with T3D block works as expected. * Fixed code smells. * Fixed code smells. * Add failing testcase that should pass * Added a way to support the 'Vertical Position Specification' keyword when reading .bc files. * autoformat: isort & black * Updated the keywords to the new keywords. * Updated error message to be more clear * Added backwards compatibility for the keywords in the .bc file that use spaces. * autoformat: isort & black * Added backwards compatibility for the `Time Interpolation` keyword in a [TimeSeries] block. * Added error when the user forgot to specify the vertpositions field that is required in the root_validator * Fixed the default enum values for timeinterpolation and verticalinterpolation. * Removed the check for this unit as it causes problems on the build server and is not super relevant. * Removed the ForcingBackwardsCompatibilityHelper and instead added a generic root validator that can be used to rename keys. * autoformat: isort & black * Update hydrolib/core/io/bc/models.py Co-authored-by: Prisca van der Sluis <36264671+priscavdsluis@users.noreply.github.com> * Implemented review comments. * autoformat: isort & black Co-authored-by: tim-vd-aardweg <tim-vd-aardweg@users.noreply.github.com> Co-authored-by: Prisca van der Sluis <36264671+priscavdsluis@users.noreply.github.com> Co-authored-by: Arthur van Dam <arthurvd@gmail.com> Co-authored-by: priscavdsluis <priscavdsluis@users.noreply.github.com>
- Loading branch information