aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-10-18 15:47:07 +0800
committerAaron LI <aaronly.me@outlook.com>2016-10-18 15:47:07 +0800
commit00597e44e68bebd74a2a7b838d0fa6dcf7511fc2 (patch)
treed4f9ef16b31ec10354087193fa6a04ded36a6857 /fg21sim
parent653d5fcad7259e93d97146613e2ecd31b1f7f80d (diff)
downloadfg21sim-00597e44e68bebd74a2a7b838d0fa6dcf7511fc2.tar.bz2
galactic/{freefree,synchrotron}.py: Fix small bugs
* freefree.py: Add the missing "/" to the config "halphamap" * synchrotron.py: Fix "comp" to have the correct value
Diffstat (limited to 'fg21sim')
-rw-r--r--fg21sim/galactic/freefree.py2
-rw-r--r--fg21sim/galactic/synchrotron.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/fg21sim/galactic/freefree.py b/fg21sim/galactic/freefree.py
index 2c34374..2023798 100644
--- a/fg21sim/galactic/freefree.py
+++ b/fg21sim/galactic/freefree.py
@@ -70,7 +70,7 @@ class FreeFree:
def _set_configs(self):
"""Load the configs and set the corresponding class attributes."""
comp = "galactic/freefree"
- self.halphamap_path = self.configs.get_path(comp+"halphamap")
+ self.halphamap_path = self.configs.get_path(comp+"/halphamap")
self.halphamap_unit = au.Unit(
self.configs.getn(comp+"/halphamap_unit"))
self.dustmap_path = self.configs.get_path(comp+"/dustmap")
diff --git a/fg21sim/galactic/synchrotron.py b/fg21sim/galactic/synchrotron.py
index 77c0be4..7ab33f0 100644
--- a/fg21sim/galactic/synchrotron.py
+++ b/fg21sim/galactic/synchrotron.py
@@ -48,7 +48,7 @@ class Synchrotron:
def _set_configs(self):
"""Load the configs and set the corresponding class attributes."""
- comp = "galactic/freefree"
+ comp = "galactic/synchrotron"
self.template_path = self.configs.get_path(comp+"/template")
self.template_freq = self.configs.getn(comp+"/template_freq")
self.template_unit = au.Unit(