move all test genrtaed file to tmp, add genertae error set test

This commit is contained in:
QuanyiLi
2023-05-08 12:52:41 +01:00
parent b2d48c85ee
commit ed8fed4c1b
6 changed files with 47 additions and 16 deletions

View File

@@ -85,7 +85,7 @@ def loading_into_metadrive(start_scenario_index, num_scenario, dataset_path, ste
try:
env.reset(force_seed=scenario_index)
arrive = False
if RANDOM_DROP and np.random.rand() < 0.8:
if RANDOM_DROP and np.random.rand() < 0.5:
raise ValueError("Random Drop")
for _ in range(steps_to_run):
o, r, d, info = env.step([0, 0])