1
0
Fork 0

scream if aggregates data is invalid

This commit is contained in:
Lukas Winkler 2019-07-29 15:37:11 +02:00
parent 99343d0dc6
commit 758be79f30
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -29,6 +29,9 @@ for set_type, directories in simulation_sets.items():
sim.load_params_from_spheres_ini_log(spheres_file)
sim.load_params_from_aggregates_txt(aggregates_file)
sim.assert_all_loaded()
if sim.rel_velocity<0 or sim.distance<0:
print(vars(sim))
raise ValueError("invalid aggregate data. Please rerun postprocessing")
simulations.append(sim)
# print(vars(sim))