Reaction Enumeration
enumerate_reactions(assemblies, mle_kinds, *, min_temp_ring_size=None)
Enumerate possible reactions among given assemblies.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
assemblies
|
Iterable[Assembly]
|
The assemblies to consider during reaction enumeration. |
required |
mle_kinds
|
Iterable[MLEKind]
|
The kinds of MLEs to consider during reaction enumeration. |
required |
min_temp_ring_size
|
int | None
|
Minimum size of temporary rings to consider during intra-molecular reactions. Reactions forming temporary rings smaller than this size will be ignored. If None, no filtering is applied. Default is None. |
None
|
Yields:
| Type | Description |
|---|---|
Reaction
|
The enumerated and resolved reactions. |
Examples:
>>> from nasap_net import MLEKind, enumerate_reactions
>>> reactions = list(enumerate_reactions(
... assemblies=assemblies,
... mle_kinds=[
... MLEKind(metal='M', leaving='X', entering='L'), # X→L
... MLEKind(metal='M', leaving='L', entering='X'), # L→X
... ],
... ))