Coverage for SynRBL/SynUtils/common.py: 20%
5 statements
« prev ^ index » next coverage.py v7.4.3, created at 2024-04-11 11:17 +0200
« prev ^ index » next coverage.py v7.4.3, created at 2024-04-11 11:17 +0200
2def update_reactants_and_products(
3 reactions,
4 reaction_col,
5 reactants_col="reactants",
6 products_col="products",
7 symbol=">>",
8):
9 for reaction in reactions:
10 tokens = reaction[reaction_col].split(symbol)
11 reaction[reactants_col] = tokens[0]
12 reaction[products_col] = tokens[1]