aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/utils
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-07-21 10:21:10 +0800
committerAaron LI <aly@aaronly.me>2017-07-21 10:21:10 +0800
commitf252691a199cb1761c3a5f81ee0931212b3c5ac9 (patch)
tree019cc2d9d852ba4d446a28341250abdd89dd70a0 /fg21sim/utils
parent7b35db2dc2ebae3ecc97749342ebe5951eb5eaae (diff)
downloadfg21sim-f252691a199cb1761c3a5f81ee0931212b3c5ac9.tar.bz2
bin/fg21sim: Setup cosmology model at the beginning
* Update copyright * Add a help on "DEBUG_FG21SIM" * Also fix a bug in cosmology setup() Signed-off-by: Aaron LI <aly@aaronly.me>
Diffstat (limited to 'fg21sim/utils')
-rw-r--r--fg21sim/utils/cosmology.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fg21sim/utils/cosmology.py b/fg21sim/utils/cosmology.py
index 3a4d5fd..fd9f1ff 100644
--- a/fg21sim/utils/cosmology.py
+++ b/fg21sim/utils/cosmology.py
@@ -65,7 +65,7 @@ class Cosmology:
"""
Setup/update the parameters of the cosmology model.
"""
- for key, value in kwargs:
+ for key, value in kwargs.items():
if key in ["H0", "Om0", "Ob0", "sigma8"]:
setattr(self, key, value)
else: