Commit 5f65fc6c authored by Médéric Boquien's avatar Médéric Boquien

Tiny optimisation replacing a division with a subtraction. Subtractions are...

Tiny optimisation replacing a division with a subtraction. Subtractions are quite a bit faster than divisions.
parent fb54e392
......@@ -86,7 +86,7 @@ class SfhBuat08(SedModule):
# Main SFR
t = (time_grid+1) / 1000 # The time is in Gyr in the formulae
self.sfr = 10.**(a + b * np.log10(t) + c * t**.5) / 1.e9
self.sfr = 10.**(a + b * np.log10(t) + c * t**.5 - 9)
# Compute the galaxy mass and normalise the SFH to 1 solar mass
# produced if asked to.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment