Update minimalModel.py
This commit is contained in:
parent
7a41ef9db5
commit
370deaca33
@ -303,20 +303,19 @@ def surjective_step(data, dim):
|
|||||||
|
|
||||||
|
|
||||||
def build_initial_data(A, dim):
|
def build_initial_data(A, dim):
|
||||||
g = load("K3_aplKgens")#A.get_cohomology_aplk(A,dim)
|
gens = A.get_cohomology_aplk(A,dim)
|
||||||
g = g[2]
|
|
||||||
cohomology_gens = A.cohomology_gens(A,dim)
|
cohomology_gens = A.cohomology_gens(A,dim)
|
||||||
phi_n_map = {}
|
phi_n_map = {}
|
||||||
correspondence_n_map = {}
|
correspondence_n_map = {}
|
||||||
names = []
|
names = []
|
||||||
degrees = []
|
degrees = []
|
||||||
for gen_key in g.keys():
|
for gen_key in gens.keys():
|
||||||
deg = gen_key[0]
|
deg = gen_key[0]
|
||||||
index = gen_key[1]
|
index = gen_key[1]
|
||||||
new_var = 'x'+str(deg)+'_'+str(index)
|
new_var = 'x'+str(deg)+'_'+str(index)
|
||||||
names += [new_var]
|
names += [new_var]
|
||||||
degrees += [deg]
|
degrees += [deg]
|
||||||
phi_n_map[new_var] = g[gen_key]
|
phi_n_map[new_var] = gens[gen_key]
|
||||||
correspondence_n_map[new_var] = cohomology_gens[gen_key]
|
correspondence_n_map[new_var] = cohomology_gens[gen_key]
|
||||||
differentials = {}
|
differentials = {}
|
||||||
gca = GradedCommutativeAlgebra(QQ, names=names, degrees=degrees)
|
gca = GradedCommutativeAlgebra(QQ, names=names, degrees=degrees)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user