4018ff088fa6771b9d9146cf70cafca61b268c91,dipy/reconst/dsi.py,DiffusionSpectrumFit,odf,#DiffusionSpectrumFit#Any#,168

Before Change


            self.model.cache_set("interp_coords", sphere, interp_coords)
        Pr = self.pdf()
        //calculate the orientation distribution function
        return pdf_odf(Pr, sphere, self.model.qradius, interp_coords)


def pdf_interp_coords(sphere, rradius, origin):
     Precompute coordinates for ODF calculation from the PDF

After Change


        Pr = self.pdf()

        //calculate the orientation distribution function
        odf = pdf_odf(Pr, sphere, self.model.qradius, interp_coords)

        // We compute the gfa here, since we have the ODF available and
        // the storage requirements are minimal.  Otherwise, we"d need to
        // recompute the ODF at significant computational expense.
        self._gfa = gfa(odf)

        return odf

    @property
    def gfa(self):
        if self._gfa is None:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: nipy/dipy
Commit Name: 4018ff088fa6771b9d9146cf70cafca61b268c91
Time: 2012-12-05
Author: stefan@sun.ac.za
File Name: dipy/reconst/dsi.py
Class Name: DiffusionSpectrumFit
Method Name: odf


Project Name: nipy/dipy
Commit Name: 3c2c1283891400d97490ded512bdbc578ab5094e
Time: 2012-11-27
Author: stefan@sun.ac.za
File Name: dipy/reconst/dsi.py
Class Name: DiffusionSpectrumFit
Method Name: odf


Project Name: nipy/dipy
Commit Name: cd4fbc823e711786d3fcfa266a2c9b37a33dc2bd
Time: 2012-09-20
Author: garyfallidis@gmail.com
File Name: dipy/reconst/dsi.py
Class Name: DiffusionSpectrumFit
Method Name: odf