()
| 802 | |
| 803 | @pytest.fixture(scope="module") |
| 804 | def hits_result(): |
| 805 | ret = {} |
| 806 | df = pd.read_csv( |
| 807 | "{}/../p2p-31-hits-directed".format(property_dir), |
| 808 | sep="\t", |
| 809 | header=None, |
| 810 | ) |
| 811 | ret["hub"] = df.iloc[:, [0, 1]].to_numpy(dtype=float) |
| 812 | ret["auth"] = df.iloc[:, [0, 2]].to_numpy(dtype=float) |
| 813 | yield ret |
| 814 | |
| 815 | |
| 816 | @pytest.fixture(scope="module") |