In pairwise_evaluation_ants we have scripts calling scripts.
We should minimize our use of subprocess.open and instead create modules that we import and use.
Most things don't need to be scripts but can be modules containing functions that achieve the various tasks
This should pay off later by (a) giving us a more modular API with which to create the evaluation scripts for the other registration methods and (b) giving us more informative tracebacks for debugging.
Some things, like calls to mrtrix or FSL, need to use subprocess and that's okay.
In
pairwise_evaluation_ants
we have scripts calling scripts.We should minimize our use of
subprocess.open
and instead create modules that weimport
and use.Most things don't need to be scripts but can be modules containing functions that achieve the various tasks
This should pay off later by (a) giving us a more modular API with which to create the evaluation scripts for the other registration methods and (b) giving us more informative tracebacks for debugging.
Some things, like calls to mrtrix or FSL, need to use
subprocess
and that's okay.But things we write ourselves don't need to. TractSeg also has a python interface.