15 lines
407 B
Python
15 lines
407 B
Python
import json, os
|
|
folder = r'c:\src\____GitProjects\target_simulator\archive_simulations'
|
|
for fn in os.listdir(folder):
|
|
if not fn.endswith('.json'):
|
|
continue
|
|
p = os.path.join(folder, fn)
|
|
try:
|
|
with open(p,'r',encoding='utf-8') as f:
|
|
j = json.load(f)
|
|
except Exception:
|
|
continue
|
|
n = len(j.get('simulation_results', {}))
|
|
if n >= 3:
|
|
print(fn, n)
|