{"action":"opened","issue":{"url":"https://api.github.com/repos/glue-viz/glue/issues/718","labels_url":"https://api.github.com/repos/glue-viz/glue/issues/718/labels{/name}","comments_url":"https://api.github.com/repos/glue-viz/glue/issues/718/comments","events_url":"https://api.github.com/repos/glue-viz/glue/issues/718/events","html_url":"https://github.com/glue-viz/glue/issues/718","id":100711561,"number":718,"title":"Bug in categorical ROI","user":{"login":"astrofrog","id":314716,"avatar_url":"https://avatars.githubusercontent.com/u/314716?v=3","gravatar_id":"","url":"https://api.github.com/users/astrofrog","html_url":"https://github.com/astrofrog","followers_url":"https://api.github.com/users/astrofrog/followers","following_url":"https://api.github.com/users/astrofrog/following{/other_user}","gists_url":"https://api.github.com/users/astrofrog/gists{/gist_id}","starred_url":"https://api.github.com/users/astrofrog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astrofrog/subscriptions","organizations_url":"https://api.github.com/users/astrofrog/orgs","repos_url":"https://api.github.com/users/astrofrog/repos","events_url":"https://api.github.com/users/astrofrog/events{/privacy}","received_events_url":"https://api.github.com/users/astrofrog/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-13T08:08:49Z","updated_at":"2015-08-13T08:08:49Z","closed_at":null,"body":"Following #601, if I generate the following dataset and open it in glue:\r\n\r\n```python\r\nimport numpy as np\r\nfrom astropy.table import Table\r\n\r\nt = Table()\r\nt['a'] = ['a','b','c'] * 10\r\nt['b'] = np.random.random(30)\r\nt.write('test.fits', overwrite=True)\r\n```\r\n\r\nthen try and make a scatter plot and select something, I get:\r\n\r\n```python\r\nTraceback (most recent call last):\r\n  File \"/Volumes/Raptor/miniconda3/envs/production/lib/python3.4/site-packages/matplotlib/backends/backend_qt5.py\", line 291, in mouseReleaseEvent\r\n    FigureCanvasBase.button_release_event(self, x, y, button)\r\n  File \"/Volumes/Raptor/miniconda3/envs/production/lib/python3.4/site-packages/matplotlib/backend_bases.py\", line 1910, in button_release_event\r\n    self.callbacks.process(s, event)\r\n  File \"/Volumes/Raptor/miniconda3/envs/production/lib/python3.4/site-packages/matplotlib/cbook.py\", line 540, in process\r\n    proxy(*args, **kwargs)\r\n  File \"/Volumes/Raptor/miniconda3/envs/production/lib/python3.4/site-packages/matplotlib/cbook.py\", line 415, in __call__\r\n    return mtd(*args, **kwargs)\r\n  File \"/Volumes/Raptor/miniconda3/envs/production/lib/python3.4/site-packages/glue/qt/mouse_mode.py\", line 222, in release\r\n    self._finish_roi(event)\r\n  File \"/Volumes/Raptor/miniconda3/envs/production/lib/python3.4/site-packages/glue/qt/mouse_mode.py\", line 175, in _finish_roi\r\n    self._roi_callback(self)\r\n  File \"/Volumes/Raptor/miniconda3/envs/production/lib/python3.4/site-packages/glue/qt/widgets/scatter_widget.py\", line 110, in apply_mode\r\n    return self.apply_roi(mode.roi())\r\n  File \"/Volumes/Raptor/miniconda3/envs/production/lib/python3.4/site-packages/glue/qt/decorators.py\", line 20, in result\r\n    return func(*args, **kwargs)\r\n  File \"/Volumes/Raptor/miniconda3/envs/production/lib/python3.4/site-packages/glue/core/application_base.py\", line 299, in apply_roi\r\n    self._session.command_stack.do(cmd)\r\n  File \"/Volumes/Raptor/miniconda3/envs/production/lib/python3.4/site-packages/glue/core/command.py\", line 125, in do\r\n    result = cmd.do(self._session)\r\n  File \"/Volumes/Raptor/miniconda3/envs/production/lib/python3.4/site-packages/glue/core/command.py\", line 260, in do\r\n    self.client.apply_roi(self.roi)\r\n  File \"/Volumes/Raptor/miniconda3/envs/production/lib/python3.4/site-packages/glue/clients/scatter_client.py\", line 293, in apply_roi\r\n    subset_state = self._process_categorical_roi(roi)\r\n  File \"/Volumes/Raptor/miniconda3/envs/production/lib/python3.4/site-packages/glue/clients/scatter_client.py\", line 273, in _process_categorical_roi\r\n    raise AssertionError\r\nAssertionError\r\n```\r\n\r\ncc @JudoWill "}}