# Add the root path of the pygra library
import os ; import sys 
sys.path.append(os.path.dirname(os.path.realpath(__file__))+"/../../../src")





import numpy as np
from pygra import geometry
g = geometry.pyrochlore_lattice()
h = g.get_hamiltonian()
h.turn_dense()
g.center() # center the geometry
g.write()
ms = [-ri for ri in g.r] # magnetizations
h.get_bands()







