scream if aggregates data is invalid
This commit is contained in:
parent
99343d0dc6
commit
758be79f30
1 changed files with 3 additions and 0 deletions
|
@ -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))
|
||||
|
||||
|
|
Reference in a new issue