aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-10-28 21:31:53 +0800
committerAaron LI <aaronly.me@outlook.com>2016-10-28 21:31:53 +0800
commite5a66770b4d3ec002134d92977d7340ae121232f (patch)
treed36092930eb99c0672f008cc6b18a5f0698637d0 /fg21sim
parent41ced23b10a09c9768cb79147047c7e157395b91 (diff)
downloadfg21sim-e5a66770b4d3ec002134d92977d7340ae121232f.tar.bz2
foregrounds.py: Fix imports and update components dict
Diffstat (limited to 'fg21sim')
-rw-r--r--fg21sim/foregrounds.py17
1 files changed, 7 insertions, 10 deletions
diff --git a/fg21sim/foregrounds.py b/fg21sim/foregrounds.py
index e3e0f62..aae7820 100644
--- a/fg21sim/foregrounds.py
+++ b/fg21sim/foregrounds.py
@@ -24,8 +24,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 import write_fits_healpix
@@ -64,14 +64,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):