@@ -73,9 +73,9 @@ def test_output_shapes_one_state_one_observed(filter_func, rng):
73
73
74
74
for output_idx , name in enumerate (output_names ):
75
75
expected_output = get_expected_shape (name , p , m , r , n )
76
- assert outputs [ output_idx ]. shape == expected_output , (
77
- f"Shape of { name } does not match expected"
78
- )
76
+ assert (
77
+ outputs [ output_idx ]. shape == expected_output
78
+ ), f"Shape of { name } does not match expected"
79
79
80
80
81
81
@pytest .mark .parametrize ("filter_func" , filter_funcs , ids = filter_names )
@@ -86,9 +86,9 @@ def test_output_shapes_when_all_states_are_stochastic(filter_func, rng):
86
86
outputs = filter_func (* inputs )
87
87
for output_idx , name in enumerate (output_names ):
88
88
expected_output = get_expected_shape (name , p , m , r , n )
89
- assert outputs [ output_idx ]. shape == expected_output , (
90
- f"Shape of { name } does not match expected"
91
- )
89
+ assert (
90
+ outputs [ output_idx ]. shape == expected_output
91
+ ), f"Shape of { name } does not match expected"
92
92
93
93
94
94
@pytest .mark .parametrize ("filter_func" , filter_funcs , ids = filter_names )
@@ -99,9 +99,9 @@ def test_output_shapes_when_some_states_are_deterministic(filter_func, rng):
99
99
outputs = filter_func (* inputs )
100
100
for output_idx , name in enumerate (output_names ):
101
101
expected_output = get_expected_shape (name , p , m , r , n )
102
- assert outputs [ output_idx ]. shape == expected_output , (
103
- f"Shape of { name } does not match expected"
104
- )
102
+ assert (
103
+ outputs [ output_idx ]. shape == expected_output
104
+ ), f"Shape of { name } does not match expected"
105
105
106
106
107
107
@pytest .fixture
@@ -161,9 +161,9 @@ def test_output_shapes_with_time_varying_matrices(f_standard_nd, rng):
161
161
162
162
for output_idx , name in enumerate (output_names ):
163
163
expected_output = get_expected_shape (name , p , m , r , n )
164
- assert outputs [ output_idx ]. shape == expected_output , (
165
- f"Shape of { name } does not match expected"
166
- )
164
+ assert (
165
+ outputs [ output_idx ]. shape == expected_output
166
+ ), f"Shape of { name } does not match expected"
167
167
168
168
169
169
@pytest .mark .parametrize ("filter_func" , filter_funcs , ids = filter_names )
@@ -175,9 +175,9 @@ def test_output_with_deterministic_observation_equation(filter_func, rng):
175
175
176
176
for output_idx , name in enumerate (output_names ):
177
177
expected_output = get_expected_shape (name , p , m , r , n )
178
- assert outputs [ output_idx ]. shape == expected_output , (
179
- f"Shape of { name } does not match expected"
180
- )
178
+ assert (
179
+ outputs [ output_idx ]. shape == expected_output
180
+ ), f"Shape of { name } does not match expected"
181
181
182
182
183
183
@pytest .mark .parametrize (
@@ -190,9 +190,9 @@ def test_output_with_multiple_observed(filter_func, filter_name, rng):
190
190
outputs = filter_func (* inputs )
191
191
for output_idx , name in enumerate (output_names ):
192
192
expected_output = get_expected_shape (name , p , m , r , n )
193
- assert outputs [ output_idx ]. shape == expected_output , (
194
- f"Shape of { name } does not match expected"
195
- )
193
+ assert (
194
+ outputs [ output_idx ]. shape == expected_output
195
+ ), f"Shape of { name } does not match expected"
196
196
197
197
198
198
@pytest .mark .parametrize (
@@ -206,9 +206,9 @@ def test_missing_data(filter_func, filter_name, p, rng):
206
206
outputs = filter_func (* inputs )
207
207
for output_idx , name in enumerate (output_names ):
208
208
expected_output = get_expected_shape (name , p , m , r , n )
209
- assert outputs [ output_idx ]. shape == expected_output , (
210
- f"Shape of { name } does not match expected"
211
- )
209
+ assert (
210
+ outputs [ output_idx ]. shape == expected_output
211
+ ), f"Shape of { name } does not match expected"
212
212
213
213
214
214
@pytest .mark .parametrize ("filter_func" , filter_funcs , ids = filter_names )
0 commit comments