{"action":"opened","issue":{"url":"https://api.github.com/repos/algori11/arbitrage_crypto/issues/8","repository_url":"https://api.github.com/repos/algori11/arbitrage_crypto","labels_url":"https://api.github.com/repos/algori11/arbitrage_crypto/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/algori11/arbitrage_crypto/issues/8/comments","events_url":"https://api.github.com/repos/algori11/arbitrage_crypto/issues/8/events","html_url":"https://github.com/algori11/arbitrage_crypto/issues/8","id":319401448,"number":8,"title":"[bug] インデックスアクセスでリスト範囲外アクセス起こりうるのでは","user":{"login":"octaltree","id":7942952,"avatar_url":"https://avatars3.githubusercontent.com/u/7942952?v=4","gravatar_id":"","url":"https://api.github.com/users/octaltree","html_url":"https://github.com/octaltree","followers_url":"https://api.github.com/users/octaltree/followers","following_url":"https://api.github.com/users/octaltree/following{/other_user}","gists_url":"https://api.github.com/users/octaltree/gists{/gist_id}","starred_url":"https://api.github.com/users/octaltree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octaltree/subscriptions","organizations_url":"https://api.github.com/users/octaltree/orgs","repos_url":"https://api.github.com/users/octaltree/repos","events_url":"https://api.github.com/users/octaltree/events{/privacy}","received_events_url":"https://api.github.com/users/octaltree/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-02T03:51:33Z","updated_at":"2018-05-02T03:51:33Z","closed_at":null,"author_association":"NONE","body":"root_uやroot_dにある\r\n```\r\n    for i in range(10):\r\n        idx[np.argmin([amount1[idx[0]], amount2[idx[1]], amount3[idx[2]]])] += 1\r\n```\r\nインクリメントが一箇所に固まった場合, idxが最大10をとり長さ10のamount範囲外ではないでしょうか.\r\n\r\n適当な初期値を与えて(ratio, value)=(0, 0)とかにして,\r\nidxが0のときの処理をforの中に入れるのが良いのではないでしょうか?"}}
{"actor":{"display_login":"octaltree"}}