{"action":"closed","issue":{"url":"https://api.github.com/repos/kidanger/vpv/issues/22","repository_url":"https://api.github.com/repos/kidanger/vpv","labels_url":"https://api.github.com/repos/kidanger/vpv/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/kidanger/vpv/issues/22/comments","events_url":"https://api.github.com/repos/kidanger/vpv/issues/22/events","html_url":"https://github.com/kidanger/vpv/issues/22","id":331916204,"node_id":"MDU6SXNzdWUzMzE5MTYyMDQ=","number":22,"title":"multidimensional images python","user":{"login":"vdeborto","id":24398664,"node_id":"MDQ6VXNlcjI0Mzk4NjY0","avatar_url":"https://avatars3.githubusercontent.com/u/24398664?v=4","gravatar_id":"","url":"https://api.github.com/users/vdeborto","html_url":"https://github.com/vdeborto","followers_url":"https://api.github.com/users/vdeborto/followers","following_url":"https://api.github.com/users/vdeborto/following{/other_user}","gists_url":"https://api.github.com/users/vdeborto/gists{/gist_id}","starred_url":"https://api.github.com/users/vdeborto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdeborto/subscriptions","organizations_url":"https://api.github.com/users/vdeborto/orgs","repos_url":"https://api.github.com/users/vdeborto/repos","events_url":"https://api.github.com/users/vdeborto/events{/privacy}","received_events_url":"https://api.github.com/users/vdeborto/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-13T09:36:14Z","updated_at":"2018-06-14T09:00:49Z","closed_at":"2018-06-14T09:00:49Z","author_association":"NONE","body":"vpv produces the following error when trying to open 3D images\r\n\r\n```python\r\nimport numpy as np \r\nimport vpv \r\nA = np.random.randn(3,3,3)\r\nvpv(A)\r\n```\r\n\r\n  File \"/usr/lib/python3/dist-packages/PIL/Image.py\", line 2150, in fromarray\r\n    mode, rawmode = _fromarray_typemap[typekey]\r\nKeyError: ((1, 1, 3), '<f8')\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/home/debortoli/testdot.py\", line 8, in <module>\r\n  File \"/usr/local/VideoProcessingViewer/misc/vpv.py\", line 39, in vpv\r\n    write_img(o, name);\r\n  File \"/usr/local/VideoProcessingViewer/misc/vpv.py\", line 10, in write_img\r\n    im = Image.fromarray(img)\r\n  File \"/usr/lib/python3/dist-packages/PIL/Image.py\", line 2153, in fromarray\r\n    raise TypeError(\"Cannot handle this data type\")\r\nTypeError: Cannot handle this data type"}}
{"actor":{"display_login":"kidanger"}}