Commit a2f2a654 authored by teresa.bister's avatar teresa.bister
Browse files

[simulations] re-add deleted line

parent 8f66fe7d
......@@ -655,6 +655,7 @@ class SourceBound(BaseSimulation):
assert fractions.ndim == 4, "Element arrival matrix fraction must have 4 dimensions!"
bin_center = (self.log10e_bins[:-1] + self.log10e_bins[1:]) / 2.
# reweight spectrum (simulated is gamma=-1 as resulting from equally binning in log space)
fractions *= 10**((self.energy_setting['gamma'] + 1)*(coord.atleast_kd(bin_center, fractions.ndim) - 19))
# Apply the rigidity cut
log10_cut = self.energy_setting['log10_cut']
if self.energy_setting['rig_cut']:
......
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