Skip to content

Commit

Permalink
Rename iterator variables
Browse files Browse the repository at this point in the history
  • Loading branch information
JanCBrammer committed Dec 24, 2024
1 parent f030d04 commit 31c5c5e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tucan/graph_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,13 @@ def get_attribute_sequences(
m_attrs = dict(m.nodes(data=attribute)) # type: ignore

return [
(attr, *sorted([m_attrs[n] for n in m.neighbors(node)], reverse=True))
for node, attr in m_attrs.items()
(
attr,
*sorted(
[m_attrs[neighbor] for neighbor in m.neighbors(atom)], reverse=True
),
)
for atom, attr in m_attrs.items()
] # type: ignore


Expand Down

0 comments on commit 31c5c5e

Please sign in to comment.