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

28 lines
950 B
Python
Raw Permalink Normal View History

2022-07-18 11:57:04 +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-20 14:27:08 +02:00
for res in [128, 256, 512, 1024]:
for comp_res in [128, 256]:
for source_wf in [wf, "shannon"] if comp_res == 128 else [wf]:
try:
compare_halo_resolutions(
ref_waveform=source_wf,
reference_resolution=comp_res,
comp_waveform=wf,
comparison_resolution=res,
plot=False,
plot3d=False,
velo_halos=True,
single=False,
2022-07-20 14:27:08 +02:00
)
except Exception as e:
traceback.print_exc()
something_failed = True
continue
2022-06-30 18:14:20 +02:00
if something_failed:
print("\n\nAt least one comparison failed")