Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colorfa #128

Merged
merged 4 commits into from Feb 4, 2013
Merged

Colorfa #128

merged 4 commits into from Feb 4, 2013

Conversation

samuelstjean
Copy link
Contributor

This is a function that computes the RGB/ColorFA when supplied with a list of eigen vectors and the FA. There are also some tests for the 1D, 2D and 3D cases.

Parameters
----------
FA : array-like
3D array of the fractional anisotropy
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can also be 1D and 2D, as your tests show

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description was updated accordingly.

@MrBago
Copy link
Contributor

MrBago commented Jan 30, 2013

typically we use lower case variable names per pep-8, http://www.python.org/dev/peps/pep-0008/

On a related note, the script dipy/bin/fit_tensor will compute and save a color fa map as a nifti_file so that it can be opened using visualization software, for example trackvis. This function looks useful separate from that functionality, but I thought I would bring it up so everyone was aware of it.

Added a test to check if fa and evecs shape are matching and if the two last
dimensions of evecs are (3,3).
Now following pep-8 regarding lower case variables names.
@Garyfallidis
Copy link
Contributor

Looks good Sam. I 'll use it for an example shortly.

Garyfallidis added a commit that referenced this pull request Feb 4, 2013
@Garyfallidis Garyfallidis merged commit a9b9119 into dipy:master Feb 4, 2013
@samuelstjean samuelstjean deleted the colorfa branch May 27, 2013 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants