harm-nomden-sweco / ribasim_lumping

MIT License
2 stars 0 forks source link

Problem with adding 'two stage pump' into network #84

Open JvanHouwelingen opened 8 months ago

JvanHouwelingen commented 8 months ago

Within the D-Hydro model a location exist with two (parallel) pump structures. When including both pumps (pump stages) as a split location I ran into a problem when generating the ribasim lumping network (network.generate_ribasim_lumping_network). The error occurs in generate_ribasim_network l. 53: Length of values does not match length of index.

I think the error originates from l. 34. Where the number of split edges and number of split_nodes_edges starts to deviate. Probably because both pumps point to the same edge number.

When excluding one of the pumps, the script works.