Skip to content

add

add(reaction)

Appends a Reaction to the end of the catalogue, updating the internal name-index and serialized-key index so that the new reaction is immediately accessible by verbatim string or serialized key. Duplicate checking is not performed here; call Network.check_unique_reactions separately if needed.

Parameters

reaction : Reaction
The Reaction instance to append to the catalogue.

Raises

ValueError
If reaction is not a Reaction instance.