|
|
|
|
|
|
assert len(pair_infos) == total_expected |
|
|
|
|
|
|
|
_, demo_buffer = demo_to_buffer(path_prefix + "/test.demo", 1, BEHAVIOR_SPEC) |
|
|
|
assert len(demo_buffer["actions"]) == total_expected - 1 |
|
|
|
assert ( |
|
|
|
len(demo_buffer["continuous_action"]) == total_expected - 1 |
|
|
|
or len(demo_buffer["discrete_action"]) == total_expected - 1 |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
def test_load_demo_dir(): |
|
|
|
|
|
|
assert len(pair_infos) == total_expected |
|
|
|
|
|
|
|
_, demo_buffer = demo_to_buffer(path_prefix + "/test_demo_dir", 1, BEHAVIOR_SPEC) |
|
|
|
assert len(demo_buffer["actions"]) == total_expected - 1 |
|
|
|
assert ( |
|
|
|
len(demo_buffer["continuous_action"]) == total_expected - 1 |
|
|
|
or len(demo_buffer["discrete_action"]) == total_expected - 1 |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
def test_demo_mismatch(): |
|
|
|