aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-10-24 16:23:35 +0800
committerAaron LI <aly@aaronly.me>2017-10-24 16:23:35 +0800
commit705933f5ca83f4f5179c8506b9dd46612c5195ef (patch)
tree06c19a759b8a022af1a20d1ee303ca0a699cf119 /fg21sim/extragalactic
parentfc0d1b1400f3a43dad9ebffa731889ca7261f243 (diff)
downloadfg21sim-705933f5ca83f4f5179c8506b9dd46612c5195ef.tar.bz2
clusters/halo: Rename property "magnetic_field" to "B_obs"
Diffstat (limited to 'fg21sim/extragalactic')
-rw-r--r--fg21sim/extragalactic/clusters/halo.py6
-rw-r--r--fg21sim/extragalactic/clusters/main.py2
2 files changed, 4 insertions, 4 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
diff --git a/fg21sim/extragalactic/clusters/main.py b/fg21sim/extragalactic/clusters/main.py
index 3327ea8..5bfbf30 100644
--- a/fg21sim/extragalactic/clusters/main.py
+++ b/fg21sim/extragalactic/clusters/main.py
@@ -275,7 +275,7 @@ class GalaxyClusters:
("M0", halo.M_obs), # [Msun]
("Rvir0", halo.radius_virial_obs), # [kpc]
("kT0", halo.kT_obs), # [keV]
- ("B0", halo.magnetic_field), # [uG] magnetic field at z_obs
+ ("B0", halo.B_obs), # [uG] magnetic field at z_obs
("lon", row.lon), # [deg] longitude
("lat", row.lat), # [deg] longitude
("felong", row.felong), # Fraction of elongation