@@ -73,9 +73,9 @@ def test_output_shapes_one_state_one_observed(filter_func, rng):
7373
7474 for output_idx , name in enumerate (output_names ):
7575 expected_output = get_expected_shape (name , p , m , r , n )
76- assert (
77- outputs [ output_idx ]. shape == expected_output
78- ), f"Shape of { name } does not match expected"
76+ assert outputs [ output_idx ]. shape == expected_output , (
77+ f"Shape of { name } does not match expected"
78+ )
7979
8080
8181@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):
8686 outputs = filter_func (* inputs )
8787 for output_idx , name in enumerate (output_names ):
8888 expected_output = get_expected_shape (name , p , m , r , n )
89- assert (
90- outputs [ output_idx ]. shape == expected_output
91- ), f"Shape of { name } does not match expected"
89+ assert outputs [ output_idx ]. shape == expected_output , (
90+ f"Shape of { name } does not match expected"
91+ )
9292
9393
9494@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):
9999 outputs = filter_func (* inputs )
100100 for output_idx , name in enumerate (output_names ):
101101 expected_output = get_expected_shape (name , p , m , r , n )
102- assert (
103- outputs [ output_idx ]. shape == expected_output
104- ), f"Shape of { name } does not match expected"
102+ assert outputs [ output_idx ]. shape == expected_output , (
103+ f"Shape of { name } does not match expected"
104+ )
105105
106106
107107@pytest .fixture
@@ -161,9 +161,9 @@ def test_output_shapes_with_time_varying_matrices(f_standard_nd, rng):
161161
162162 for output_idx , name in enumerate (output_names ):
163163 expected_output = get_expected_shape (name , p , m , r , n )
164- assert (
165- outputs [ output_idx ]. shape == expected_output
166- ), f"Shape of { name } does not match expected"
164+ assert outputs [ output_idx ]. shape == expected_output , (
165+ f"Shape of { name } does not match expected"
166+ )
167167
168168
169169@pytest .mark .parametrize ("filter_func" , filter_funcs , ids = filter_names )
@@ -175,9 +175,9 @@ def test_output_with_deterministic_observation_equation(filter_func, rng):
175175
176176 for output_idx , name in enumerate (output_names ):
177177 expected_output = get_expected_shape (name , p , m , r , n )
178- assert (
179- outputs [ output_idx ]. shape == expected_output
180- ), f"Shape of { name } does not match expected"
178+ assert outputs [ output_idx ]. shape == expected_output , (
179+ f"Shape of { name } does not match expected"
180+ )
181181
182182
183183@pytest .mark .parametrize (
@@ -190,9 +190,9 @@ def test_output_with_multiple_observed(filter_func, filter_name, rng):
190190 outputs = filter_func (* inputs )
191191 for output_idx , name in enumerate (output_names ):
192192 expected_output = get_expected_shape (name , p , m , r , n )
193- assert (
194- outputs [ output_idx ]. shape == expected_output
195- ), f"Shape of { name } does not match expected"
193+ assert outputs [ output_idx ]. shape == expected_output , (
194+ f"Shape of { name } does not match expected"
195+ )
196196
197197
198198@pytest .mark .parametrize (
@@ -206,9 +206,9 @@ def test_missing_data(filter_func, filter_name, p, rng):
206206 outputs = filter_func (* inputs )
207207 for output_idx , name in enumerate (output_names ):
208208 expected_output = get_expected_shape (name , p , m , r , n )
209- assert (
210- outputs [ output_idx ]. shape == expected_output
211- ), f"Shape of { name } does not match expected"
209+ assert outputs [ output_idx ]. shape == expected_output , (
210+ f"Shape of { name } does not match expected"
211+ )
212212
213213
214214@pytest .mark .parametrize ("filter_func" , filter_funcs , ids = filter_names )
0 commit comments