Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions climada/engine/unsequa/test/test_unsequa.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ def test_calc_sensitivity_all_pass(self):
"sensitivity_kwargs": {"S": 10, "seed": 12345},
"test_param_name": ["x_exp", 0],
"test_si_name": ["CV", 16],
"test_si_value": [0.25000, 2],
"test_si_value": [0.250000, 2],
},
"hdmr": {
"sampling_method": "saltelli",
Expand All @@ -587,7 +587,7 @@ def test_calc_sensitivity_all_pass(self):
"sensitivity_kwargs": {},
"test_param_name": ["x_exp", 2],
"test_si_name": ["Sa", 4],
"test_si_value": [0.004658, 3],
"test_si_value": [0.004649, 3],
},
"ff": {
"sampling_method": "ff",
Expand Down Expand Up @@ -618,7 +618,7 @@ def test_calc_sensitivity_all_pass(self):
},
"test_param_name": ["x_exp", 0],
"test_si_name": ["dgsm", 8],
"test_si_value": [1.697516e-01, 9],
"test_si_value": [0.1697516, 9],
},
"fast": {
"sampling_method": "fast_sampler",
Expand All @@ -627,7 +627,7 @@ def test_calc_sensitivity_all_pass(self):
"sensitivity_kwargs": {"M": 4, "seed": 12345},
"test_param_name": ["x_exp", 0],
"test_si_name": ["S1_conf", 8],
"test_si_value": [0.671396, 1],
"test_si_value": [0.671546, 1],
},
"rbd_fast": {
"sampling_method": "saltelli",
Expand All @@ -636,7 +636,7 @@ def test_calc_sensitivity_all_pass(self):
"sensitivity_kwargs": {"M": 4, "seed": 12345},
"test_param_name": ["x_exp", 0],
"test_si_name": ["S1_conf", 4],
"test_si_value": [0.152609, 4],
"test_si_value": [0.129919, 4],
},
"morris": {
"sampling_method": "morris",
Expand All @@ -645,7 +645,7 @@ def test_calc_sensitivity_all_pass(self):
"sensitivity_kwargs": {},
"test_param_name": ["x_exp", 0],
"test_si_name": ["mu", 1],
"test_si_value": [5066460029.63911, 8],
"test_si_value": [7935400297.813827, 8],
},
}

Expand Down Expand Up @@ -700,7 +700,7 @@ def test_sensitivity_method(
haz_unc,
sensitivity_method,
method_params,
places=2 if sensitivity_method == "rbd_fast" else 5,
places=5,
)


Expand Down
2 changes: 1 addition & 1 deletion requirements/env_climada.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ dependencies:
- rasterio>=1.4
- requests>=2.32
- rtree>=1.4
- salib>=1.5,<1.5.2 # see https://github.com/CLIMADA-project/climada_python/issues/1081
- salib>=1.5.2 # see https://github.com/CLIMADA-project/climada_python/issues/1081
- scikit-learn>=1.7
- scipy>=1.15
- seaborn>=0.13
Expand Down
Loading