Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

        def whiten(in_file, do_whitening):
    out_file = in_file
    if do_whitening:
        import os
        from glob import glob
        from nipype.utils.filemanip import split_filename
        split_fname = split_filename(in_file)
        out_file = os.path.abspath(split_fname[1]+"_whitened"+split_fname[2])
        os.system('film_gls -ac -output_pwdata %s'%in_file)
        result = glob(os.path.join(os.path.abspath('results'),'prewhitened_data.*'))[0]
        out_file=result
    return out_file
        


src/b/r/BrainImagingPipelines-HEAD/bips/workflows/gablab/wips/scripts/base.py   BrainImagingPipelines(Download)
from utils import (create_compcorr, choose_susan, art_mean_workflow, z_image,
                   getmeanscale, highpass_operand, pickfirst, whiten)
from nipype.utils.filemanip import split_filename