Skip to content

Commit

Permalink
Merge pull request #34 from leoisl/fix/fix_colouring_of_blackhole_pla…
Browse files Browse the repository at this point in the history
…smids

fix: now setting the default colour for blackhole plasmids instead of erroring out with KeyError
  • Loading branch information
leoisl authored Nov 27, 2023
2 parents 49ac9ed + fa966d2 commit 1b0a6c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plasnet/community_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,4 @@ def filter_by_distance(self, distance_threshold: float) -> None:

def recolour_nodes(self, other_community: "CommunityGraph") -> None:
for node in self.nodes:
self._node_to_colour[node] = other_community._node_to_colour[node]
self._node_to_colour[node] = other_community._get_node_color(node)

0 comments on commit 1b0a6c3

Please sign in to comment.