-
Notifications
You must be signed in to change notification settings - Fork 2
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
typo in allowed columns for setup_pipes #173
Comments
@jeroenwinkelhorst could you share a reproducible example that shows the unexpected behavior? That makes it easier to debug and we could also directly add it as a test upon fixing the bug. If you have a suggestion what exactly to change in the code, you are also welcome to do a suggestion or open a PR. |
Hi Jelmer, an reproducable example is too much effort for this small bug. In https://github.com/Deltares/hydromt_delft3dfm/blob/main/hydromt_delft3dfm/dflowfm.py in the function Current:
Fixed:
|
This is already very helpful, thanks! |
Version checks
Reproducible Example
fm.setup_pipes(region={"geom": "input/region.shp"}, pipes_fn=fn_conduit_preproc, friction_type="Manning")
fn_conduit_preproc
contains pipe geometry with the columns ['branchid', 'width', 'height', 'invlev_up', 'invlev_dn','frictionvalue', 'shape', 'geometry']
Current behaviour
column invlev_dn is dropped and replace with a default value
Desired behaviour
use the values in the column invlev_dn
Additional context
variable _allowed_columns contains a type "inlev_dn" should be "invlev_dn"
The text was updated successfully, but these errors were encountered: