aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters/formation.py
Commit message (Collapse)AuthorAgeFilesLines
* clusters: Rename "last major merger" to "recent major merger"Aaron LI2017-07-221-5/+5
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* Use the global "cosmo" instance for simplificationAaron LI2017-07-211-11/+8
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/formation.py: show verbose info only in DEBUGAaron LI2017-07-201-6/+9
| | | | | | | | Since the ``ClusterFormation`` is repeatedly invoked in ``GalaxyClusters``, so make the verbose information printed only at DEBUG level. Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/formation.py: Fix bug in "last_major_merger" propertyAaron LI2017-07-201-7/+11
| | | | | | Also calculate and add the mass ratio to the event dictionary. Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/formation.py: Fix bug in "_trace_main()"Aaron LI2017-07-201-4/+8
| | | | | | | | | Do not modify the root node of the merger tree, and return this root node after tracing the formation history. Also print some more information for debug. Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/formation.py: Add "last_major_merger" propertyAaron LI2017-07-191-1/+42
| | | | | | | A new parameter "ratio_major" added to distinguish between major and minor merger events. Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/formation.py: Add method "_trace_main()"Aaron LI2017-07-191-10/+77
| | | | | | Also update "simulate_megertree()" default to trace only the main cluster. Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/formation.py: Simplify parameters handlingAaron LI2017-07-191-28/+24
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* halo.py + formation.py: Add argument z0Aaron LI2017-06-231-4/+11
|
* clusters: Move units.py and cosmology.py to utilsAaron LI2017-06-011-1/+1
|
* Bind ClusterFormation to HaloSingleAaron LI2017-06-011-0/+3
| | | | Also add logging messages to simulate_mergertree()
* Update to use custom units.py instead of astropy'sAaron LI2017-06-011-1/+1
| | | | Also fix a parameter error in "formation.py"
* Add clusters/formation.py: Simulate cluster merging historyAaron LI2017-06-011-0/+230