-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rebase database test #196
Merged
connie
merged 7 commits into
ReactionMechanismGenerator:master
from
nyee:rebaseDatabaseTest
Mar 31, 2014
Merged
Rebase database test #196
connie
merged 7 commits into
ReactionMechanismGenerator:master
from
nyee:rebaseDatabaseTest
Mar 31, 2014
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This function gives the boolean of whether two LogicOr objects are equivilant or not. I needed this for database checking
The function equivilant and isSpecificCaseOf for GroupAtom now checks the list of charges and atom label
The function isIsomorphic was meant to compare molecules to groups, therefore it respects wildcards (seeing as a molecule will never have an atom named Cs or Ct). However, this makes the function isIsomorphic not useful when tryint to compare two groups. I've created a new function isIdentical which will not respect wildcards and can tell if two groups are the same.
This function is used to check for malformed kinetic families. I have also removed the function isWellFormed from base.py because it is deprecated by this new function (and also didn't work due to the many changes we've been making). The new function checks for: -rule labels that have group names which do not exist in groups.py -rule adjLists that do not match with the corresponding adj list in groups.py -Each group must exist in the tree -Each group adjList must actually be a more specific case of it's parent's adjList
Coded another check in checkWellFormed to see if each node is unique inside of a family.
@@ -349,9 +357,17 @@ def isSpecificCaseOf(self, other): | |||
if radical1 == radical2 and spin1 == spin2: break | |||
else: | |||
return False | |||
#Each charge in self must have an equivalent in other | |||
for charge1 in self.charge: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should have been other.charge
. Fixing now.
(update: I now think the line below should have been other.charge
😊)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Includes the new checks I've been making to make sure the database is well formed.