From 4ab6f78165855ad961ecf62f07c374465cf1d292 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 2 Jan 2018 22:21:45 +0800 Subject: clusters/emission: minor cleanups --- fg21sim/extragalactic/clusters/emission.py | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) (limited to 'fg21sim/extragalactic/clusters/emission.py') diff --git a/fg21sim/extragalactic/clusters/emission.py b/fg21sim/extragalactic/clusters/emission.py index 4801eba..ddecab3 100644 --- a/fg21sim/extragalactic/clusters/emission.py +++ b/fg21sim/extragalactic/clusters/emission.py @@ -1,9 +1,9 @@ -# Copyright (c) 2017 Weitian LI +# Copyright (c) 2017-2018 Weitian LI # MIT license """ -Calculate the synchrotron emission and inverse Compton emission -for simulated radio halos. +Calculate the synchrotron emission for a given relativistic electron +spectrum, e.g., derived for the simulated radio halos. References ---------- @@ -151,12 +151,7 @@ class SynchrotronEmission: @classmethod def F(cls, x): """ - Synchrotron kernel function. - - NOTE - ---- - * Use interpolation to optimize the speed, as well as to - help vectorize this function for easier calling. + Synchrotron kernel function using interpolation to improve speed. Parameters ---------- @@ -196,11 +191,8 @@ class SynchrotronEmission: I = int_gmin^gmax f(g) d(g) = int_ln(gmin)^ln(gmax) f(g) g d(ln(g)) - XXX - --- - Assume that the electrons have a pitch angle of ``pi/2`` with - respect to the magnetic field. (I think it is a good simplification - considering that the magnetic field is also assumed to be uniform.) + The pitch angles of electrons w.r.t. the magnetic field are assumed + to be ``pi/2``, which maybe a good simplification. Parameters ---------- -- cgit v1.2.2