Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes the duplicated reactions that were erroneously not discovered as already existing reactions in the reaction database.
This issue was mentioned here and in #513.
An attempt at creating a unit test that reproduces this is found in the testGenerateReactions module for lack of a better place.
The added unit test generates reactions for 3 input reactants (
HCJ=O, CH2O, and [CH2]OC=O
) through a single reaction family (radical addition to double bond). The one reactionHCJ=O + CH2O <=> [CH2]OC=O
that results from applying this reaction family, is also present in the seed mechanism (
methylformate
) that is imported. It is checked whether the total number of reactions in the final model is equal to the expected number.Importing the library as a reaction library rather than a seed mechanism and only generating 1 reaction is currently not working due to #515.