diff options
author | Aaron LI <aly@aaronly.me> | 2019-01-30 15:34:25 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2019-01-30 16:44:18 +0800 |
commit | 518f32cafe3534f8c2b0528c8b0fb7f64d6122ac (patch) | |
tree | b19731d99d91e86e3c45f50c5b0c0833438d2266 /fg21sim/extragalactic/clusters/halo.py | |
parent | 70db11d6f68cbea0c1755520ec96ca6cd9c7e88f (diff) | |
download | fg21sim-518f32cafe3534f8c2b0528c8b0fb7f64d6122ac.tar.bz2 |
clusters: Minor cleanups (rename 'comp' to 'sec')
Diffstat (limited to 'fg21sim/extragalactic/clusters/halo.py')
-rw-r--r-- | fg21sim/extragalactic/clusters/halo.py | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/fg21sim/extragalactic/clusters/halo.py b/fg21sim/extragalactic/clusters/halo.py index 2078ad1..547b89a 100644 --- a/fg21sim/extragalactic/clusters/halo.py +++ b/fg21sim/extragalactic/clusters/halo.py @@ -147,28 +147,28 @@ class RadioHalo1M: self._set_solver() def _set_configs(self, configs): - comp = self.compID + sec = self.compID self.configs = configs - self.f_acc = configs.getn(comp+"/f_acc") - self.f_radius = configs.getn(comp+"/f_radius") - self.eta_turb = configs.getn(comp+"/eta_turb") - self.eta_e = configs.getn(comp+"/eta_e") - self.x_cr = configs.getn(comp+"/x_cr") - self.mass_index = configs.getn(comp+"/mass_index") - self.gamma_min = configs.getn(comp+"/gamma_min") - self.gamma_max = configs.getn(comp+"/gamma_max") - self.gamma_np = configs.getn(comp+"/gamma_np") - self.buffer_np = configs.getn(comp+"/buffer_np") + self.f_acc = configs.getn(sec+"/f_acc") + self.f_radius = configs.getn(sec+"/f_radius") + self.eta_turb = configs.getn(sec+"/eta_turb") + self.eta_e = configs.getn(sec+"/eta_e") + self.x_cr = configs.getn(sec+"/x_cr") + self.mass_index = configs.getn(sec+"/mass_index") + self.gamma_min = configs.getn(sec+"/gamma_min") + self.gamma_max = configs.getn(sec+"/gamma_max") + self.gamma_np = configs.getn(sec+"/gamma_np") + self.buffer_np = configs.getn(sec+"/buffer_np") if self.buffer_np == 0: self.buffer_np = None - self.time_step = configs.getn(comp+"/time_step") - self.time_init = configs.getn(comp+"/time_init") - self.injection_index = configs.getn(comp+"/injection_index") - self.f_rc = configs.getn(comp+"/f_rc") - self.beta = configs.getn(comp+"/beta") - self.bolo_freq_min = configs.getn(comp+"/bolo_freq_min") - self.bolo_freq_max = configs.getn(comp+"/bolo_freq_max") - self.bolo_freq_num = configs.getn(comp+"/bolo_freq_num") + self.time_step = configs.getn(sec+"/time_step") + self.time_init = configs.getn(sec+"/time_init") + self.injection_index = configs.getn(sec+"/injection_index") + self.f_rc = configs.getn(sec+"/f_rc") + self.beta = configs.getn(sec+"/beta") + self.bolo_freq_min = configs.getn(sec+"/bolo_freq_min") + self.bolo_freq_max = configs.getn(sec+"/bolo_freq_max") + self.bolo_freq_num = configs.getn(sec+"/bolo_freq_num") def _set_solver(self): self.fpsolver = FokkerPlanckSolver( |