Path: blob/main/scripts/belyi/old/sample_example.py
1128 views
import db1Cw = db.getDBconnection_write()23belyidb = Cw['belyi']4passports = belyidb['passports']5galmaps = belyidb['galmaps']67# sample passport8sample_pass = {9'plabel':'6T15-[5,5,5]-51-51-51-g1',10'deg' : 6,11'group' : '6T15',12'geomtype' : 'H',13'abc' : [5,5,5],14'lambdas' : [[5,1], [5,1], [5,1]],15'g' : 1,16'maxdegbf' : 2,17'pass_size' : 8,18'num_orbits' : 319}2021# sample galmap22sample_galmap = {23'label':'6T15-[5,5,5]-51-51-51-g1-a',24'plabel' : '6T15-[5,5,5]-51-51-51-g1',25'triples' : [[[ 2, 3, 4, 5, 1, 6 ],[ 3, 1, 4, 6, 5, 2 ],[ 5, 2, 6, 1, 3, 4 ]],[[ 2, 3, 4, 5, 1, 6 ],[ 1, 3, 5, 6, 4, 2 ],[ 3, 1, 6, 2, 5, 4 ]]],26'aut_group' : [[ 3, 6, 5, 2, 1, 4 ],[ 5, 4, 1, 6, 2, 3 ]],27'base_field' : [4,-1,1],28'embeddings' : [[0.500000, 1.93649], [0.500000, -1.93649]],29'curve' : "y^2 = x^3 + 1/160000*(657*nu - 5076)*x + 1/6400000*(-20013*nu - 34044)",30'map' :"(1/200000*(11745*nu - 17172)*x^2 + 1/625000*(19197*nu - 41796)*x + 1/32000000000*(12725667*nu - 373299516))/(x^6 + 1/200*(21*nu + 12)*x^5 + 1/32000*(1935*nu + 8532)*x^4 + 1/3200000*(-106701*nu + 262020)*x^3 + 1/5120000000*(-28837917*nu - 9389628)*x^2 + 1/5120000000000*(70827885*nu - 3813131268)*x + 1/4096000000000000*(36228501693*nu - 41819362884))*y + (1/200000*(-11745*nu + 17172)*x^3 + 1/80000000*(-26973*nu + 1192644)*x^2 + 1/160000000000*(668868435*nu + 309542148)*x + 1/64000000000000*(35387022501*nu - 38387253348))/(x^6 + 1/200*(21*nu + 12)*x^5 + 1/32000*(1935*nu + 8532)*x^4 + 1/3200000*(-106701*nu + 262020)*x^3 + 1/5120000000*(-28837917*nu - 9389628)*x^2 + 1/5120000000000*(70827885*nu - 3813131268)*x + 1/4096000000000000*(36228501693*nu - 41819362884))",31'orbit_size' : 2,32'deg' : 6,33'group' : '6T15',34'geomtype' : 'H',35'abc' : [5,5,5],36'abc_sorted' : [5,5,5],37'lambdas' : [[5,1], [5,1], [5,1]],38'g' : 139}4041# insert the sample passport42passports.insert_one(sample_pass)4344# insert the sample galmap45galmaps.insert_one(sample_galmap)4647# loops over all passports48for elt in passports.find():49for key, val in elt.items():50print("%s : %s") % (key, val.__repr__())5152for elt in galmaps.find():53for key, val in elt.items():54print("%s : %s") % (key, val.__repr__())5556print("############")57print("############")5859# passports.delete_one({'plabel':'6T15-[5,5,5]-51-51-51-g1'})60passports.find().count()616263