From 705933f5ca83f4f5179c8506b9dd46612c5195ef Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 24 Oct 2017 16:23:35 +0800 Subject: clusters/halo: Rename property "magnetic_field" to "B_obs" --- fg21sim/extragalactic/clusters/halo.py | 6 +++--- fg21sim/extragalactic/clusters/main.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'fg21sim') 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 -- cgit v1.2.2