{"action":"closed","issue":{"url":"https://api.github.com/repos/nipy/dipy/issues/924","repository_url":"https://api.github.com/repos/nipy/dipy","labels_url":"https://api.github.com/repos/nipy/dipy/issues/924/labels{/name}","comments_url":"https://api.github.com/repos/nipy/dipy/issues/924/comments","events_url":"https://api.github.com/repos/nipy/dipy/issues/924/events","html_url":"https://github.com/nipy/dipy/issues/924","id":133883649,"number":924,"title":"in dipy/io/tests/test_bvectxt.py function with same name is defined twice","user":{"login":"ghoshbishakh","id":5156787,"avatar_url":"https://avatars.githubusercontent.com/u/5156787?v=3","gravatar_id":"","url":"https://api.github.com/users/ghoshbishakh","html_url":"https://github.com/ghoshbishakh","followers_url":"https://api.github.com/users/ghoshbishakh/followers","following_url":"https://api.github.com/users/ghoshbishakh/following{/other_user}","gists_url":"https://api.github.com/users/ghoshbishakh/gists{/gist_id}","starred_url":"https://api.github.com/users/ghoshbishakh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghoshbishakh/subscriptions","organizations_url":"https://api.github.com/users/ghoshbishakh/orgs","repos_url":"https://api.github.com/users/ghoshbishakh/repos","events_url":"https://api.github.com/users/ghoshbishakh/events{/privacy}","received_events_url":"https://api.github.com/users/ghoshbishakh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-16T04:39:29Z","updated_at":"2016-02-23T20:30:45Z","closed_at":"2016-02-23T20:30:45Z","body":"`\r\ndef test_reorient_vectors():\r\n    bvec = np.arange(12).reshape((3, 4))\r\n    assert_array_equal(reorient_vectors(bvec, 'ras', 'ras'), bvec)\r\n    assert_array_equal(reorient_vectors(bvec, 'ras', 'lpi'), -bvec)\r\n    result = bvec[[1, 2, 0]]\r\n    assert_array_equal(reorient_vectors(bvec, 'ras', 'asr'), result)\r\n    bvec = result\r\n    result = bvec[[1, 0, 2]] * [[-1], [1], [-1]]\r\n    assert_array_equal(reorient_vectors(bvec, 'asr', 'ial'), result)\r\n    result = bvec[[1, 0, 2]] * [[-1], [1], [1]]\r\n    assert_array_equal(reorient_vectors(bvec, 'asr', 'iar'), result)\r\n    assert_raises(ValueError, reorient_vectors, bvec, 'ras', 'ra')\r\n\r\n\r\ndef test_reorient_vectors():\r\n    bvec = np.arange(12).reshape((3, 4))\r\n    assert_array_equal(reorient_vectors(bvec, 'ras', 'ras'), bvec)\r\n    assert_array_equal(reorient_vectors(bvec, 'ras', 'lpi'), -bvec)\r\n    result = bvec[[1, 2, 0]]\r\n    assert_array_equal(reorient_vectors(bvec, 'ras', 'asr'), result)\r\n    bvec = result\r\n    result = bvec[[1, 0, 2]] * [[-1], [1], [-1]]\r\n    assert_array_equal(reorient_vectors(bvec, 'asr', 'ial'), result)\r\n    result = bvec[[1, 0, 2]] * [[-1], [1], [1]]\r\n    assert_array_equal(reorient_vectors(bvec, 'asr', 'iar'), result)\r\n    assert_raises(ValueError, reorient_vectors, bvec, 'ras', 'ra')\r\n\r\n    bvec = np.arange(12).reshape((3, 4))\r\n    bvec = bvec.T\r\n    assert_array_equal(reorient_vectors(bvec, 'ras', 'ras', axis=1), bvec)\r\n    assert_array_equal(reorient_vectors(bvec, 'ras', 'lpi', axis=1), -bvec)\r\n    result = bvec[:, [1, 2, 0]]\r\n    assert_array_equal(reorient_vectors(bvec, 'ras', 'asr', axis=1), result)\r\n    bvec = result\r\n    result = bvec[:, [1, 0, 2]] * [-1, 1, -1]\r\n    assert_array_equal(reorient_vectors(bvec, 'asr', 'ial', axis=1), result)\r\n    result = bvec[:, [1, 0, 2]] * [-1, 1, 1]\r\n    assert_array_equal(reorient_vectors(bvec, 'asr', 'iar', axis=1), result)\r\n`"}}