File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -96,9 +96,9 @@ def populate_resonance_algorithms(features=None):
96
96
method_list .append (generate_allyl_delocalization_resonance_structures )
97
97
if features ['is_cyclic' ]:
98
98
method_list .append (generate_aryne_resonance_structures )
99
- if features ['hasNitrogenVal5' ]:
99
+ if features ['hasNitrogenVal5' ] and not features [ 'is_adsorbate' ] :
100
100
method_list .append (generate_N5dc_radical_resonance_structures )
101
- if features ['hasLonePairs' ]:
101
+ if features ['hasLonePairs' ] and not features [ 'is_adsorbate' ] :
102
102
method_list .append (generate_adj_lone_pair_radical_resonance_structures )
103
103
method_list .append (generate_adj_lone_pair_multiple_bond_resonance_structures )
104
104
method_list .append (generate_adj_lone_pair_radical_multiple_bond_resonance_structures )
@@ -130,6 +130,7 @@ def analyze_molecule(mol, save_order=False):
130
130
'is_aryl_radical' : False ,
131
131
'hasNitrogenVal5' : False ,
132
132
'hasLonePairs' : False ,
133
+ 'is_adsorbate' :mol .contains_surface_site (),
133
134
}
134
135
135
136
if features ['is_cyclic' ]:
You can’t perform that action at this time.
0 commit comments