@@ -2035,6 +2035,32 @@ def test_scissors(self):
20352035 self .assertTrue (cycle_scissors [0 ].mol .is_isomorphic (ARCSpecies (label = "check" ,smiles = "[CH2+]C[CH2+]" ).mol ))
20362036 self .assertEqual (len (cycle_scissors ), 1 )
20372037
2038+ benzyl_alcohol = ARCSpecies (label = 'benzyl_alcohol' , smiles = 'c1ccccc1CO' ,
2039+ xyz = """O 2.64838903 0.03033680 1.02963866
2040+ C 2.08223673 -0.09327854 -0.26813441
2041+ C 0.58011672 -0.03951284 -0.19914397
2042+ C -0.09047623 1.18918897 -0.26985124
2043+ C -0.16442536 -1.21163631 -0.00891767
2044+ C -1.48186739 1.24136671 -0.17379396
2045+ C -2.21381021 0.06846364 0.00253129
2046+ C -1.55574847 -1.15724814 0.08689917
2047+ H 2.47222737 0.71379644 -0.89724902
2048+ H 2.41824638 -1.03876722 -0.70676479
2049+ H 0.46950724 2.11319745 -0.39919154
2050+ H -1.99496868 2.19776599 -0.23432175
2051+ H -3.29735459 0.10998171 0.07745660
2052+ H -2.12646340 -2.07132623 0.22966400
2053+ H 0.33744916 -2.17418164 0.06678265
2054+ H 1.91694170 0.12185320 1.66439598""" )
2055+ benzyl_alcohol .bdes = [(7 , 13 )]
2056+ benzyl_alcohol .final_xyz = benzyl_alcohol .get_xyz ()
2057+ species = benzyl_alcohol .scissors (sort_atom_labels = True )
2058+ for spc in species :
2059+ if spc .label != 'H' :
2060+ for i , atom in enumerate (spc .mol .atoms ):
2061+ if atom .radical_electrons :
2062+ self .assertEqual (i , 6 )
2063+
20382064 def test_net_charged_species (self ):
20392065 """Test that we can define, process, and manipulate ions"""
20402066 nh4 = ARCSpecies (label = 'NH4' , smiles = '[NH4+]' , charge = 1 )
0 commit comments