From eb438b39e769bc4faaa5fb7511cbd73e18242c41 Mon Sep 17 00:00:00 2001 From: "Christopher J. Markiewicz" Date: Mon, 27 Jan 2025 09:00:40 -0500 Subject: [PATCH] tmp: Try to get debug output --- test/test_registration.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/test_registration.py b/test/test_registration.py index 417237c4..b648f3e0 100644 --- a/test/test_registration.py +++ b/test/test_registration.py @@ -71,8 +71,16 @@ def test_ANTs_config_b0(datadir, tmp_path, dataset, r_x, r_y, r_z, t_x, t_y, t_z random_seed=1234, num_threads=cpu_count(), ) + # Debug + print(registration.cmdline) + print(f"{list(tmp_path.glob('**/*'))}") - result = registration.run(cwd=str(tmp_path)).outputs + ret = registration.run(cwd=str(tmp_path)) + print(f"{list(tmp_path.glob('**/*'))}") + print(f"stdout:\n{ret.runtime.stdout}") + print(f"stderr:\n{ret.runtime.stderr}") + print(f"merged:\n{ret.runtime.merged}") + result = ret.outputs xform = nt.linear.Affine( nt.io.itk.ITKLinearTransform.from_filename(result.forward_transforms[0]).to_ras(), reference=b0nii,