aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/foregrounds.py
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2017-05-16 14:21:58 +0800
committerAaron LI <aaronly.me@outlook.com>2017-05-16 15:26:46 +0800
commit02d9b9bc2263d4eabee8a07bbf8c7606255fa761 (patch)
treec3f05984a124d16f8251b3b68131663b2aaf054a /fg21sim/foregrounds.py
parentd19f16e0d5a2f753fbc323fa13c438327ff3e058 (diff)
downloadfg21sim-02d9b9bc2263d4eabee8a07bbf8c7606255fa761.tar.bz2
configs: Use separate section "foregrounds" to config components
Also update copyright information.
Diffstat (limited to 'fg21sim/foregrounds.py')
-rw-r--r--fg21sim/foregrounds.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fg21sim/foregrounds.py b/fg21sim/foregrounds.py
index d74dfaf..c398394 100644
--- a/fg21sim/foregrounds.py
+++ b/fg21sim/foregrounds.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2016 Weitian LI <liweitianux@live.com>
+# Copyright (c) 2016-2017 Weitian LI <weitian@aaronly.me>
# MIT license
"""
@@ -91,7 +91,7 @@ class Foregrounds:
def _set_configs(self):
"""Load the configs and set the corresponding class attributes."""
- self.components_id = self.configs.getn("common/components")
+ self.components_id = self.configs.foregrounds[0]
logger.info("All supported simulation components: {0}".format(
", ".join(list(self.COMPONENTS_ALL.keys()))))
logger.info("Enabled components: {0}".format(