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





from pygra import islands
import numpy as np
g = islands.get_geometry(name="honeycomb",n=10,nedges=4,rot=0.0,clean=False) 
h = g.get_hamiltonian(has_spin=False)
h.add_haldane(.1)
from pygra import topology
#op = h.get_operator("valley",delta=1e-2)
topology.real_space_chern(h)






