{"action":"opened","issue":{"url":"https://api.github.com/repos/Blosc/bcolz/issues/204","labels_url":"https://api.github.com/repos/Blosc/bcolz/issues/204/labels{/name}","comments_url":"https://api.github.com/repos/Blosc/bcolz/issues/204/comments","events_url":"https://api.github.com/repos/Blosc/bcolz/issues/204/events","html_url":"https://github.com/Blosc/bcolz/issues/204","id":85302776,"number":204,"title":"index / slice return carray option","user":{"login":"vapemaster","id":5299472,"avatar_url":"https://avatars.githubusercontent.com/u/5299472?v=3","gravatar_id":"","url":"https://api.github.com/users/vapemaster","html_url":"https://github.com/vapemaster","followers_url":"https://api.github.com/users/vapemaster/followers","following_url":"https://api.github.com/users/vapemaster/following{/other_user}","gists_url":"https://api.github.com/users/vapemaster/gists{/gist_id}","starred_url":"https://api.github.com/users/vapemaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vapemaster/subscriptions","organizations_url":"https://api.github.com/users/vapemaster/orgs","repos_url":"https://api.github.com/users/vapemaster/repos","events_url":"https://api.github.com/users/vapemaster/events{/privacy}","received_events_url":"https://api.github.com/users/vapemaster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-04T22:18:03Z","updated_at":"2015-06-04T22:18:03Z","closed_at":null,"body":"when I am working with very large datasets eval() doesn't play well and as such I have to do a row by row approach :\r\n\r\n    for i in prog(range(my_len)):\r\n        row = bc.carray(distmat[i])\r\n        truth_row = bc.eval('row > {}'.format(threshold))\r\n        nn.append((sum([j for j in bc.carray(distmat[i]).where(truth_row)])-1))\r\n\r\nbut having to create a carray to use the where() function is a bit clunky.."}}