{"action":"created","issue":{"url":"https://api.github.com/repos/spacetelescope/stak-notebooks/issues/62","repository_url":"https://api.github.com/repos/spacetelescope/stak-notebooks","labels_url":"https://api.github.com/repos/spacetelescope/stak-notebooks/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/spacetelescope/stak-notebooks/issues/62/comments","events_url":"https://api.github.com/repos/spacetelescope/stak-notebooks/issues/62/events","html_url":"https://github.com/spacetelescope/stak-notebooks/issues/62","id":289320518,"number":62,"title":"INS Review: stsdas.toolbox.imgtools","user":{"login":"SaraOgaz","id":5287848,"avatar_url":"https://avatars1.githubusercontent.com/u/5287848?v=4","gravatar_id":"","url":"https://api.github.com/users/SaraOgaz","html_url":"https://github.com/SaraOgaz","followers_url":"https://api.github.com/users/SaraOgaz/followers","following_url":"https://api.github.com/users/SaraOgaz/following{/other_user}","gists_url":"https://api.github.com/users/SaraOgaz/gists{/gist_id}","starred_url":"https://api.github.com/users/SaraOgaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SaraOgaz/subscriptions","organizations_url":"https://api.github.com/users/SaraOgaz/orgs","repos_url":"https://api.github.com/users/SaraOgaz/repos","events_url":"https://api.github.com/users/SaraOgaz/events{/privacy}","received_events_url":"https://api.github.com/users/SaraOgaz/received_events","type":"User","site_admin":false},"labels":[{"id":807780125,"url":"https://api.github.com/repos/spacetelescope/stak-notebooks/labels/INS%20feedback%20issue","name":"INS feedback issue","color":"5f1daa","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-01-17T16:06:27Z","updated_at":"2018-03-12T17:39:54Z","closed_at":null,"author_association":"CONTRIBUTOR","body":""},"comment":{"url":"https://api.github.com/repos/spacetelescope/stak-notebooks/issues/comments/372398183","html_url":"https://github.com/spacetelescope/stak-notebooks/issues/62#issuecomment-372398183","issue_url":"https://api.github.com/repos/spacetelescope/stak-notebooks/issues/62","id":372398183,"user":{"login":"jaymedina","id":32107699,"avatar_url":"https://avatars1.githubusercontent.com/u/32107699?v=4","gravatar_id":"","url":"https://api.github.com/users/jaymedina","html_url":"https://github.com/jaymedina","followers_url":"https://api.github.com/users/jaymedina/followers","following_url":"https://api.github.com/users/jaymedina/following{/other_user}","gists_url":"https://api.github.com/users/jaymedina/gists{/gist_id}","starred_url":"https://api.github.com/users/jaymedina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaymedina/subscriptions","organizations_url":"https://api.github.com/users/jaymedina/orgs","repos_url":"https://api.github.com/users/jaymedina/repos","events_url":"https://api.github.com/users/jaymedina/events{/privacy}","received_events_url":"https://api.github.com/users/jaymedina/received_events","type":"User","site_admin":false},"created_at":"2018-03-12T17:39:54Z","updated_at":"2018-03-12T17:39:54Z","author_association":"NONE","body":"# improject\r\n\r\n- Suggestion: Creating a simple 2d example to demonstrate what the `axis` parameter changes, and how the image is projected can help put things into perspective for users. Example below \r\n\r\n```\r\nmy_array = np.zeroes((5,5))\r\nmy_array[0,:] = 1.\r\n\r\nprint(my_array)\r\n```\r\n```\r\nOutput:\r\n[[ 1.  1.  1.  1.  1.]\r\n [ 0.  0.  0.  0.  0.]\r\n [ 0.  0.  0.  0.  0.]\r\n [ 0.  0.  0.  0.  0.]\r\n [ 0.  0.  0.  0.  0.]]\r\n```\r\n\r\n```\r\nnew_array = np.average(my_array, axis=1)\r\nprint(new_array)\r\n```\r\n```\r\nOutput:\r\n[ 1.  0.  0.  0.  0.]\r\n```\r\n\r\nSo now the user knows that setting `axis=1` means taking the average of each row, and projecting it onto a single row. Similarly `axis=0` tells Python to take the average of each column."}}
{"actor":{"display_login":"jaymedina"}}