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

Fix vec2vec #334

Merged
merged 5 commits into from Apr 11, 2014
Merged

Fix vec2vec #334

merged 5 commits into from Apr 11, 2014

Conversation

arokem
Copy link
Contributor

@arokem arokem commented Mar 11, 2014

This fixes a small bug in the calculation of rotation matrices.

The fix in the sims module follows, because test failures upon applying this fix indicated that this calculation was front-to-back. I think everything's alright now

rot_back = np.dot(Rp, v)
sign_reverser = np.sign((np.sign(rot_back) == np.sign(u)) - 0.5).squeeze()

# Multiply each line by it's reverser and reassmble the matrix:
Copy link
Contributor

Choose a reason for hiding this comment

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

# Multiply each line by its reverser and reassemble the matrix:

(sorry)

# Everything's fine, up to a sign reversal:
rot_back = np.dot(Rp, v)
sign_reverser = np.sign((np.sign(rot_back) == np.sign(u)) - 0.5).squeeze()
# Multiply each line by it's reverser and reassmble the matrix:
Copy link
Contributor

Choose a reason for hiding this comment

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

typo

@Garyfallidis
Copy link
Contributor

Thank you for the bug fix. Please fix this tiny typo and I will happily do the merge :)

@arokem
Copy link
Contributor Author

arokem commented Mar 17, 2014

Done!

On Sun, Mar 16, 2014 at 4:50 PM, Eleftherios Garyfallidis <
notifications@github.com> wrote:

Thank you for the bug fix. Please fix this tiny typo and I will happily do
the merge :)


Reply to this email directly or view it on GitHubhttps://github.com//pull/334#issuecomment-37775908
.

Garyfallidis added a commit that referenced this pull request Apr 11, 2014
@Garyfallidis Garyfallidis merged commit 911a6fc into dipy:master Apr 11, 2014
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

3 participants