{"action":"created","issue":{"url":"https://api.github.com/repos/PmagPy/PmagPy/issues/378","repository_url":"https://api.github.com/repos/PmagPy/PmagPy","labels_url":"https://api.github.com/repos/PmagPy/PmagPy/issues/378/labels{/name}","comments_url":"https://api.github.com/repos/PmagPy/PmagPy/issues/378/comments","events_url":"https://api.github.com/repos/PmagPy/PmagPy/issues/378/events","html_url":"https://github.com/PmagPy/PmagPy/issues/378","id":337065952,"node_id":"MDU6SXNzdWUzMzcwNjU5NTI=","number":378,"title":"comparing direction in aniso_magic","user":{"login":"moonshoes87","id":1836578,"node_id":"MDQ6VXNlcjE4MzY1Nzg=","avatar_url":"https://avatars3.githubusercontent.com/u/1836578?v=4","gravatar_id":"","url":"https://api.github.com/users/moonshoes87","html_url":"https://github.com/moonshoes87","followers_url":"https://api.github.com/users/moonshoes87/followers","following_url":"https://api.github.com/users/moonshoes87/following{/other_user}","gists_url":"https://api.github.com/users/moonshoes87/gists{/gist_id}","starred_url":"https://api.github.com/users/moonshoes87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moonshoes87/subscriptions","organizations_url":"https://api.github.com/users/moonshoes87/orgs","repos_url":"https://api.github.com/users/moonshoes87/repos","events_url":"https://api.github.com/users/moonshoes87/events{/privacy}","received_events_url":"https://api.github.com/users/moonshoes87/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-29T16:42:47Z","updated_at":"2018-06-30T20:50:47Z","closed_at":null,"author_association":"MEMBER","body":"@ltauxe, I'm working on making sure aniso_magic works awesomely.  I'm running into trouble with the \"compare direction\" element.\r\n\r\n                      Input: Vi D I to  compare  eigenvector Vi with direction D/I\r\n                             where Vi=1: principal\r\n                                   Vi=2: major\r\n                                   Vi=3: minor\r\n                                   D= declination of comparison direction\r\n                                   I= inclination of comparison direction\r\n\r\nNo matter what input I give, I get index errors later.\r\n\r\nAs far as I understand the code, vec will always be an integer:\r\n\r\n         vdi = input(\"Vi D I: \").split()\r\n         vec = int(vdi[0])-1\r\n\r\nbut later on, in plotANIS, the code is looking for vec to be iterable:\r\n\r\n        cart = pmag.dir2cart([v[vec][0], v[vec][1], 1.])\r\n\r\nCan you clarify for me?  We should fix the input message to explain more clearly the desired format for Vi D I!"},"comment":{"url":"https://api.github.com/repos/PmagPy/PmagPy/issues/comments/401565597","html_url":"https://github.com/PmagPy/PmagPy/issues/378#issuecomment-401565597","issue_url":"https://api.github.com/repos/PmagPy/PmagPy/issues/378","id":401565597,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTU2NTU5Nw==","user":{"login":"ltauxe","id":174861,"node_id":"MDQ6VXNlcjE3NDg2MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/174861?v=4","gravatar_id":"","url":"https://api.github.com/users/ltauxe","html_url":"https://github.com/ltauxe","followers_url":"https://api.github.com/users/ltauxe/followers","following_url":"https://api.github.com/users/ltauxe/following{/other_user}","gists_url":"https://api.github.com/users/ltauxe/gists{/gist_id}","starred_url":"https://api.github.com/users/ltauxe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ltauxe/subscriptions","organizations_url":"https://api.github.com/users/ltauxe/orgs","repos_url":"https://api.github.com/users/ltauxe/repos","events_url":"https://api.github.com/users/ltauxe/events{/privacy}","received_events_url":"https://api.github.com/users/ltauxe/received_events","type":"User","site_admin":false},"created_at":"2018-06-30T20:50:47Z","updated_at":"2018-06-30T20:50:47Z","author_association":"MEMBER","body":"no vec is a float - it is the direction (dec, inc) of the comparison direction. I’ll take a look.  \n\n> On Jun 29, 2018, at 9:42 AM, Lori J <notifications@github.com> wrote:\n> \n> @ltauxe <https://github.com/ltauxe>, I'm working on making sure aniso_magic works awesomely. I'm running into trouble with the \"compare direction\" element.\n> \n>                   Input: Vi D I to  compare  eigenvector Vi with direction D/I\n>                          where Vi=1: principal\n>                                Vi=2: major\n>                                Vi=3: minor\n>                                D= declination of comparison direction\n>                                I= inclination of comparison direction\n> No matter what input I give, I get index errors later.\n> \n> As far as I understand the code, vec will always be an integer:\n> \n>      vdi = input(\"Vi D I: \").split()\n>      vec = int(vdi[0])-1\n> but later on, in plotANIS, the code is looking for vec to be iterable:\n> \n>     cart = pmag.dir2cart([v[vec][0], v[vec][1], 1.])\n> Can you clarify for me? We should fix the input message to explain more clearly the desired format for Vi D I!\n> \n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub <https://github.com/PmagPy/PmagPy/issues/378>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAKrDcn6HBVziEBjZdi2RM10hPdxwCghks5uBlkHgaJpZM4U9UG3>.\n> \n\n"}}
{"actor":{"display_login":"ltauxe"}}