######################### # Generate Random Elements ######################### for i in range(0, len(groups)):
ID = str(i + 1)
print ('Generating Random Elements for Group '+ID) # Start new GAP session
proc = Popen([GAP, '-q', '-o', MEMORY], stdin=PIPE, stdout=PIPE, stderr=STDOUT, encoding='utf8') # Declare Global Variables
proc.stdin.write('ID := "'+ID+'";')
proc.stdin.write('nrRandomElements := '+str(nrRandomElements)+';')
proc.stdin.write('groups := '+groups[i]+';') # Generatate Random Elements
proc.stdin.write('ReadPackage("WPE","dev/conjugacyProblem/genRandomElements.g");') # Wait until GAP session finishes or we exceed maximal duration of this session try:
outs, errs = proc.communicate(timeout=TIMEOUT) except TimeoutExpired:
proc.kill()
print (bcolors.FAIL + 'TimeoutExpired: killed process' + bcolors.ENDC)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.