Example #1
0
 def do_anal(self, alg):  # completion
     """ analyzes alg and prints out inversion and rotations,
         can use your own alg if called with manualsteps"""
     findalg = ops.synmatch(alg, self.alglist)
     print("Gens: " +
           str(ops.genscan(findalg.steps)) + '\n' +
           str(ops.ops['inv'](findalg)) + '\n' +
           str(ops.ops['rotx'](findalg)) + '\n' +
           str(ops.ops['roty'](findalg)) + '\n' +
           str(ops.ops['rotz'](findalg)) + '\n')
Example #2
0
 def do_alg(self, arg1):  # completion
     """ finds and prints corresponding alg to given synonym """
     print(ops.synmatch(arg1, self.alglist))