*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
main.py 878 B
Newer Older
import jackknife
Patrick Kappl's avatar
Patrick Kappl committed
import adga
import numpy as np
if len(sys.argv) == 4:
    adga_root = sys.argv[1]
    adga_config = sys.argv[2]
    two_particle_file = sys.argv[3]
elif len(sys.argv) < 4:
Patrick Kappl's avatar
Patrick Kappl committed
    print("Command line argument missing.")
    print("""Please specify the ADGA root directory, the configuration file and
          the 2-particle Green's function file""")
Patrick Kappl's avatar
Patrick Kappl committed
    print("Too many command line arguments.")
    print("""Please specify only the ADGA root directory, the configuration
          file and the 2-particle Green's function file""")
Patrick Kappl's avatar
Patrick Kappl committed

abinitio_dga = adga.Adga(adga_root, adga_config, two_particle_file)
Patrick Kappl's avatar
Patrick Kappl committed
x_generator = abinitio_dga.get_worm_sample_generator()
n = abinitio_dga.n_worm_samples
Patrick Kappl's avatar
Patrick Kappl committed
f = abinitio_dga.__call__
# Do the Jackknife estimation
jackknife.do_jackknife_estimation(x_generator, n, f)