From f252691a199cb1761c3a5f81ee0931212b3c5ac9 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Fri, 21 Jul 2017 10:21:10 +0800 Subject: 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 --- fg21sim/utils/cosmology.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fg21sim') 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: -- cgit v1.2.2