diff options
author | Aaron LI <aaronly.me@outlook.com> | 2016-10-28 21:31:53 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2016-10-28 21:31:53 +0800 |
commit | e5a66770b4d3ec002134d92977d7340ae121232f (patch) | |
tree | d36092930eb99c0672f008cc6b18a5f0698637d0 | |
parent | 41ced23b10a09c9768cb79147047c7e157395b91 (diff) | |
download | fg21sim-e5a66770b4d3ec002134d92977d7340ae121232f.tar.bz2 |
foregrounds.py: Fix imports and update components dict
-rw-r--r-- | fg21sim/foregrounds.py | 17 |
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): |