diff --git a/rmgpy/data/kinetics/library.py b/rmgpy/data/kinetics/library.py index 3fd94edc70..9e4afdcc36 100644 --- a/rmgpy/data/kinetics/library.py +++ b/rmgpy/data/kinetics/library.py @@ -236,7 +236,7 @@ def getLibraryReactions(self): """ rxns = [] for entry in self.entries.values(): - if entry._longDesc and 'Originally from reaction library: ' in entry._longDesc: + if self.autoGenerated and entry._longDesc and 'Originally from reaction library: ' in entry._longDesc: lib = [line for line in entry._longDesc.split('\n') if 'Originally from reaction library: ' in line] lib = lib[0].replace('Originally from reaction library: ','') lib = lib.replace('\n','') @@ -245,7 +245,8 @@ def getLibraryReactions(self): duplicate=entry.item.duplicate, reversible=entry.item.reversible, allow_pdep_route=entry.item.allow_pdep_route, elementary_high_p=entry.item.elementary_high_p) - elif entry._longDesc and 'rate rule' in entry._longDesc: #template reaction + rxn.family = self.label #the library the reaction was loaded from (opposed to originally from) + elif self.autoGenerated and entry._longDesc and 'rate rule' in entry._longDesc: #template reaction c = entry._longDesc.split('\n') family_comments = [i for i in c if 'family: ' in i] familyname = family_comments[0].replace('family: ','')