From e5a66770b4d3ec002134d92977d7340ae121232f Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Fri, 28 Oct 2016 21:31:53 +0800 Subject: foregrounds.py: Fix imports and update components dict --- fg21sim/foregrounds.py | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'fg21sim') 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): -- cgit v1.2.2