Skip to content

Commit

Permalink
Merge pull request #52 from IceCubeOpenSource/sim-handling
Browse files Browse the repository at this point in the history
Add simulation handling to ASTERIA
  • Loading branch information
sgriswol authored Jul 1, 2020
2 parents 21e2f9c + 4cdb378 commit ec1024d
Show file tree
Hide file tree
Showing 18 changed files with 1,622 additions and 523 deletions.
35 changes: 25 additions & 10 deletions data/config/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,41 @@ detector:

# The source configuration is loaded by the asteria.source module.
source:
name: Sukh_SFHo_z9.6
model: Sukhbold 9.6Msun progenitor with SFHo equation of state
name: Nakazato-Shen-z0.02-t_rev300ms-s13.0
model: Nakazato 13.0Msun progenitor with Shen equation of state, metallicity z=0.02 and shock revival time t_rev=300ms
progenitor:
mass: 9.6 M_sun
mass: 13.0 M_sun
# Distance model: can be FixedDistance or StellarDensity
distance:
model: FixedDistance
distance: 10 kpc
uncertainty: 0 kpc
# distance
# model: StellarDensity
# path: stellar/sn_radial_distrib_adams.fits
# add_LMC: False
# add_SMC: False
table:
format: fits
path: snfluxes/Sukhbold_2015/sukhbold-SFHo-z9.6.fits
path: spectra/nakazato-shen-z0.02-t_rev300ms-s13.0.fits

# The IO configuration is loaded by the asteria.IO module.
IO:
table:
format: h5
path: sukhbold-SFHo-z9.6.h5
path: processed/nakazato-shen-z0.02-t_rev300ms-s13.0.h5

# The simulation configurable is loaded by the asteria.simualtionHandler module
simulation:
interactions: default
flavors: nu_e, nu_e_bar, nu_x, nu_x_bar
hierarchy: default
mixing:
scheme: adiabatic-msw
angle: 33.2 deg
energy:
min: 0 MeV
max: 100 MeV
step: 0.1 MeV
size: 10001
time:
min: -1 s
max: 1 s
step: 1 ms
size: 2001

21 changes: 20 additions & 1 deletion data/config/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,29 @@ source:
# add_SMC: False
table:
format: fits
path: spectra/sukhbold-SFHo-z9.6.fits
path: snfluxes/Sukhbold_2015/sukhbold-SFHo-z9.6.fits

# The IO configuration is loaded by the asteria.IO module.
IO:
table:
format: h5
path: processed/sukhbold-SFHo-z9.6.h5

# The simulation configurable is loaded by the asteria.simulationHandler module
simulation:
interactions: default
flavors: default
hierarchy: none
mixing:
scheme:
angle:
energy:
min: 0 MeV
max: 100 MeV
step: 0.1 MeV
size:
time:
min: -1 s
max: 3 s
step: 1 ms
size:
219 changes: 140 additions & 79 deletions docs/nb/cross_sections.ipynb

Large diffs are not rendered by default.

58 changes: 30 additions & 28 deletions docs/nb/detector.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/nb/detector_hits.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.1"
"version": "3.7.3"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit ec1024d

Please sign in to comment.