Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
AndrewVSutherland
GitHub Repository: AndrewVSutherland/lmfdb
Path: blob/main/scripts/artin_representations/pull-reps.py
1128 views
1
2
pw_filename = "../../../xyzzy"
3
password = open(pw_filename, "r").readlines()[0].strip()
4
5
from pymongo.mongo_client import MongoClient
6
C= MongoClient(port=37010)
7
C['artin'].authenticate('editor', password)
8
C['numberfields'].authenticate('editor', password)
9
C['limbo'].authenticate('editor', password)
10
11
art=C.artin
12
rep=art.representations
13
nfgal=art.field_data
14
15
print("rep is artin representations")
16
print("nfgal is the nfgalois group database")
17
18
artargs = {'Dim': {'$gte': 2, '$lte': 9}, 'Hide': 0}
19
allarts=rep.find(artargs)
20
21
logfile=open("artlist", "w")
22
23
for a in allarts:
24
print(".")
25
baselabel = str(a['Baselabel'])
26
numconj = len(a['GaloisConjugates'])
27
for j in range(numconj):
28
logfile.write(baselabel+'c'+str(j+1)+"\n")
29
30
logfile.close()
31
32