icecube / FIRESONG

FIRst Extragalactic Simulation Of Neutrino and Gamma-ray
Other
18 stars 8 forks source link

Vectorizing simulation loop #11

Closed apizzuto closed 4 years ago

apizzuto commented 4 years ago

A few speed improvements: (1) replacing the for loop in Firesong.py with vectorized sampling (2) when sampling large number of sources (>1000), create a spline for LuminosityDistance in Evolution.py (3) nsource -> nsources to fix some bugs when using 'LG' luminosity function in Luminosity.py and test_Luminosity.py (4) changed testing values to those that Chris sent me in January