qsiprep/interfaces/mrtrix.py
def _pre_run_hook(self, runtime):
        """Sets the PATH to contain 3Tissue instead of RC3."""

        # If 3Tissue is the only MRtrix, there will be no path to average_response
        if RC3_ROOT is None:
            return runtime

        # Replace the RC3 mrtrix with 3Tissue in PATH
        old_path = runtime.environ.get("PATH")
        new_path = old_path.replace(RC3_ROOT, SS3T_ROOT)
        runtime.environ['PATH'] = new_path
        return runtime
Sets the PATH to contain 3Tissue instead of RC3.
Sets the PATH to contain 3Tissue instead of RC3.
Sets the PATH to contain 3Tissue instead of RC3 .
def _pre_run_hook(self, runtime):
        if RC3_ROOT is None:
            return runtime
        old_path = runtime.environ.get("PATH")
        new_path = old_path.replace(RC3_ROOT, SS3T_ROOT)
        runtime.environ['PATH'] = new_path
        return runtime
def _pre_run_hook ( self , runtime ) : if RC3_ROOT is None : return runtime old_path = runtime . environ . get ( "PATH" ) new_path = old_path . replace ( RC3_ROOT , SS3T_ROOT ) runtime . environ [ 'PATH' ] = new_path return runtime
Sets the PATH to contain 3Tissue instead of RC3.
Sets the PATH to contain 3Tissue instead of RC3 .
"""Sets the PATH to contain 3Tissue instead of RC3.""" # If 3Tissue is the only MRtrix, there will be no path to average_response # Replace the RC3 mrtrix with 3Tissue in PATH
self
runtime