from sage.all_cmdline import *
import os, sys
from snappy import *
cd Documents/Stavros/Code/
attach('nz_exact.py')
load('nz_exact.py')
nz_data_file = 'nzdata/nz_exact_K5_1.sobj'
nz = load(nz_data_file)

diag_path = '6abda.sobj'
all_diagrams = load(diag_path)
E6 = nloop(nz, 6, all_diagrams)
invar = E6.nloop_invariant()
save(invar, 'results/K5_1/' + diag_path)

diag_path = '6abdb.sobj'
all_diagrams = load(diag_path)
E6 = nloop(nz, 6, all_diagrams)
invar = E6.nloop_invariant()
save(invar, 'results/K5_1/' + diag_path)

diag_path = '6abdc.sobj'
all_diagrams = load(diag_path)
E6 = nloop(nz, 6, all_diagrams)
invar = E6.nloop_invariant()
save(invar, 'results/K5_1/' + diag_path)

diag_path = '6abdd.sobj'
all_diagrams = load(diag_path)
E6 = nloop(nz, 6, all_diagrams)
invar = E6.nloop_invariant()
save(invar, 'results/K5_1/' + diag_path)

diag_path = '6abde.sobj'
all_diagrams = load(diag_path)
E6 = nloop(nz, 6, all_diagrams)
invar = E6.nloop_invariant()
save(invar, 'results/K5_1/' + diag_path)

diag_path = '6abdf.sobj'
all_diagrams = load(diag_path)
E6 = nloop(nz, 6, all_diagrams)
invar = E6.nloop_invariant()
save(invar, 'results/K5_1/' + diag_path)

diag_path = '6abdg.sobj'
all_diagrams = load(diag_path)
E6 = nloop(nz, 6, all_diagrams)
invar = E6.nloop_invariant()
save(invar, 'results/K5_1/' + diag_path)

diag_path = '6abdl.sobj'
all_diagrams = load(diag_path)
E6 = nloop(nz, 6, all_diagrams)
invar = E6.nloop_invariant()
save(invar, 'results/K5_1/' + diag_path)

diag_path = '6abdo.sobj'
all_diagrams = load(diag_path)
E6 = nloop(nz, 6, all_diagrams)
invar = E6.nloop_invariant()
save(invar, 'results/K5_1/' + diag_path)

diag_path = '6abdp.sobj'
all_diagrams = load(diag_path)
E6 = nloop(nz, 6, all_diagrams)
invar = E6.nloop_invariant()
save(invar, 'results/K5_1/' + diag_path)

diag_path = '6abdq.sobj'
all_diagrams = load(diag_path)
E6 = nloop(nz, 6, all_diagrams)
invar = E6.nloop_invariant()
save(invar, 'results/K5_1/' + diag_path)

diag_path = '6abdr.sobj'
all_diagrams = load(diag_path)
E6 = nloop(nz, 6, all_diagrams)
invar = E6.nloop_invariant()
save(invar, 'results/K5_1/' + diag_path)

diag_path = '6abds.sobj'
all_diagrams = load(diag_path)
E6 = nloop(nz, 6, all_diagrams)
invar = E6.nloop_invariant()
save(invar, 'results/K5_1/' + diag_path)

diag_path = '6abdt.sobj'
all_diagrams = load(diag_path)
E6 = nloop(nz, 6, all_diagrams)
invar = E6.nloop_invariant()
save(invar, 'results/K5_1/' + diag_path)

diag_path = '6abdu.sobj'
all_diagrams = load(diag_path)
E6 = nloop(nz, 6, all_diagrams)
invar = E6.nloop_invariant()
save(invar, 'results/K5_1/' + diag_path)

diag_path = '6abdv.sobj'
all_diagrams = load(diag_path)
E6 = nloop(nz, 6, all_diagrams)
invar = E6.nloop_invariant()
save(invar, 'results/K5_1/' + diag_path)

diag_path = '6abdw.sobj'
all_diagrams = load(diag_path)
E6 = nloop(nz, 6, all_diagrams)
invar = E6.nloop_invariant()
save(invar, 'results/K5_1/' + diag_path)

diag_path = '6abdx.sobj'
all_diagrams = load(diag_path)
E6 = nloop(nz, 6, all_diagrams)
invar = E6.nloop_invariant()
save(invar, 'results/K5_1/' + diag_path)

diag_path = '6abdy.sobj'
all_diagrams = load(diag_path)
E6 = nloop(nz, 6, all_diagrams)
invar = E6.nloop_invariant()
save(invar, 'results/K5_1/' + diag_path)

diag_path = '6abdz.sobj'
all_diagrams = load(diag_path)
E6 = nloop(nz, 6, all_diagrams)
invar = E6.nloop_invariant()
save(invar, 'results/K5_1/' + diag_path)

diag_path = '6abea.sobj'
all_diagrams = load(diag_path)
E6 = nloop(nz, 6, all_diagrams)
invar = E6.nloop_invariant()
save(invar, 'results/K5_1/' + diag_path)

diag_path = '6abeb.sobj'
all_diagrams = load(diag_path)
E6 = nloop(nz, 6, all_diagrams)
invar = E6.nloop_invariant()
save(invar, 'results/K5_1/' + diag_path)

diag_path = '6abec.sobj'
all_diagrams = load(diag_path)
E6 = nloop(nz, 6, all_diagrams)
invar = E6.nloop_invariant()
save(invar, 'results/K5_1/' + diag_path)

diag_path = '6abed.sobj'
all_diagrams = load(diag_path)
E6 = nloop(nz, 6, all_diagrams)
invar = E6.nloop_invariant()
save(invar, 'results/K5_1/' + diag_path)

diag_path = '6abee.sobj'
all_diagrams = load(diag_path)
E6 = nloop(nz, 6, all_diagrams)
invar = E6.nloop_invariant()
save(invar, 'results/K5_1/' + diag_path)

diag_path = '6abef.sobj'
all_diagrams = load(diag_path)
E6 = nloop(nz, 6, all_diagrams)
invar = E6.nloop_invariant()
save(invar, 'results/K5_1/' + diag_path)

diag_path = '6abeg.sobj'
all_diagrams = load(diag_path)
E6 = nloop(nz, 6, all_diagrams)
invar = E6.nloop_invariant()
save(invar, 'results/K5_1/' + diag_path)

diag_path = '6abeh.sobj'
all_diagrams = load(diag_path)
E6 = nloop(nz, 6, all_diagrams)
invar = E6.nloop_invariant()
save(invar, 'results/K5_1/' + diag_path)

diag_path = '6abei.sobj'
all_diagrams = load(diag_path)
E6 = nloop(nz, 6, all_diagrams)
invar = E6.nloop_invariant()
save(invar, 'results/K5_1/' + diag_path)

diag_path = '6abej.sobj'
all_diagrams = load(diag_path)
E6 = nloop(nz, 6, all_diagrams)
invar = E6.nloop_invariant()
save(invar, 'results/K5_1/' + diag_path)

diag_path = '6abek.sobj'
all_diagrams = load(diag_path)
E6 = nloop(nz, 6, all_diagrams)
invar = E6.nloop_invariant()
save(invar, 'results/K5_1/' + diag_path)
