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')
def do_2gen(self, line): """ finds and prints all 2gen algs from db """ for alg in self.alglist: if ops.genscan(alg.steps) == 2: print(alg)