1
0
Fork 0

safety check

This commit is contained in:
Lukas Winkler 2019-08-20 16:17:05 +02:00
parent 69939d3ee6
commit 41b63b3634
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -39,6 +39,10 @@ for set_type, directories in simulation_sets.items():
# to fix those rerun aggregates on all of them
print(vars(sim))
raise ValueError("invalid aggregate data. Please rerun postprocessing")
if sim.water_retention_both < 0 or sim.water_retention_both > 1:
print(vars(sim))
print(sim.water_retention_both)
raise ValueError("water retention is invalid")
simulations.append(sim)
# print(vars(sim))