Skip to content

Commit bc37b05

Browse files
committed
Adjust test
1 parent e8e5e9b commit bc37b05

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tests/run_tests/driver_joint_cross_gradient_test.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,16 @@ def test_joint_cross_gradient_inv_run(
276276
# Expecting that gravity tiles are independently scaled, but MVI tiles take
277277
# the scaling from its total misfit.
278278
np.testing.assert_allclose(
279-
driver.data_misfit.multipliers,
279+
driver.directives.scale_misfits.scalings,
280280
[0.5011, 0.5, 0.5, 0.5, 1.0],
281281
atol=1e-3,
282282
)
283+
# Check that scaling * chi factor is reflected in data misfit multipliers
284+
np.testing.assert_allclose(
285+
driver.data_misfit.multipliers,
286+
[0.4009, 0.4, 0.5, 0.5, 1.0],
287+
atol=1e-3,
288+
)
283289

284290
with Workspace(driver.params.geoh5.h5file):
285291
output = get_inversion_output(

0 commit comments

Comments
 (0)