Skip to content

Commit

Permalink
add aam to its
Browse files Browse the repository at this point in the history
  • Loading branch information
klausweinbauer committed Dec 16, 2024
1 parent 1f0cc46 commit 41c63a3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions fgutils/chem/its.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,21 @@ def _add_its_nodes(ITS, G, H, eta):
n_ITS = eta_G[n]
n_H = eta_H_inv[n_ITS]
if n_ITS is not None and n_H is not None:
node_attributes = {SYMBOL_KEY: d[SYMBOL_KEY], IDX_MAP_KEY: (n, n_H)}
node_attributes = {
SYMBOL_KEY: d[SYMBOL_KEY],
IDX_MAP_KEY: (n, n_H),
AAM_KEY: n_ITS,
}
ITS.add_node(n_ITS, **node_attributes)
for n, d in H.nodes(data=True):
n_ITS = eta_H[n]
n_G = eta_G_inv[n_ITS]
if n_ITS is not None and n_G is not None and n_ITS not in ITS.nodes:
node_attributes = {SYMBOL_KEY: d[SYMBOL_KEY], IDX_MAP_KEY: (n_G, n)}
node_attributes = {
SYMBOL_KEY: d[SYMBOL_KEY],
IDX_MAP_KEY: (n_G, n),
AAM_KEY: n_ITS,
}
ITS.add_node(n_ITS, **node_attributes)


Expand Down

0 comments on commit 41c63a3

Please sign in to comment.