From 2b1cfc721c22b5cc7956e34ecec93e469b5b56da Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 28 Jan 2019 20:28:28 +0800 Subject: clusters/halo: Do not rescale density in _adjust_spectrum() Since there is continuous electron injection, the electron density may keep increasing. Therefore, it's bad to rescale the density to match the beginning value. --- fg21sim/extragalactic/clusters/halo.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'fg21sim/extragalactic') diff --git a/fg21sim/extragalactic/clusters/halo.py b/fg21sim/extragalactic/clusters/halo.py index 6cde5ca..e3521fe 100644 --- a/fg21sim/extragalactic/clusters/halo.py +++ b/fg21sim/extragalactic/clusters/halo.py @@ -951,11 +951,6 @@ class RadioHaloAM(RadioHalo1M): idx = spec_diff > 0 spec = np.array(spec_ref) spec[idx] += spec_diff[idx] * (r/r_max)**3 - - d = helper.density_number_electron(spec, self.gamma) - d_in = helper.density_number_electron(spec_in, self.gamma) - spec *= d_in / d - return spec def calc_electron_spectrum(self, tstart=None, tstop=None, n0_e=None, -- cgit v1.2.2