Because I didn't know about it . Done! Will push when I get off this train
:-)

On Wednesday, October 23, 2013, Eleftherios Garyfallidis wrote:

> In bin/dipy_quickbundles:
>
> > +                        cluster_arr[c][d[0]] = fg_mat['fg'][d[0]]
> > +                    except TypeError:
> > +                        print fg_mat['fg']
> > +                        foo
> > +        split = os.path.splitext(fname_orig)
> > +        fg_mat['fg'] = cluster_arr
> > +        with warnings.catch_warnings():
> > +            warnings.simplefilter("ignore")
> > +            sio.savemat(split[0] + '_cluster.mat',
> > +            	        fg_mat)
> > +    else:
> > +        raise ValueError('Unrecognized file-format')
> > +
> > +    if params.pkl_file:
> > +        pkl_f = file(params.pkl_file, 'w')
> > +        pickle.dump(bundles, pkl_f)
>
> Why are you not using save_pickle here? It is much faster as well as it is
> using the highest priority protocol for pickling.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/nipy/dipy/pull/260/files#r7177224>
> .
>