diff options
author | Aaron LI <aly@aaronly.me> | 2017-10-24 23:39:56 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-10-24 23:39:56 +0800 |
commit | ac7eeea99232239f4011cb45367aca722f6e4741 (patch) | |
tree | 80f9b1677cbe21e2b600f928a6c9623221207c59 /fg21sim/extragalactic/clusters/halo.py | |
parent | d5cbb4759f14b79dc047b90ebd60a28dca9931ff (diff) | |
download | fg21sim-ac7eeea99232239f4011cb45367aca722f6e4741.tar.bz2 |
clusters/halo: Always pass the using configs
The user-using `configs` object may be different to the global `CONFIGS`,
which may be forgotten to load the up-to-date user configurations.
Diffstat (limited to 'fg21sim/extragalactic/clusters/halo.py')
-rw-r--r-- | fg21sim/extragalactic/clusters/halo.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/fg21sim/extragalactic/clusters/halo.py b/fg21sim/extragalactic/clusters/halo.py index 4016fe6..fd6f13a 100644 --- a/fg21sim/extragalactic/clusters/halo.py +++ b/fg21sim/extragalactic/clusters/halo.py @@ -277,12 +277,14 @@ class RadioHalo: Unit: [keV] """ - return helper.kT_cluster(mass=self.M_main, z=self.z_merger) + return helper.kT_cluster(mass=self.M_main, z=self.z_merger, + configs=self.configs) @property @lru_cache() def kT_sub(self): - return helper.kT_cluster(mass=self.M_sub, z=self.z_merger) + return helper.kT_cluster(mass=self.M_sub, z=self.z_merger, + configs=self.configs) @property @lru_cache() @@ -290,7 +292,8 @@ class RadioHalo: """ The "current" cluster ICM mean temperature at ``z_obs``. """ - return helper.kT_cluster(self.M_obs, z=self.z_obs) # [keV] + return helper.kT_cluster(self.M_obs, z=self.z_obs, + configs=self.configs) # [keV] @property @lru_cache() |