Skip to content

Commit

Permalink
fix: pop l when converting graph
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsbck committed Jan 13, 2025
1 parent 0ef7686 commit a4adc29
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jaxley/io/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ def make_jaxley_compatible(
comp_graph.nodes[n]["group"] = [group_ids[comp_graph.nodes[n].pop("id")]]
comp_graph.nodes[n]["radius"] = comp_graph.nodes[n].pop("r")
comp_graph.nodes[n]["length"] = comp_graph.nodes[n].pop("comp_length")
comp_graph.nodes[n].pop("l")

nx.set_node_attributes(comp_graph, 0, "cell_index")

Expand Down

0 comments on commit a4adc29

Please sign in to comment.