aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2019-01-10 00:12:10 +0800
committerAaron LI <aly@aaronly.me>2019-01-10 00:12:10 +0800
commitb11592e71aa948170c5ac0be2ff70fbc3b2aeaf8 (patch)
tree8752cf05970100911f234394db4349b37be92c07
parent9a5478446d5e28b64783efe9c8282f2eb27be1a5 (diff)
downloadfg21sim-b11592e71aa948170c5ac0be2ff70fbc3b2aeaf8.tar.bz2
clusters/halo: Remove is_geniune()
The similar functionality will be implemented in another wrapper class.
-rw-r--r--fg21sim/extragalactic/clusters/halo.py32
1 files changed, 0 insertions, 32 deletions
diff --git a/fg21sim/extragalactic/clusters/halo.py b/fg21sim/extragalactic/clusters/halo.py
index 19a1575..8216b2d 100644
--- a/fg21sim/extragalactic/clusters/halo.py
+++ b/fg21sim/extragalactic/clusters/halo.py
@@ -473,38 +473,6 @@ class RadioHalo:
return n_e
- def is_genuine(self, n_e):
- """
- Check whether the radio halo is genuine/observable by comparing the
- radio flux density to the fiducial value, which is calculated from
- the fiducial electron spectrum derived with turbulent acceleration
- turned off.
-
- Parameters
- ----------
- n_e : float 1D `~numpy.ndarray`
- The finally derived electron spectrum.
- Unit: [cm^-3]
-
- Returns
- -------
- genuine : bool
- Whether the radio halo is genuine?
- factor : float
- Acceleration factor of the flux.
- """
- haloem = HaloEmission(gamma=self.gamma, n_e=n_e,
- B=self.B_obs, radius=self.radius,
- redshift=self.z_obs)
- flux = haloem.calc_flux(self.fiducial_freq)
-
- ne_fiducial = self.calc_electron_spectrum(fiducial=True)
- haloem.n_e = ne_fiducial
- flux_fiducial = haloem.calc_flux(self.fiducial_freq)
-
- factor = flux / flux_fiducial
- return (flux >= self.fiducial_factor, factor)
-
def fp_injection(self, gamma, t=None):
"""
Electron injection (rate) term for the Fokker-Planck equation.