Skip to content

Commit a91f707

Browse files
committed
add configuration parameters for impact and adapataion computations
1 parent 0b94eb4 commit a91f707

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

climada/conf/defaults.conf

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"repository": ""
77
},
88

9-
"log_level": "INFO",
9+
"log_level": "DEBUG",
1010

1111
"entity":
1212
{
@@ -18,5 +18,16 @@
1818
{
1919
"time_step_h": 1,
2020
"random_seed": 54
21+
},
22+
23+
"impact":
24+
{
25+
"max_matrix_size": 1.0e8
26+
},
27+
28+
"adaptation":
29+
{
30+
"impact_time_dependence": 1.0
2131
}
32+
2233
}

climada/util/config.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,10 @@ def setup_conf_user():
106106
if 'log_level' in userconfig.keys():
107107
CONFIG['log_level'] = userconfig['log_level']
108108

109+
if 'impact' in userconfig.keys():
110+
CONFIG['impact'] = userconfig['impact']
111+
112+
if 'adaptation' in userconfig.keys():
113+
CONFIG['adaptation'] = userconfig['adaptation']
114+
109115
check_conf()

0 commit comments

Comments
 (0)