From 86958a9c646c116bac1e94f77099af82c918d64b Mon Sep 17 00:00:00 2001 From: Brendan Meade Date: Tue, 9 Jul 2024 23:38:13 -0400 Subject: [PATCH] Adding print statements to help with Github workflow debugging --- tests/test_western_north_america_dense.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/test_western_north_america_dense.py b/tests/test_western_north_america_dense.py index 81ed22b..20fa343 100644 --- a/tests/test_western_north_america_dense.py +++ b/tests/test_western_north_america_dense.py @@ -61,17 +61,33 @@ def test_western_north_america_dense(): # Compare with known answer test_western_north_america_arrays = np.load("./tests/test_western_north_america_arrays.npz") + + print("START - SLIP RATE TEST") + print(f"{estimation.slip_rates[0]}, {test_western_north_america_arrays["estimation_slip_rates"][0]}") assert np.allclose( estimation.slip_rates, test_western_north_america_arrays["estimation_slip_rates"] ) + print("END - SLIP RATE TEST") + + print("START - TDE RATE TEST") + print(f"{estimation.tde_rates[0]}, {test_western_north_america_arrays["estimation_tde_rates"][0]}") assert np.allclose( estimation.tde_rates, test_western_north_america_arrays["estimation_tde_rates"] ) + print("END - TDE RATE TEST") + + print("START - EAST RESIDUAL TEST") + print(f"{estimation.east_vel_residual[0]}, {test_western_north_america_arrays["estimation_east_vel_residual"][0]}") assert np.allclose( estimation.east_vel_residual, test_western_north_america_arrays["estimation_east_vel_residual"], ) + print("END - EAST RESIDUAL TEST") + + print("START - NORTH RESIDUAL TEST") + print(f"{estimation.north_vel_residual[0]}, {test_western_north_america_arrays["estimation_north_vel_residual"][0]}") assert np.allclose( estimation.north_vel_residual, test_western_north_america_arrays["estimation_north_vel_residual"], ) + print("END - NORTH RESIDUAL TEST")