diff options
author | Aaron LI <aly@aaronly.me> | 2017-10-24 16:23:35 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-10-24 16:23:35 +0800 |
commit | 705933f5ca83f4f5179c8506b9dd46612c5195ef (patch) | |
tree | 06c19a759b8a022af1a20d1ee303ca0a699cf119 /fg21sim/extragalactic/clusters/halo.py | |
parent | fc0d1b1400f3a43dad9ebffa731889ca7261f243 (diff) | |
download | fg21sim-705933f5ca83f4f5179c8506b9dd46612c5195ef.tar.bz2 |
clusters/halo: Rename property "magnetic_field" to "B_obs"
Diffstat (limited to 'fg21sim/extragalactic/clusters/halo.py')
-rw-r--r-- | fg21sim/extragalactic/clusters/halo.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fg21sim/extragalactic/clusters/halo.py b/fg21sim/extragalactic/clusters/halo.py index 8ef6640..1efaf8f 100644 --- a/fg21sim/extragalactic/clusters/halo.py +++ b/fg21sim/extragalactic/clusters/halo.py @@ -258,7 +258,7 @@ class RadioHalo: @property @lru_cache() - def magnetic_field(self): + def B_obs(self): """ The magnetic field strength at the simulated observation time (i.e., cluster mass of ``self.M_obs``), will be used @@ -466,7 +466,7 @@ class RadioHalo: If not provided, then use ``self.gamma``. B : float, optional The magnetic field strength. - If not provided, then use ``self.magnetic_field``. + If not provided, then use ``self.B_obs``. Unit: [uG] Returns @@ -481,7 +481,7 @@ class RadioHalo: if gamma is None: gamma = self.gamma if B is None: - B = self.magnetic_field + B = self.B_obs syncem = SynchrotronEmission(gamma=gamma, n_e=n_e, B=B) emissivity = syncem.emissivity(frequencies) return emissivity |