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
ENH: GradientTable now calculates qvalues #472
Conversation
Perfect! This is very useful also for me... On Fri, Nov 21, 2014 at 10:14 AM, Demian Wassermann <
|
@@ -164,7 +164,21 @@ def test_deltas(): | |||
npt.assert_equal(bt.big_delta, 5) | |||
npt.assert_equal(bt.small_delta, 2) | |||
|
|||
def test_qvalues(): | |||
sq2 = np.sqrt(2)/2. | |||
bvals = 1500*np.ones(7) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PEP8: spaces around operators
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, but PEP8 was not enforced at all on this file so I didn't know what's the project's policy on this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My policy is to comment when I see something that isn't PEP8. We're not
perfect, but we try...
On Fri, Nov 21, 2014 at 10:16 AM, Demian Wassermann <
notifications@github.com> wrote:
In dipy/core/tests/test_gradients.py:
@@ -164,7 +164,21 @@ def test_deltas():
npt.assert_equal(bt.big_delta, 5)
npt.assert_equal(bt.small_delta, 2)+def test_qvalues():
- sq2 = np.sqrt(2)/2.
- bvals = 1500*np.ones(7)
Yup, but PEP8 was not enforced at all on this file so I didn't know what's
the project's policy on this—
Reply to this email directly or view it on GitHub
https://github.com/nipy/dipy/pull/472/files#r20731123.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like a good PEP8 policy to me.
Thanks for adding this. The enthused endorsement by @maurozucchelli suggests that it will be immediately useful! |
Great. I'll wait for Travis to finish cleanly here, and then merge this. |
ENH: GradientTable now calculates qvalues
Added an attribute to calculate the q-value table from the b-value one when big and small delta are given to the gradient table.