Could also assert that they are part of the same Module of course still, i.e. with is_same_network. Also distance should be able to not just compute a distance for a single comp, but also between N <-> N, 1 <-> N or N <-> 1 compartments and return a vector.
EDIT: should be trivial if #447 is merged, since cell.branch(0).comp(0).xyzr works.
Hey @manuelgloeckler are you still working on this or do you need any help? Would be happy to collab on this as well (incl the graph stuff). Lemme know.
In line with
connect
I think it might be sensible to movedistance
out ofCompView
and to somewhere else such that the following works.Could also assert that they are part of the same Module of course still, i.e. with
is_same_network
. Also distance should be able to not just compute a distance for a single comp, but also between N <-> N, 1 <-> N or N <-> 1 compartments and return a vector.EDIT: should be trivial if #447 is merged, since
cell.branch(0).comp(0).xyzr
works.