{"action":"closed","issue":{"url":"https://api.github.com/repos/bh107/bohrium/issues/159","repository_url":"https://api.github.com/repos/bh107/bohrium","labels_url":"https://api.github.com/repos/bh107/bohrium/issues/159/labels{/name}","comments_url":"https://api.github.com/repos/bh107/bohrium/issues/159/comments","events_url":"https://api.github.com/repos/bh107/bohrium/issues/159/events","html_url":"https://github.com/bh107/bohrium/issues/159","id":200080513,"number":159,"title":"Inconsistent handling of scalars depending on array dimensions","user":{"login":"dionhaefner","id":11994217,"avatar_url":"https://avatars.githubusercontent.com/u/11994217?v=3","gravatar_id":"","url":"https://api.github.com/users/dionhaefner","html_url":"https://github.com/dionhaefner","followers_url":"https://api.github.com/users/dionhaefner/followers","following_url":"https://api.github.com/users/dionhaefner/following{/other_user}","gists_url":"https://api.github.com/users/dionhaefner/gists{/gist_id}","starred_url":"https://api.github.com/users/dionhaefner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dionhaefner/subscriptions","organizations_url":"https://api.github.com/users/dionhaefner/orgs","repos_url":"https://api.github.com/users/dionhaefner/repos","events_url":"https://api.github.com/users/dionhaefner/events{/privacy}","received_events_url":"https://api.github.com/users/dionhaefner/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/bh107/bohrium/milestones/1","html_url":"https://github.com/bh107/bohrium/milestone/1","labels_url":"https://api.github.com/repos/bh107/bohrium/milestones/1/labels","id":2213481,"number":1,"title":"v0.5","description":null,"creator":{"login":"madsbk","id":1041088,"avatar_url":"https://avatars.githubusercontent.com/u/1041088?v=3","gravatar_id":"","url":"https://api.github.com/users/madsbk","html_url":"https://github.com/madsbk","followers_url":"https://api.github.com/users/madsbk/followers","following_url":"https://api.github.com/users/madsbk/following{/other_user}","gists_url":"https://api.github.com/users/madsbk/gists{/gist_id}","starred_url":"https://api.github.com/users/madsbk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madsbk/subscriptions","organizations_url":"https://api.github.com/users/madsbk/orgs","repos_url":"https://api.github.com/users/madsbk/repos","events_url":"https://api.github.com/users/madsbk/events{/privacy}","received_events_url":"https://api.github.com/users/madsbk/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":6,"state":"open","created_at":"2016-12-23T11:51:06Z","updated_at":"2017-01-25T08:41:06Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2017-01-11T12:28:35Z","updated_at":"2017-01-25T08:41:06Z","closed_at":"2017-01-25T08:41:06Z","body":"The code snippet\r\n\r\n```python\r\nimport numpy as np\r\n\r\nx = np.arange(15)\r\ndx1 = x[1] - x[0]\r\n\r\nxx = np.arange(15**2).reshape(15,15)\r\ndx2 = xx[0,1] - xx[0,0]\r\n\r\nprint(dx1 == dx2)\r\n```\r\n\r\ngives \r\n\r\n```\r\nRuntimeWarning: Encountering an operation not supported by Bohrium. It will be handled by the original NumPy.\r\n  dx2 = xx[0,1] - xx[0,0]\r\nTrue\r\n```\r\n\r\nSo, indexing into a 1-dimensional array is handled by Bohrium, but indexing into a higher-dimensional array falls back to NumPy (while in both cases the same scalar is returned)."}}
{"actor":{"display_login":"madsbk"}}