Closed JosepFanals closed 7 months ago
Hi, indeed there was a bug and I've just fixed it in devel
with e197cd8.
However this function is not used for anything critical because it "lives" in the MultiCircuit
.
Please advise Francesca that she should use Cf
and Ct
from the NumericalCircuit
instead. Those account for branch and bus active and are the ones used for numerical processes.
Hi Josep, Hi Santiago,
Thank you for fixing the bug and for the clarification!
Hi Santiago,
Francesca Rossi, a PhD student at CITCEA, noticed the
get_bus_branch_connectivity_matrix()
method may not work as expected. The thing is,branch_list
groups branch data for lines, transformers, etc. Therefore, the row index ofCf
andCt
may be erroneous since thek
index is not cumulative. I am pasting below a fraction of the original code (L3490 ofmulti_circuit.py
):Instead, Francesca proposes to modify it for:
From what I could check, the test suite runs equally on both cases, but I do believe the second block of code is the right one. What do you think?