Path: blob/main/scripts/artin_representations/pull-reps.py
1128 views
1pw_filename = "../../../xyzzy"2password = open(pw_filename, "r").readlines()[0].strip()34from pymongo.mongo_client import MongoClient5C= MongoClient(port=37010)6C['artin'].authenticate('editor', password)7C['numberfields'].authenticate('editor', password)8C['limbo'].authenticate('editor', password)910art=C.artin11rep=art.representations12nfgal=art.field_data1314print("rep is artin representations")15print("nfgal is the nfgalois group database")1617artargs = {'Dim': {'$gte': 2, '$lte': 9}, 'Hide': 0}18allarts=rep.find(artargs)1920logfile=open("artlist", "w")2122for a in allarts:23print(".")24baselabel = str(a['Baselabel'])25numconj = len(a['GaloisConjugates'])26for j in range(numconj):27logfile.write(baselabel+'c'+str(j+1)+"\n")2829logfile.close()303132