aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/galactic
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-10-04 15:02:06 +0800
committerAaron LI <aaronly.me@outlook.com>2016-10-04 15:02:06 +0800
commit27873cfb348d0263dc6015b13d82d10806664c41 (patch)
tree59d1ac959ef8bf7497b36919921a3a98c5788e75 /fg21sim/galactic
parent1e0d443c4c77a8a2cc0ae6e503e8811aca6b3e39 (diff)
downloadfg21sim-27873cfb348d0263dc6015b13d82d10806664c41.tar.bz2
Remove the "common/data_dir" config item
Diffstat (limited to 'fg21sim/galactic')
-rw-r--r--fg21sim/galactic/synchrotron.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/fg21sim/galactic/synchrotron.py b/fg21sim/galactic/synchrotron.py
index 14b4065..d05292f 100644
--- a/fg21sim/galactic/synchrotron.py
+++ b/fg21sim/galactic/synchrotron.py
@@ -40,15 +40,14 @@ class Synchrotron:
def _set_configs(self):
"""Load the configs and set the corresponding class attributes."""
- data_dir = self.configs.getn("common/data_dir")
- self.template_path = os.path.join(
- data_dir, self.configs.getn("galactic/synchrotron/template"))
+ self.template_path = self.configs.getn(
+ "galactic/synchrotron/template")
self.template_freq = self.configs.getn(
"galactic/synchrotron/template_freq")
self.template_unit = au.Unit(
self.configs.getn("galactic/synchrotron/template_unit"))
- self.indexmap_path = os.path.join(
- data_dir, self.configs.getn("galactic/synchrotron/indexmap"))
+ self.indexmap_path = self.configs.getn(
+ "galactic/synchrotron/indexmap")
self.smallscales = self.configs.getn(
"galactic/synchrotron/add_smallscales")
# output