RuleWorld / nfsim

A general-purpose, stochastic, biochemical reaction simulator for large reaction networks
http://michaelsneddon.net/nfsim/
MIT License
14 stars 9 forks source link

Continuing instead of returning failure when template cannot map to o… #4

Closed jjtapia closed 9 years ago

jjtapia commented 9 years ago

…ne of the symmetric components

The compare method inside of templatemolecule was returning failure when a symmetric component could not map to the template described in the class. This was resulting in the compare method not testing for other possible mappings in subsequent symmetric components, which was resulting in missed mappings in complexes of the form L(s...,s!1).R(s!1,s...)

The solution was to change the return false for a continue, similar to how the method kept checking when it couldn't find an exact template match for a component that it could otherwise map.

This commit partially addresses the bug reported in issue#3