Skip to content

Commit

Permalink
Merge pull request #377 from ANTsX/antsRegVerboseParams
Browse files Browse the repository at this point in the history
ENH: Show registration command line options if verbose
  • Loading branch information
cookpa authored Jun 2, 2022
2 parents cd30cbf + 5d43af5 commit 0811fb9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ants/registration/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -1398,6 +1398,8 @@ def registration(

processed_args = utils._int_antsProcessArguments(args)
libfn = utils.get_lib_fn("antsRegistration")
if verbose:
print("antsRegistration " + ' '.join(processed_args))
reg_exit = libfn(processed_args)
if (reg_exit != 0):
raise RuntimeError(f"Registration failed with error code {reg_exit}")
Expand Down

0 comments on commit 0811fb9

Please sign in to comment.