aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2017-05-16 10:25:19 +0800
committerAaron LI <aly@aaronly.me>2017-06-01 16:33:40 +0800
commit717931fcdb10a6e6691e8ccb393b045e8013061e (patch)
treefe7c63a6470036db960d882ab1151de7288f9cc9
parent41a97ba0be1637c41d32f4c15dca6369a1dc88ae (diff)
downloadfg21sim-717931fcdb10a6e6691e8ccb393b045e8013061e.tar.bz2
fg21sim/clusters: Save progress on halo simulation
-rw-r--r--fg21sim/configs/20-extragalactic.conf.spec2
-rw-r--r--fg21sim/extragalactic/__init__.py4
-rw-r--r--fg21sim/extragalactic/clusters/__init__.py2
-rw-r--r--fg21sim/extragalactic/clusters/main.py24
-rw-r--r--fg21sim/extragalactic/clusters/mergertree.py2
5 files changed, 30 insertions, 4 deletions
diff --git a/fg21sim/configs/20-extragalactic.conf.spec b/fg21sim/configs/20-extragalactic.conf.spec
index f9d7c88..7ed9783 100644
--- a/fg21sim/configs/20-extragalactic.conf.spec
+++ b/fg21sim/configs/20-extragalactic.conf.spec
@@ -74,7 +74,7 @@
# Minimum and maximum Lorentz factor (i.e., energy) of the relativistic
# electron spectrum.
- pmin = float(default=1.0)
+ pmin = float(default=1e1)
pmax = float(default=1e5)
# Number of points for the grid used during solving the Fokker-Planck
diff --git a/fg21sim/extragalactic/__init__.py b/fg21sim/extragalactic/__init__.py
index 01c52e9..89d23b0 100644
--- a/fg21sim/extragalactic/__init__.py
+++ b/fg21sim/extragalactic/__init__.py
@@ -1,5 +1,5 @@
# Copyright (c) 2016 Weitian LI <liweitianux@live.com>
# MIT license
-from .clusters import GalaxyClusters
-from .pointsources import PointSources
+# from .clusters import GalaxyClusters
+# from .pointsources import PointSources
diff --git a/fg21sim/extragalactic/clusters/__init__.py b/fg21sim/extragalactic/clusters/__init__.py
index af976ca..1eb7bae 100644
--- a/fg21sim/extragalactic/clusters/__init__.py
+++ b/fg21sim/extragalactic/clusters/__init__.py
@@ -1,4 +1,4 @@
# Copyright (c) 2016 Weitian LI <liweitianux@live.com>
# MIT license
-from .clusters import GalaxyClusters
+# from .clusters import GalaxyClusters
diff --git a/fg21sim/extragalactic/clusters/main.py b/fg21sim/extragalactic/clusters/main.py
new file mode 100644
index 0000000..8f7f8e7
--- /dev/null
+++ b/fg21sim/extragalactic/clusters/main.py
@@ -0,0 +1,24 @@
+# Copyright (c) 2017 Weitian LI <liweitianux@live.com>
+# MIT license
+
+"""
+Simulate (giant) radio halos of galaxy clusters as one of the
+foreground components.
+"""
+
+import logging
+
+import numpy as np
+
+from .halo import HaloSingle
+
+
+logger = logging.getLogger(__name__)
+
+
+class Halos:
+ """
+ Simulate (giant) radio halos of galaxy clusters as one of the
+ foreground components.
+ """
+ pass
diff --git a/fg21sim/extragalactic/clusters/mergertree.py b/fg21sim/extragalactic/clusters/mergertree.py
index 61b9542..5891dba 100644
--- a/fg21sim/extragalactic/clusters/mergertree.py
+++ b/fg21sim/extragalactic/clusters/mergertree.py
@@ -73,6 +73,8 @@ def plot_mtree(mtree, outfile, figsize=(12, 8)):
"""
Plot the cluster merger tree.
+ TODO/XXX: This function needs significant speed optimization!
+
Parameters
----------
mtree : `~MergerTree`