Skip to content

Commit

Permalink
fix chain id check in atomic edges #199
Browse files Browse the repository at this point in the history
  • Loading branch information
a-r-j committed Jul 27, 2022
1 parent 95735aa commit 409e515
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphein/protein/edges/atomic.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def add_atomic_edges(G: nx.Graph, tolerance: float = 0.56) -> nx.Graph:
continue

# Check atoms are in the same chain
if not (chain_1 and chain_2):
if not (chain_1 == chain_2):
continue

if G.has_edge(node_1, node_2):
Expand Down

0 comments on commit 409e515

Please sign in to comment.