Closed samvanderzwan closed 5 months ago
Hi @samvanderzwan , I looked at the error and quickly found the source for it. I created a hotfix PR, but I cannot promise that this will be released very quickly. There is always the possibility to checkout the respective branch or to change the small part in your own code (see here).
We made the release finally.
When setting a circ pump const pressure to in service to False then I get the following error in pandapipes:
File "\pandapipes\component_models\component_toolbox.py", line 154, in set_fixed_node_entries juncts, press_sum, number = _sum_by_group(use_numba, junctions[mask], values[mask], IndexError: boolean index did not match indexed array along dimension 0; dimension is 2 but corresponding boolean dimension is 1
This is the code I am running:
I have 8 nodes and 6 pipes 1 consumer cluster which is modeled with a control valve with a fixed mass flow rate. 2 production cluster modeled by a parallel control valve and a const pressure pump. One of the const pressure pump is set to in service false, this results in the given error. When you remove this pump the example runs.
We are running on Windows with Python 3.9 and we are using pandapipes 0.9.0