예제 #1
0
def _multi_align(out_dir,kw,all_data,n_pool):
    input_v = [ [d,out_dir,kw] for d in all_data]
    to_ret = ProcessingUtil._multiproc(func_align, input_v, n_pool)
    to_ret = [r for r in to_ret if r is not None]
    return to_ret
예제 #2
0
def align_data(base_dir,out_dir,n_pool,**kw):
    all_data = CheckpointUtilities.lazy_multi_load(base_dir)
    input_v = [ [d,out_dir,kw] for d in all_data]
    to_ret = ProcessingUtil._multiproc(func, input_v, n_pool)
    to_ret = [r for r in to_ret if r is not None]
    return to_ret
예제 #3
0
def filter_data(base_dir, out_dir, force, t_filter, f_decimate):
    all_data = CheckpointUtilities.lazy_multi_load(base_dir)
    input_v = [[d, out_dir, force, t_filter, f_decimate] for d in all_data]
    to_ret = ProcessingUtil._multiproc(func, input_v, n_pool=3)
    return to_ret