aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim/extragalactic/clusters')
-rw-r--r--fg21sim/extragalactic/clusters/emission.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/fg21sim/extragalactic/clusters/emission.py b/fg21sim/extragalactic/clusters/emission.py
index 9e097d8..2454644 100644
--- a/fg21sim/extragalactic/clusters/emission.py
+++ b/fg21sim/extragalactic/clusters/emission.py
@@ -185,7 +185,8 @@ class SynchrotronEmission:
# Integrate over energy ``gamma`` in logarithmic grid
j_nu = integrate.simps(s1d*self.gamma, np.log(self.gamma))
- coef = np.sqrt(3) * AC.e**3 * self.B / AC.c
+ B_gauss = self.B * 1e-6 # [uG] -> [G]
+ coef = np.sqrt(3) * AC.e**3 * B_gauss / AU.mec2
j_nu *= coef
return j_nu