Example Configuration
[1]:
from asteria.simulation import Simulation
from snewpy.neutrino import Flavor
import matplotlib.pyplot as plt
from importlib.resources import files
/home/docs/checkouts/readthedocs.org/user_builds/asteria/envs/latest/lib/python3.12/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html
from .autonotebook import tqdm as notebook_tqdm
[2]:
configfile = files('asteria.etc').joinpath('example.ini')
sim = Simulation(config=configfile)
sim.run()
fig, ax = plt.subplots(1, figsize = (6,7))
for flavor in sim.flavors:
ax.plot(sim.time, sim.avg_dom_signal(flavor=flavor), label=flavor.name)
ax.legend()
ax.set(xlabel=r't-t$_{bounce}$ [s]', ylabel='Signal per DOM', xlim=(-0.025, 0.65));
nakazato-shen-z0.02-t_rev300ms-s13.0.fits: 100%|██████████| 36.6k/36.6k [00:00<00:00, 26.2MiB/s]