1
0
Fork 0
mirror of https://github.com/Findus23/collision-analyisis-and-interpolation.git synced 2024-09-19 15:13:50 +02:00
collision-analyisis-and-int.../example.py

18 lines
383 B
Python
Raw Permalink Normal View History

2019-08-06 14:41:34 +02:00
"""
Just a demo file on how to quickly read the dataset
"""
2021-10-12 15:45:43 +02:00
from pathlib import Path
from pprint import pprint
2019-08-06 14:41:34 +02:00
from simulation_list import SimulationList
2021-10-12 15:45:43 +02:00
simlist = SimulationList.jsonlines_load(Path("save.jsonl"))
2019-08-06 14:41:34 +02:00
for s in simlist.simlist:
if not s.testcase:
continue
2021-10-12 15:45:43 +02:00
if s.water_retention_both < 0.2:
pprint(vars(s))
print(s.water_retention_both)