-
Notifications
You must be signed in to change notification settings - Fork 6
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
connectivity refactor #828
Conversation
@visr regarding #825: I had 2 tests sometimes failing which I think I now fixed:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had a few comments.
Apart from them, it looks good to me.
core/src/io.jl
Outdated
for i in 1:length(flow_vertical_dict_inverse) | ||
id = flow_vertical_dict_inverse[i] | ||
push!(from_node_id, id.value) | ||
push!(to_node_id, id.value) | ||
push!(unique_edge_ids_flow, missing) | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for i in 1:length(flow_vertical_dict_inverse) | |
id = flow_vertical_dict_inverse[i] | |
push!(from_node_id, id.value) | |
push!(to_node_id, id.value) | |
push!(unique_edge_ids_flow, missing) | |
end | |
for id in flow_vertical_dict_inverse | |
push!(from_node_id, id.value) | |
push!(to_node_id, id.value) | |
push!(unique_edge_ids_flow, missing) | |
end |
core/src/io.jl
Outdated
for i in 1:length(flow_dict_inverse) | ||
from_id, to_id = flow_dict_inverse[i] | ||
push!(from_node_id, from_id.value) | ||
push!(to_node_id, to_id.value) | ||
push!(unique_edge_ids_flow, graph[from_id, to_id].id) | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for i in 1:length(flow_dict_inverse) | |
from_id, to_id = flow_dict_inverse[i] | |
push!(from_node_id, from_id.value) | |
push!(to_node_id, to_id.value) | |
push!(unique_edge_ids_flow, graph[from_id, to_id].id) | |
end | |
for (from_id, to_id) in flow_dict_inverse | |
push!(from_node_id, from_id.value) | |
push!(to_node_id, to_id.value) | |
push!(unique_edge_ids_flow, graph[from_id, to_id].id) | |
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regarding this and previous one: I deliberately do not do this, to ensure the order is correct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So you verified that iterating through it and indexing one-by-one doesn't behave the same?
Fixes #814.