{"action":"created","issue":{"url":"https://api.github.com/repos/nilearn/nilearn/issues/922","labels_url":"https://api.github.com/repos/nilearn/nilearn/issues/922/labels{/name}","comments_url":"https://api.github.com/repos/nilearn/nilearn/issues/922/comments","events_url":"https://api.github.com/repos/nilearn/nilearn/issues/922/events","html_url":"https://github.com/nilearn/nilearn/issues/922","id":122923128,"number":922,"title":"find_xyz_cut_coords crashes on some compact binary images","user":{"login":"banilo","id":3907396,"avatar_url":"https://avatars.githubusercontent.com/u/3907396?v=3","gravatar_id":"","url":"https://api.github.com/users/banilo","html_url":"https://github.com/banilo","followers_url":"https://api.github.com/users/banilo/followers","following_url":"https://api.github.com/users/banilo/following{/other_user}","gists_url":"https://api.github.com/users/banilo/gists{/gist_id}","starred_url":"https://api.github.com/users/banilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/banilo/subscriptions","organizations_url":"https://api.github.com/users/banilo/orgs","repos_url":"https://api.github.com/users/banilo/repos","events_url":"https://api.github.com/users/banilo/events{/privacy}","received_events_url":"https://api.github.com/users/banilo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-12-18T10:29:20Z","updated_at":"2016-01-07T12:16:36Z","closed_at":null,"body":"...trace back is:\r\n\r\n```python\r\n---------------------------------------------------------------------------\r\nValueError                                Traceback (most recent call last)\r\n<ipython-input-44-802cef648458> in <module>()\r\n----> 1 plotting.find_xyz_cut_coords(nib.load(roi_paths[2]))\r\n\r\n/git/nilearn/nilearn/plotting/find_cuts.py in find_xyz_cut_coords(img, mask, activation_threshold)\r\n     90         return .5 * np.array(data.shape)\r\n     91     mask = largest_connected_component(mask)\r\n---> 92     slice_x, slice_y, slice_z = ndimage.find_objects(mask)[0]\r\n     93     my_map = my_map[slice_x, slice_y, slice_z]\r\n     94     mask = mask[slice_x, slice_y, slice_z]\r\n```\r\n\r\nThe image on which this crashes is attached.\r\n\r\n[dmpfc-3.nii.zip](https://github.com/nilearn/nilearn/files/66476/dmpfc-3.nii.zip)"},"comment":{"url":"https://api.github.com/repos/nilearn/nilearn/issues/comments/169645219","html_url":"https://github.com/nilearn/nilearn/issues/922#issuecomment-169645219","issue_url":"https://api.github.com/repos/nilearn/nilearn/issues/922","id":169645219,"user":{"login":"AlexandreAbraham","id":1647301,"avatar_url":"https://avatars.githubusercontent.com/u/1647301?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexandreAbraham","html_url":"https://github.com/AlexandreAbraham","followers_url":"https://api.github.com/users/AlexandreAbraham/followers","following_url":"https://api.github.com/users/AlexandreAbraham/following{/other_user}","gists_url":"https://api.github.com/users/AlexandreAbraham/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexandreAbraham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexandreAbraham/subscriptions","organizations_url":"https://api.github.com/users/AlexandreAbraham/orgs","repos_url":"https://api.github.com/users/AlexandreAbraham/repos","events_url":"https://api.github.com/users/AlexandreAbraham/events{/privacy}","received_events_url":"https://api.github.com/users/AlexandreAbraham/received_events","type":"User","site_admin":false},"created_at":"2016-01-07T12:16:36Z","updated_at":"2016-01-07T12:16:36Z","body":"@banilo I think this is important for 0.2.2. Are you working on it?"}}