Exemplo n.º 1
0
def pkl_bootdpci():

    np.random.seed(42)
    df = create_example_data(3)
    results = bootdpci(df, trim_mean, tr)
    pickle.dump(results, open("hypothesize/tests/test_data/bootdpci.pkl",
                              "wb"))
Exemplo n.º 2
0
def pkl_lindepbt():

    np.random.seed(42)
    df = create_example_data(3)
    results = lindepbt(df)
    pickle.dump(results, open("hypothesize/tests/test_data/lindepbt.pkl",
                              "wb"))
Exemplo n.º 3
0
def test_l2drmci():

    np.random.seed(42)
    df = create_example_data(2)
    results = l2drmci(df.cell_1, df.cell_2, trim_mean, tr)
    expected = pickle.load(open("test_data/l2drmci.pkl", "rb"))

    assert results == expected
Exemplo n.º 4
0
def test_corb():

    np.random.seed(42)
    df = create_example_data(2)
    results = corb(wincor, df.cell_1, df.cell_2, alpha, nboot, tr)
    expected = pickle.load(open("test_data/corb.pkl", "rb"))

    assert results == expected
Exemplo n.º 5
0
def test_wincor():

    np.random.seed(42)
    df = create_example_data(2)
    results = wincor(df.cell_1, df.cell_2)
    expected = pickle.load(open("test_data/wincor.pkl", "rb"))

    assert results == expected
Exemplo n.º 6
0
def test_winall():

    np.random.seed(42)
    df = create_example_data(3)
    results = winall(df)
    expected = pickle.load(open("test_data/winall.pkl", "rb"))
    expected_truth=build_truth_list(expected)
    actual_truth = check_dict_items_equality(expected, results)

    assert actual_truth == expected_truth
Exemplo n.º 7
0
def test_spmcpi():

    np.random.seed(42)
    df = create_example_data(6)
    results = spmcpi(2, 3, df, trim_mean, tr)
    expected = pickle.load(open("test_data/spmcpi.pkl", "rb"))
    expected_truth=build_truth_list(expected)
    actual_truth = check_dict_items_equality(expected, results)

    assert actual_truth == expected_truth
Exemplo n.º 8
0
def test_pbcor():

    np.random.seed(42)
    df = create_example_data(2)
    results = pbcor(df.cell_1, df.cell_2)
    expected = pickle.load(open("test_data/pbcor.pkl", "rb"))
    expected_truth=build_truth_list(expected)
    actual_truth = check_dict_items_equality(expected, results)

    #assert results == expected
    assert actual_truth == expected_truth
Exemplo n.º 9
0
def test_corb():

    np.random.seed(42)
    df = create_example_data(2)
    results = corb(wincor, df.cell_1, df.cell_2, alpha, nboot, tr)
    expected = pickle.load(open("test_data/corb.pkl", "rb"))
    expected_truth = build_truth_list(expected)
    actual_truth = check_dict_items_equality(expected, results)

    #assert results  == expected
    assert actual_truth == expected_truth
Exemplo n.º 10
0
def test_bwbmcp():

    np.random.seed(42)
    df = create_example_data(6)
    results = bwbmcp(2, 3, df)
    expected = pickle.load(open("test_data/bwbmcp.pkl", "rb"))

    print(results)
    print(expected)
    expected_truth=build_truth_list(expected)
    actual_truth = check_dict_items_equality(expected, results)

    assert actual_truth == expected_truth
Exemplo n.º 11
0
def pkl_bwimcp():

    np.random.seed(42)
    df = create_example_data(6)
    results = bwimcp(2, 3, df)
    pickle.dump(results, open("hypothesize/tests/test_data/bwimcp.pkl", "wb"))
Exemplo n.º 12
0
def pkl_rmmcppb():

    np.random.seed(42)
    df = create_example_data(3)
    results = rmmcppb(df, trim_mean, tr)
    pickle.dump(results, open("hypothesize/tests/test_data/rmmcppb.pkl", "wb"))
Exemplo n.º 13
0
def pkl_pb2gen():

    np.random.seed(42)
    df = create_example_data(2)
    results = pb2gen(df.cell_1, df.cell_2, trim_mean, tr)
    pickle.dump(results, open("hypothesize/tests/test_data/pb2gen.pkl", "wb"))
Exemplo n.º 14
0
def pkl_linconb():

    np.random.seed(42)
    df = create_example_data(3)
    results = linconb(df, con1way(3))
    pickle.dump(results, open("hypothesize/tests/test_data/linconb.pkl", "wb"))
Exemplo n.º 15
0
def pkl_winall():

    np.random.seed(42)
    df = create_example_data(3)
    results = winall(df)
    pickle.dump(results, open("hypothesize/tests/test_data/winall.pkl", "wb"))
Exemplo n.º 16
0
def pkl_corb():

    np.random.seed(42)
    df = create_example_data(2)
    results = corb(wincor, df.cell_1, df.cell_2, alpha, nboot, tr)
    pickle.dump(results, open("hypothesize/tests/test_data/corb.pkl", "wb"))
Exemplo n.º 17
0
def pkl_ydbt():

    np.random.seed(42)
    df = create_example_data(2)
    results = ydbt(df.cell_1, df.cell_2)
    pickle.dump(results, open("hypothesize/tests/test_data/ydbt.pkl", "wb"))
Exemplo n.º 18
0
def pkl_wwmcpbt():

    np.random.seed(42)
    df = create_example_data(6)
    results = wwmcpbt(2, 3, df, tr)
    pickle.dump(results, open("hypothesize/tests/test_data/wwmcpbt.pkl", "wb"))
Exemplo n.º 19
0
def pkl_spmcpi():

    np.random.seed(42)
    df = create_example_data(6)
    results = spmcpi(2, 3, df, trim_mean, tr)
    pickle.dump(results, open("hypothesize/tests/test_data/spmcpi.pkl", "wb"))