@@ -185,10 +185,11 @@ def test_dIydI_columns_preserve_order_with_multiple_workers(monkeypatch):
185185 assert results == [4 , 2 , 3 ]
186186
187187
188- def test_profile_parameter_shift_preserves_lao_constraints ():
188+ def test_profile_parameter_shift_supplies_independent_lao_coefficients ():
189189 solver = bare_solver ()
190190 solver .profiles_param = None
191191 solver .n_profiles_parameters_alpha = 2
192+ solver .n_profiles_parameters_beta = 1
192193 profiles = SimpleNamespace (
193194 alpha = np .array ([1.0 , 2.0 , - 3.0 ]),
194195 beta = np .array ([4.0 , - 4.0 ]),
@@ -199,10 +200,10 @@ def test_profile_parameter_shift_preserves_lao_constraints():
199200 alpha_shift = solver ._profile_parameters_for_column (profiles , 1 , 0.25 )
200201 beta_shift = solver ._profile_parameters_for_column (profiles , 2 , 0.5 )
201202
202- np .testing .assert_allclose (alpha_shift ["alpha" ], [1.0 , 2.25 , - 3.25 ])
203- np .testing .assert_allclose (alpha_shift ["beta" ], profiles . beta )
204- np .testing .assert_allclose (beta_shift ["alpha" ], profiles . alpha )
205- np .testing .assert_allclose (beta_shift ["beta" ], [4.5 , - 4.5 ])
203+ np .testing .assert_allclose (alpha_shift ["alpha" ], [1.0 , 2.25 ])
204+ np .testing .assert_allclose (alpha_shift ["beta" ], [ 4.0 ] )
205+ np .testing .assert_allclose (beta_shift ["alpha" ], [ 1.0 , 2.0 ] )
206+ np .testing .assert_allclose (beta_shift ["beta" ], [4.5 ])
206207 np .testing .assert_allclose (profiles .alpha , [1.0 , 2.0 , - 3.0 ])
207208 np .testing .assert_allclose (profiles .beta , [4.0 , - 4.0 ])
208209
0 commit comments