diff options
Diffstat (limited to 'fg21sim')
-rw-r--r-- | fg21sim/extragalactic/clusters/halo.py | 6 | ||||
-rw-r--r-- | fg21sim/extragalactic/clusters/main.py | 2 |
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 |