Skip to content

Commit 349625a

Browse files
Nora KhalilNora Khalil
authored andcommitted
pulling actual atomtypes from reactions in the complimentary node instead of using their atom symbol to make an atomtype
1 parent 0c08e90 commit 349625a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rmgpy/data/kinetics/family.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3111,17 +3111,17 @@ def get_compliment_reg_dim(self, parent, template_rxn_map, new_ext, comp_ext):
31113111
for atm in mol.atoms:
31123112
if atm.label == '':
31133113
#this atom was unlabeled
3114-
unlabeled_atmtype = ATOMTYPES[atm.symbol]
3115-
if unlabeled_atmtype not in unlabeled_atoms_in_comp_rxns:
3114+
unlabeled_atmtype = atm.atomtype
3115+
if unlabeled_atmtype not in unlabeled_atoms_in_comp_rxns:
31163116
unlabeled_atoms_in_comp_rxns.append(unlabeled_atmtype)
31173117
else:
31183118
#this is a labeled atom
31193119
atm_label = int(atm.label.replace('*',''))
31203120
if atm_label not in atom_labeling_in_comp_rxns.keys():
3121-
atom_labeling_in_comp_rxns[atm_label] = [ATOMTYPES[atm.symbol]]
3121+
atom_labeling_in_comp_rxns[atm_label] = [atm.atomtype]
31223122
else:
31233123
existing_atomtypes = atom_labeling_in_comp_rxns[atm_label]
3124-
existing_atomtypes.append(ATOMTYPES[atm.symbol])
3124+
existing_atomtypes.append(atm.atomtype)
31253125
atom_labeling_in_comp_rxns_set = {k: set(v) for k, v in atom_labeling_in_comp_rxns.items()}
31263126

31273127
return atom_labeling_in_comp_rxns_set, unlabeled_atoms_in_comp_rxns

0 commit comments

Comments
 (0)