1
0
Fork 0
mirror of https://github.com/Findus23/halo_comparison.git synced 2024-09-19 16:03:50 +02:00
halo_comparison/compare_all.py

27 lines
793 B
Python
Raw Normal View History

2022-07-18 11:55:06 +02:00
import traceback
2022-05-24 17:06:49 +02:00
from compare_halos import compare_halo_resolutions
2022-06-30 18:14:20 +02:00
something_failed = False
for wf in ["DB2", "DB4", "DB8", "shannon"]:
2022-07-18 11:55:06 +02:00
for res in [256, 512]:
for source_wf in [wf]:
2022-06-30 18:14:20 +02:00
try:
compare_halo_resolutions(
ref_waveform=source_wf,
2022-07-18 11:55:06 +02:00
reference_resolution=256,
2022-06-30 18:14:20 +02:00
comp_waveform=wf,
comparison_resolution=res,
plot=False,
plot3d=False,
velo_halos=True,
single=False
)
2022-07-18 11:55:06 +02:00
except Exception as e:
traceback.print_exc()
2022-06-30 18:14:20 +02:00
something_failed = True
continue
if something_failed:
print("\n\nAt least one comparison failed")