-
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
Support crs file for observation cross sections #289
Support crs file for observation cross sections #289
Conversation
Added testcase for the General section.
…ons' of https://github.com/Deltares/HYDROLIB-core into feature/159_Support_CrsFile_for_observation_cross_sections # Conflicts: # hydrolib/core/io/obscrosssection/models.py # tests/io/test_obscrosssection.py
Added an additional validator to the ObservationPointCrossSection class.
…ons' of https://github.com/Deltares/HYDROLIB-core into feature/159_Support_CrsFile_for_observation_cross_sections # Conflicts: # hydrolib/core/io/obscrosssection/models.py # tests/io/test_obscrosssection.py
…nates match the expecter number of coordinates.
…ross section model.
This reverts commit 2fda2ef.
…ons' of https://github.com/Deltares/HYDROLIB-core into feature/159_Support_CrsFile_for_observation_cross_sections # Conflicts: # hydrolib/core/io/ini/util.py
""" | ||
|
||
general: ObservationPointCrossSectionGeneral = ObservationPointCrossSectionGeneral() | ||
crosssections: List[ObservationPointCrossSection] = [] |
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.
The agreed convention for these lists is to call the field the singular form of the object in the list, so in this case:
crosssections: List[ObservationPointCrossSection] = [] | |
observationpointcrosssection: List[ObservationPointCrossSection] = [] |
(but it should be observationcrosssection
)
I don't remember why exactly, but I will ask @arthurvd or @BeardedPlatypus when they get back.
There was a specific reason for it.
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.
Fixed.
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.
Look really nice and well documented!
I do have some remarks. Please take a look and let me know what you think.
There are also 2 code smells, The one about the complexicity ties together with one comment I wrote and the other I think we can ignore, since it has to do with the way we use pydantic validation.
…instead of validating all possible invalid situations.
…rvationCrossSection class.
…of coordinates required.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
No description provided.