Example #1
0
def test_c_bb():
    build_test_environment("c", 5, 3)
    f_1 = sfin.read_sfcf("tests/data/sfcf_test/data_c",
                         "data_c",
                         "f_1",
                         quarks="lquark lquark",
                         wf=0,
                         wf2=0,
                         version="2.0c",
                         corr_type="bb")
    print(f_1)
    clean_test_environment("c", 5, 3)
    assert len(f_1) == 1
    assert f_1[0].value == 351.1941525454502
Example #2
0
def test_o_bi():
    build_test_environment("o", 5, 3)
    f_A = sfin.read_sfcf("tests/data/sfcf_test/data_o",
                         "test",
                         "f_A",
                         quarks="lquark lquark",
                         wf=0,
                         version="2.0")
    print(f_A)
    clean_test_environment("o", 5, 3)
    assert len(f_A) == 3
    assert f_A[0].value == 65.4711887279723
    assert f_A[1].value == 1.0447210336915187
    assert f_A[2].value == -41.025094911185185
Example #3
0
def test_o_bib():
    build_test_environment("o", 5, 3)
    f_V0 = sfin.read_sfcf("tests/data/sfcf_test/data_o",
                          "test",
                          "F_V0",
                          quarks="lquark lquark",
                          wf=0,
                          wf2=0,
                          version="2.0",
                          corr_type="bib")
    print(f_V0)
    clean_test_environment("o", 5, 3)
    assert len(f_V0) == 3
    assert f_V0[0] == 683.6776090085115
    assert f_V0[1] == 661.3188585582334
    assert f_V0[2] == 683.6776090081005