diff options
author | Aaron LI <aly@aaronly.me> | 2017-10-25 21:02:32 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-10-25 21:06:17 +0800 |
commit | 7999e74388e1760f95420e1886efe32cf3ec6516 (patch) | |
tree | e14d595e1d772b2f276f25b8f761106848a500fa /fg21sim/extragalactic/clusters/halo.py | |
parent | e4abd18875c642ff84ba11cce44a11f55cba5003 (diff) | |
download | fg21sim-7999e74388e1760f95420e1886efe32cf3ec6516.tar.bz2 |
clusters/solver: Update buffer_np description and handling
Diffstat (limited to 'fg21sim/extragalactic/clusters/halo.py')
-rw-r--r-- | fg21sim/extragalactic/clusters/halo.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fg21sim/extragalactic/clusters/halo.py b/fg21sim/extragalactic/clusters/halo.py index 281093d..6b91f7f 100644 --- a/fg21sim/extragalactic/clusters/halo.py +++ b/fg21sim/extragalactic/clusters/halo.py @@ -149,6 +149,8 @@ class RadioHalo: self.gamma_max = self.configs.getn(comp+"/gamma_max") self.gamma_np = self.configs.getn(comp+"/gamma_np") self.buffer_np = self.configs.getn(comp+"/buffer_np") + if self.buffer_np == 0: + self.buffer_np = None self.time_step = self.configs.getn(comp+"/time_step") self.time_init = self.configs.getn(comp+"/time_init") self.injection_index = self.configs.getn(comp+"/injection_index") |