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
base: main
Are you sure you want to change the base?
Conversation
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@@ -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. |
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.
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") |
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.
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?
No description provided.