diff options
author | Aaron LI <aly@aaronly.me> | 2017-06-24 21:52:41 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-06-24 21:52:41 +0800 |
commit | f9f7a6e672367639cf1c3c93513f1a5e7e01063b (patch) | |
tree | edbd1e2ed29d0fbe77307574e02f839345f71a93 /fg21sim/extragalactic/clusters | |
parent | 374795fc794e7306cbd4260942f6a3051489e656 (diff) | |
download | fg21sim-f9f7a6e672367639cf1c3c93513f1a5e7e01063b.tar.bz2 |
halo.py: Add property "zgrid" as well as config option "zbinsize"
Diffstat (limited to 'fg21sim/extragalactic/clusters')
-rw-r--r-- | fg21sim/extragalactic/clusters/halo.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fg21sim/extragalactic/clusters/halo.py b/fg21sim/extragalactic/clusters/halo.py index 3fbd50c..8895b3a 100644 --- a/fg21sim/extragalactic/clusters/halo.py +++ b/fg21sim/extragalactic/clusters/halo.py @@ -103,6 +103,14 @@ class HaloSingle: logger.info("Loaded and set up configurations") @property + def zgrid(self): + """ + Redshift grid between 0 and ``self.zmax``. + """ + return np.arange(start=0.0, stop=self.zmax+self.zbinsize, + step=self.zbinsize) + + @property def magnetic_field(self): """ Calculate the mean magnetic field of this cluster from the |