aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/foregrounds.py
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-11-19 12:03:11 +0800
committerAaron LI <aaronly.me@outlook.com>2016-11-19 12:03:11 +0800
commit781b7292a9e2dd1fdeadc53b928441efbe5bac28 (patch)
treee2f63b5856b7f3252765fa602237a2a9c94ece62 /fg21sim/foregrounds.py
parent921adebf51db4b09365f55d643c81abdd225a4c6 (diff)
downloadfg21sim-781b7292a9e2dd1fdeadc53b928441efbe5bac28.tar.bz2
foregrounds.py: Fix import and COMPONENTS_ALL
Diffstat (limited to 'fg21sim/foregrounds.py')
-rw-r--r--fg21sim/foregrounds.py21
1 files changed, 10 insertions, 11 deletions
diff --git a/fg21sim/foregrounds.py b/fg21sim/foregrounds.py
index 85bbf16..2206edf 100644
--- a/fg21sim/foregrounds.py
+++ b/fg21sim/foregrounds.py
@@ -2,13 +2,15 @@
# MIT license
"""
-Interface o the simulations of various supported foreground components.
+Interface to the simulations of various supported foreground components.
Currently supported foregrounds:
- Galactic synchrotron
- Galactic free-free
- Galactic supernova remnants
+- Extragalactic clusters of galaxies (radio halos)
+- Extragalactic point sources (multiple types)
"""
import os
@@ -24,8 +26,8 @@ import healpy as hp
from .galactic import (Synchrotron as GalacticSynchrotron,
FreeFree as GalacticFreeFree,
SuperNovaRemnants as GalacticSNR)
-from .extragalactic import GalaxyClusters as EGGalaxyClusters
-from .extragalactic import PointSources as ExtragalacticPointSources
+from .extragalactic import (GalaxyClusters as EGGalaxyClusters,
+ PointSources as EGPointSources)
from .utils.fits import write_fits_healpix
@@ -64,14 +66,11 @@ class Foregrounds:
"""
# All supported foreground components
COMPONENTS_ALL = OrderedDict([
- ("galactic/synchrotron", GalacticSynchrotron),
- ("galactic/freefree", GalacticFreeFree),
- ("galactic/snr", GalacticSNR),
- ("extragalactic/clusters", EGGalaxyClusters),
- ("galactic/synchrotron", GalacticSynchrotron),
- ("galactic/freefree", GalacticFreeFree),
- ("galactic/snr", GalacticSNR),
- ("extragalactic/pointsources", ExtragalacticPointSources),
+ ("galactic/synchrotron", GalacticSynchrotron),
+ ("galactic/freefree", GalacticFreeFree),
+ ("galactic/snr", GalacticSNR),
+ ("extragalactic/clusters", EGGalaxyClusters),
+ ("extragalactic/pointsources", EGPointSources),
])
def __init__(self, configs):