From 00597e44e68bebd74a2a7b838d0fa6dcf7511fc2 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 18 Oct 2016 15:47:07 +0800 Subject: 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 --- fg21sim/galactic/freefree.py | 2 +- fg21sim/galactic/synchrotron.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'fg21sim') 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( -- cgit v1.2.2