From 781b7292a9e2dd1fdeadc53b928441efbe5bac28 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 19 Nov 2016 12:03:11 +0800 Subject: foregrounds.py: Fix import and COMPONENTS_ALL --- fg21sim/foregrounds.py | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'fg21sim/foregrounds.py') 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): -- cgit v1.2.2