From f8b9dc31cf05e7517b99604b121905e8de1c0686 Mon Sep 17 00:00:00 2001 From: Emily Przykucki Date: Mon, 2 Dec 2024 13:56:06 -0500 Subject: [PATCH] Syntax change in `test_statistic_class.py` --- flepimop/gempyor_pkg/tests/statistics/test_statistic_class.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flepimop/gempyor_pkg/tests/statistics/test_statistic_class.py b/flepimop/gempyor_pkg/tests/statistics/test_statistic_class.py index 268b9ce21..4531d5490 100644 --- a/flepimop/gempyor_pkg/tests/statistics/test_statistic_class.py +++ b/flepimop/gempyor_pkg/tests/statistics/test_statistic_class.py @@ -520,7 +520,7 @@ def test_compute_logloss_data_misshape_value_error( model_rows, model_cols = mock_inputs.model_data[mock_inputs.config["sim_var"]].shape gt_rows, gt_cols = mock_inputs.gt_data[mock_inputs.config["data_var"]].shape - expected_match = rf".*'{mock_inputs.model_data[mock_inputs.config["sim_var"]].shape}' !=.*'{mock_inputs.gt_data[mock_inputs.config["data_var"]].shape}'" + expected_match = rf".*'{mock_inputs.model_data[mock_inputs.config['sim_var']].shape}' !=.*'{mock_inputs.gt_data[mock_inputs.config['data_var']].shape}'" with pytest.raises(ValueError, match=expected_match): statistic.compute_logloss(mock_inputs.model_data, mock_inputs.gt_data)