diff options
author | Aaron LI <aly@aaronly.me> | 2019-01-28 20:28:28 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2019-01-28 20:28:28 +0800 |
commit | 2b1cfc721c22b5cc7956e34ecec93e469b5b56da (patch) | |
tree | 755e64d282ee45c47a689301fbd921058472ad94 /fg21sim/extragalactic/clusters | |
parent | 9b2c3cb4f7d9f3d4569a99b284be5445dfad00a9 (diff) | |
download | fg21sim-2b1cfc721c22b5cc7956e34ecec93e469b5b56da.tar.bz2 |
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.
Diffstat (limited to 'fg21sim/extragalactic/clusters')
-rw-r--r-- | fg21sim/extragalactic/clusters/halo.py | 5 |
1 files changed, 0 insertions, 5 deletions
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, |