File size: 1,345 Bytes
e8055cf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
from experiments import config, evaluate


def test_configure_symbolic_evaluation_uses_experiment_paths():
    codes, results = evaluate.configure_symbolic_evaluation(
        "A Hypothesis", "metric", "tracking", "uniform", 64
    )
    assert (
        codes
        == config.CACHES_ROOT
        / "spatial codes"
        / "metric"
        / "tracking"
        / "uniform"
        / "A Hypothesis"
        / "64"
        / "explicit"
    )
    assert (
        results
        == config.RESULTS_ROOT
        / "symbolic"
        / "metric"
        / "tracking"
        / "uniform"
        / "A Hypothesis"
        / "64"
        / "explicit"
    )
    assert evaluate.symbolic_launch.symbolic_run.SPATIAL_CODES_DIR == str(codes)
    assert evaluate.symbolic_launch.symbolic_run.SPATIAL_CODES_FORMAT == "explicit"
    assert evaluate.symbolic_launch.symbolic_run.results_dir_for_selection() == str(
        results
    )


def test_configure_symbolic_evaluation_accepts_compact_format():
    codes, results = evaluate.configure_symbolic_evaluation(
        "A Hypothesis",
        "metric",
        "tracking",
        "uniform",
        64,
        spatial_code_format="compact",
    )
    assert codes.name == "compact"
    assert results.name == "compact"
    assert evaluate.symbolic_launch.symbolic_run.SPATIAL_CODES_FORMAT == "compact"