{"action":"opened","issue":{"url":"https://api.github.com/repos/openconnectome/open-connectome/issues/52","labels_url":"https://api.github.com/repos/openconnectome/open-connectome/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/openconnectome/open-connectome/issues/52/comments","events_url":"https://api.github.com/repos/openconnectome/open-connectome/issues/52/events","html_url":"https://github.com/openconnectome/open-connectome/issues/52","id":87787961,"number":52,"title":"queryAnnoObjects failing (ocpcarest)","user":{"login":"alexbaden","id":5845842,"avatar_url":"https://avatars.githubusercontent.com/u/5845842?v=3","gravatar_id":"","url":"https://api.github.com/users/alexbaden","html_url":"https://github.com/alexbaden","followers_url":"https://api.github.com/users/alexbaden/followers","following_url":"https://api.github.com/users/alexbaden/following{/other_user}","gists_url":"https://api.github.com/users/alexbaden/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbaden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbaden/subscriptions","organizations_url":"https://api.github.com/users/alexbaden/orgs","repos_url":"https://api.github.com/users/alexbaden/repos","events_url":"https://api.github.com/users/alexbaden/events{/privacy}","received_events_url":"https://api.github.com/users/alexbaden/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"kunallillaney","id":1380214,"avatar_url":"https://avatars.githubusercontent.com/u/1380214?v=3","gravatar_id":"","url":"https://api.github.com/users/kunallillaney","html_url":"https://github.com/kunallillaney","followers_url":"https://api.github.com/users/kunallillaney/followers","following_url":"https://api.github.com/users/kunallillaney/following{/other_user}","gists_url":"https://api.github.com/users/kunallillaney/gists{/gist_id}","starred_url":"https://api.github.com/users/kunallillaney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kunallillaney/subscriptions","organizations_url":"https://api.github.com/users/kunallillaney/orgs","repos_url":"https://api.github.com/users/kunallillaney/repos","events_url":"https://api.github.com/users/kunallillaney/events{/privacy}","received_events_url":"https://api.github.com/users/kunallillaney/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-06-12T16:57:12Z","updated_at":"2015-06-12T16:57:12Z","closed_at":null,"body":"Two errors:\r\n\r\n1) Looks like resolution isn't set in the right place:\r\n```\r\n1192           offset = proj.datasetcfg.offset[resolution]\r\n1193           corner = (h5f['XYZOFFSET'][0]-offset[0],h5f['XYZOFFSET'][1]-offset[1],h5f['     XYZOFFSET'][2]-offset[2])\r\n1194           dim = h5f['CUTOUTSIZE'][:]\r\n1195           resolution = h5f['RESOLUTION'][0]\r\n```\r\nMoving the resolution (line 1195) up to line 1191 seemed to fix that problem (did not commit). But then I got this error:\r\n```\r\nTraceback (most recent call last):\r\n  File \"/Users/abaden/Projects/open-connectome/django/ocpca/views.py\", line 139, in queryObjects\r\n    return django.http.HttpResponse(ocpcarest.queryAnnoObjects(webargs,request.body), content_type=\"product/hdf5\")\r\n  File \"/Users/abaden/Projects/open-connectome/ocpca/ocpcarest.py\", line 1197, in queryAnnoObjects\r\n    if not proj.datasetcfg.checkCube( resolution, corner[0], corner[0]+dim[0], corner[1], corner[1]+dim[1], corner[2], corner[2]+dim[2] ):\r\nTypeError: checkCube() takes at most 5 arguments (8 given)\r\n```\r\nI think Kunal already fixed this in a previous query?\r\n"}}