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
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
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