{"action":"created","issue":{"url":"https://api.github.com/repos/Paradigm4/SciDB-Py/issues/105","repository_url":"https://api.github.com/repos/Paradigm4/SciDB-Py","labels_url":"https://api.github.com/repos/Paradigm4/SciDB-Py/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/Paradigm4/SciDB-Py/issues/105/comments","events_url":"https://api.github.com/repos/Paradigm4/SciDB-Py/issues/105/events","html_url":"https://github.com/Paradigm4/SciDB-Py/issues/105","id":225834745,"number":105,"title":"New version: error when using the double type","user":{"login":"apoliakov","id":2708498,"avatar_url":"https://avatars3.githubusercontent.com/u/2708498?v=3","gravatar_id":"","url":"https://api.github.com/users/apoliakov","html_url":"https://github.com/apoliakov","followers_url":"https://api.github.com/users/apoliakov/followers","following_url":"https://api.github.com/users/apoliakov/following{/other_user}","gists_url":"https://api.github.com/users/apoliakov/gists{/gist_id}","starred_url":"https://api.github.com/users/apoliakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apoliakov/subscriptions","organizations_url":"https://api.github.com/users/apoliakov/orgs","repos_url":"https://api.github.com/users/apoliakov/repos","events_url":"https://api.github.com/users/apoliakov/events{/privacy}","received_events_url":"https://api.github.com/users/apoliakov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-02T22:02:29Z","updated_at":"2017-05-03T02:39:37Z","closed_at":"2017-05-03T02:39:37Z","body":"Perhaps a type issue?\r\n\r\n```Python\r\n>>> iquery(scidb, \"build(<val:int64>[i=1:10,10,0], random())\", fetch=True)\r\narray([((255, 358237803), 1), ((255, 142484295), 2),\r\n       ((255, 1347983258), 3), ((255, 442093414), 4),\r\n       ((255, 629485456), 5), ((255, 1605858031), 6),\r\n       ((255, 1236363000), 7), ((255, 89663046), 8),\r\n       ((255, 2128602764), 9), ((255, 1934565753), 10)], \r\n      dtype=[('val', [('null', 'u1'), ('val', '<i8')]), ('i', '<i8')])\r\n\r\n>>> iquery(scidb, \"build(<val:double>[i=1:10,10,0], random())\", fetch=True)\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"scidbpy/db.py\", line 360, in iquery\r\n    for (att, (off, sz)) in zip(sch.atts, meta)))\r\n  File \"scidbpy/db.py\", line 360, in <genexpr>\r\n    for (att, (off, sz)) in zip(sch.atts, meta)))\r\n  File \"scidbpy/schema.py\", line 136, in frombytes\r\n    buf, self.val_dtype, 1, offset + null_size)[0]\r\nValueError: offset must be non-negative and no greater than buffer length (170)\r\n```"},"comment":{"url":"https://api.github.com/repos/Paradigm4/SciDB-Py/issues/comments/298811342","html_url":"https://github.com/Paradigm4/SciDB-Py/issues/105#issuecomment-298811342","issue_url":"https://api.github.com/repos/Paradigm4/SciDB-Py/issues/105","id":298811342,"user":{"login":"rvernica","id":241185,"avatar_url":"https://avatars2.githubusercontent.com/u/241185?v=3","gravatar_id":"","url":"https://api.github.com/users/rvernica","html_url":"https://github.com/rvernica","followers_url":"https://api.github.com/users/rvernica/followers","following_url":"https://api.github.com/users/rvernica/following{/other_user}","gists_url":"https://api.github.com/users/rvernica/gists{/gist_id}","starred_url":"https://api.github.com/users/rvernica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rvernica/subscriptions","organizations_url":"https://api.github.com/users/rvernica/orgs","repos_url":"https://api.github.com/users/rvernica/repos","events_url":"https://api.github.com/users/rvernica/events{/privacy}","received_events_url":"https://api.github.com/users/rvernica/received_events","type":"User","site_admin":false},"created_at":"2017-05-03T02:39:37Z","updated_at":"2017-05-03T02:39:37Z","body":"Yes, indeed, a type issue. Thanks. Fixed.\r\n```python\r\nnumpy.dtype.double.__name__ != 'double' # == 'float64'\r\n```"}}
{"actor":{"display_login":"rvernica"}}