Skip to content

Commit

Permalink
tmp: Try to get debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Jan 27, 2025
1 parent b7d9092 commit eb438b3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/test_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit eb438b3

Please sign in to comment.