icecube / FIRESONG

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

Minor cosmolopy based speedups #12

Closed apizzuto closed 3 years ago

apizzuto commented 4 years ago

The change in Firesong.py is a straightforward replacement of list comprehension with a slightly quicker vectorized implementation. The change in Evolution.py is to interpolate between some redshift bins when creating the RedshiftDistribution. This speeds up this line significantly, but I guess could just be accomplished by using fewer bins in firesong_simulation, so feel free to take it or leave it!

apizzuto commented 3 years ago

I made some a commit after submitting the original pull request and didn't realize that would automatically include them in this PR, so I'm just going to close this PR