@@ -330,14 +330,14 @@ def _generate_permutation_set(self, angles, force_reset=False):
330330 return
331331
332332 label_tolerance = Configuration ().label_tolerance
333- symbols_restricted = get_restricted_symbols (self ._symbols , self ._coordinates , tolerance = label_tolerance )
333+ self . _symbols_restricted = get_restricted_symbols (self ._symbols , self ._coordinates , tolerance = label_tolerance )
334334
335335 # Hungarian algorithm (approximated)
336336 if Configuration ().algorithm == 'hungarian' :
337337 permutation_set = {}
338338 for gen in self ._pg .generators :
339339 rot_coor = rotmol .inv ().apply (self ._coordinates )
340- permutation_set [gen ] = get_permutation_hungarian (gen .matrix_representation , rot_coor , symbols_restricted )
340+ permutation_set [gen ] = get_permutation_hungarian (gen .matrix_representation , rot_coor , self . _symbols_restricted )
341341 self ._permutation_set [dict_key ] = permutation_set
342342
343343 # Brute force algorithm (exact)
@@ -346,7 +346,7 @@ def _generate_permutation_set(self, angles, force_reset=False):
346346
347347 class NotValidPermutation (Exception ): pass
348348
349- for permutation_set in generate_permutation_set (self ._pg .generators , symbols_restricted ):
349+ for permutation_set in generate_permutation_set (self ._pg .generators , self . _symbols_restricted ):
350350
351351 try :
352352 operator_measures = []
@@ -853,16 +853,16 @@ def get_overlaps(orbitals, configurations):
853853 from posym .config import Configuration
854854
855855 Configuration ().algorithm = 'exact'
856- Configuration ().label_tolerance = 0.005
856+ Configuration ().label_tolerance = 0.1
857857
858858 coordinates = [[- 0.7560 , 0.0000 , 0.0000 ],
859859 [ 0.7560 , 0.0000 , 0.0000 ],
860- [- 1 .1404 , 0.6586 , 0.7845 ],
860+ [- 4 .1404 , 0.6586 , 0.7845 ],
861861 [- 1.1404 , 0.3501 , - 0.9626 ],
862862 [- 1.1405 , - 1.0087 , 0.1781 ],
863863 [ 1.1404 , - 0.3501 , 0.9626 ],
864864 [ 1.1405 , 1.0087 , - 0.1781 ],
865- [ 1 .1404 , - 0.6586 , - 0.7845 ]]
865+ [ 4 .1404 , - 0.6586 , - 0.7845 ]]
866866
867867 symbols = ['C' ,'C' ,'H' ,'H' ,'H' ,'H' ,'H' ,'H' ]
868868
@@ -879,3 +879,4 @@ def get_overlaps(orbitals, configurations):
879879 mb = SymmetryMolecule ('C2h' , coordinates , symbols , orientation_angles = [- 90 , 0.0 , 109.987640 ])
880880 print ('CSM: ' , mb .measure )
881881 print ('Coor measure: ' , mb , '(' , norm (mb ), ')' )
882+ # print(mb._symbols_restricted)
0 commit comments