Skip to content
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

554: Requested changes for hydrologic #556

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

priscavdsluis
Copy link
Contributor

No description provided.

@priscavdsluis priscavdsluis linked an issue Jul 3, 2023 that may be closed by this pull request
@sonarcloud
Copy link

sonarcloud bot commented Jul 3, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@@ -166,7 +167,7 @@ class Comments(INIBasedModel.Comments):
levels: Optional[List[float]]
numlocations: Optional[NonNegativeInt] = Field(0, alias="numLocations")
chainage: Optional[List[float]]
frictionvalues: Optional[List[float]] = Field(
frictionvalues: Optional[List[List[float]]] = Field(
alias="frictionValues"
) # TODO: turn this into List[List[float]], see issue #143.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This todo can now be removed?

@@ -243,7 +243,7 @@ class Comments(CrossSectionDefinition.Comments):
type: Literal["rectangle"] = Field("rectangle")
width: float
height: float
closed: bool = Field(True)
closed: str = Field("no")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing the type and inverting the default value is quite breaking. I'm not sure what the question was, but this might be solved by a custom reader/writer (or flag type) that translates the boolean into yes/no strings?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create branch with Hydrologic requested changes
2 participants