{"action":"created","issue":{"url":"https://api.github.com/repos/SciTools/biggus/issues/152","labels_url":"https://api.github.com/repos/SciTools/biggus/issues/152/labels{/name}","comments_url":"https://api.github.com/repos/SciTools/biggus/issues/152/comments","events_url":"https://api.github.com/repos/SciTools/biggus/issues/152/events","html_url":"https://github.com/SciTools/biggus/issues/152","id":107198515,"number":152,"title":"Document somewhere that the order of the operations matter","user":{"login":"ocefpaf","id":950575,"avatar_url":"https://avatars.githubusercontent.com/u/950575?v=3","gravatar_id":"","url":"https://api.github.com/users/ocefpaf","html_url":"https://github.com/ocefpaf","followers_url":"https://api.github.com/users/ocefpaf/followers","following_url":"https://api.github.com/users/ocefpaf/following{/other_user}","gists_url":"https://api.github.com/users/ocefpaf/gists{/gist_id}","starred_url":"https://api.github.com/users/ocefpaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocefpaf/subscriptions","organizations_url":"https://api.github.com/users/ocefpaf/orgs","repos_url":"https://api.github.com/users/ocefpaf/repos","events_url":"https://api.github.com/users/ocefpaf/events{/privacy}","received_events_url":"https://api.github.com/users/ocefpaf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-18T13:03:32Z","updated_at":"2015-09-18T13:11:39Z","closed_at":null,"body":"This took almost 2 hours of my afternoon yesterday:\r\n\r\n```python\r\nimport numpy as np\r\nimport biggus\r\narr = biggus.NumpyArrayAdapter(np.array([1, 2, 3.]))\r\n\r\n1 + arr\r\n\r\nTypeError: unsupported operand type(s) for +: 'int' and 'NumpyArrayAdapter'\r\n```\r\n\r\nBut biggus is OK with this:\r\n\r\n```python\r\narr + 1\r\n<_Elementwise shape=(3) dtype=dtype('float64')>\r\n\r\n(arr + 1).ndarray()\r\narray([ 2.,  3.,  4.])\r\n```"},"comment":{"url":"https://api.github.com/repos/SciTools/biggus/issues/comments/141447334","html_url":"https://github.com/SciTools/biggus/issues/152#issuecomment-141447334","issue_url":"https://api.github.com/repos/SciTools/biggus/issues/152","id":141447334,"user":{"login":"ocefpaf","id":950575,"avatar_url":"https://avatars.githubusercontent.com/u/950575?v=3","gravatar_id":"","url":"https://api.github.com/users/ocefpaf","html_url":"https://github.com/ocefpaf","followers_url":"https://api.github.com/users/ocefpaf/followers","following_url":"https://api.github.com/users/ocefpaf/following{/other_user}","gists_url":"https://api.github.com/users/ocefpaf/gists{/gist_id}","starred_url":"https://api.github.com/users/ocefpaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocefpaf/subscriptions","organizations_url":"https://api.github.com/users/ocefpaf/orgs","repos_url":"https://api.github.com/users/ocefpaf/repos","events_url":"https://api.github.com/users/ocefpaf/events{/privacy}","received_events_url":"https://api.github.com/users/ocefpaf/received_events","type":"User","site_admin":false},"created_at":"2015-09-18T13:11:39Z","updated_at":"2015-09-18T13:11:39Z","body":"Similar problem here:\r\n\r\n```python\r\nimport numpy as np\r\n\r\nimport biggus\r\n\r\n\r\narrb = biggus.NumpyArrayAdapter(np.array([1, 2, 3.]))\r\n\r\narrn = np.array([1, 2, 3.])\r\n\r\narrn + arrb\r\n\r\narray([ 2.,  4.,  6.])\r\n```\r\n\r\nbut,\r\n\r\n```python\r\narrb + arrn\r\n\r\n<_Elementwise shape=(3) dtype=dtype('float64')>\r\n```\r\n\r\nI was expecting that all operation with a biggus array would return another biggus array."}}