{"action":"created","issue":{"url":"https://api.github.com/repos/hyperspy/hyperspy/issues/1316","repository_url":"https://api.github.com/repos/hyperspy/hyperspy","labels_url":"https://api.github.com/repos/hyperspy/hyperspy/issues/1316/labels{/name}","comments_url":"https://api.github.com/repos/hyperspy/hyperspy/issues/1316/comments","events_url":"https://api.github.com/repos/hyperspy/hyperspy/issues/1316/events","html_url":"https://github.com/hyperspy/hyperspy/issues/1316","id":186846489,"number":1316,"title":"m.fit_components fails on interactive fitting","user":{"login":"thomasaarholt","id":2721423,"avatar_url":"https://avatars.githubusercontent.com/u/2721423?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasaarholt","html_url":"https://github.com/thomasaarholt","followers_url":"https://api.github.com/users/thomasaarholt/followers","following_url":"https://api.github.com/users/thomasaarholt/following{/other_user}","gists_url":"https://api.github.com/users/thomasaarholt/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasaarholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasaarholt/subscriptions","organizations_url":"https://api.github.com/users/thomasaarholt/orgs","repos_url":"https://api.github.com/users/thomasaarholt/repos","events_url":"https://api.github.com/users/thomasaarholt/events{/privacy}","received_events_url":"https://api.github.com/users/thomasaarholt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-02T16:11:36Z","updated_at":"2016-11-02T16:35:10Z","closed_at":null,"body":"Fitting a normal gaussian on an EELS signal:\r\n\r\n```python\r\nm.fit_component(gaussian, signal_range=\"interactive\")\r\n---------------------------------------------------------------------------\r\nNotImplementedError                       Traceback (most recent call last)\r\n<ipython-input-60-f5052b4fe4fe> in <module>()\r\n----> 1 m.fit_component(gaussian, signal_range=\"interactive\")\r\n\r\n/Users/thomas/Dropbox/0_Git/GitHub/hyperspy_aar/hyperspy/models/model1d.py in fit_component(self, component, signal_range, estimate_parameters, fit_independent, only_current, **kwargs)\r\n    800                           only_current, **kwargs)\r\n    801         if signal_range == \"interactive\":\r\n--> 802             cf.edit_traits()\r\n    803         else:\r\n    804             cf.apply()\r\n\r\n/Users/thomas/anaconda/envs/sims/lib/python3.5/site-packages/traits/has_traits.py in edit_traits(self, view, parent, kind, context, handler, id, scrollable, **args)\r\n   1857 \r\n   1858         return view.ui( context, parent, kind, self.trait_view_elements(),\r\n-> 1859                         handler, id, scrollable, args )\r\n   1860 \r\n   1861     #---------------------------------------------------------------------------\r\n\r\n/Users/thomas/anaconda/envs/sims/lib/python3.5/site-packages/traitsui/view.py in ui(self, context, parent, kind, view_elements, handler, id, scrollable, args)\r\n    431             kind = self.kind\r\n    432 \r\n--> 433         ui.ui( parent, kind )\r\n    434 \r\n    435         return ui\r\n\r\n/Users/thomas/anaconda/envs/sims/lib/python3.5/site-packages/traitsui/ui.py in ui(self, parent, kind)\r\n    220                                    dispatch = 'ui' )\r\n    221         self.rebuild = getattr( toolkit(), 'ui_' + kind )\r\n--> 222         self.rebuild( self, parent )\r\n    223 \r\n    224     #---------------------------------------------------------------------------\r\n\r\n/Users/thomas/anaconda/envs/sims/lib/python3.5/site-packages/traitsui/toolkit.py in ui_live(self, ui, parent)\r\n    218             interface using information from the specified UI object.\r\n    219         \"\"\"\r\n--> 220         raise NotImplementedError\r\n    221 \r\n    222     def ui_modal ( self, ui, parent ):\r\n\r\nNotImplementedError: \r\n```"},"comment":{"url":"https://api.github.com/repos/hyperspy/hyperspy/issues/comments/257920944","html_url":"https://github.com/hyperspy/hyperspy/issues/1316#issuecomment-257920944","issue_url":"https://api.github.com/repos/hyperspy/hyperspy/issues/1316","id":257920944,"user":{"login":"thomasaarholt","id":2721423,"avatar_url":"https://avatars.githubusercontent.com/u/2721423?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasaarholt","html_url":"https://github.com/thomasaarholt","followers_url":"https://api.github.com/users/thomasaarholt/followers","following_url":"https://api.github.com/users/thomasaarholt/following{/other_user}","gists_url":"https://api.github.com/users/thomasaarholt/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasaarholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasaarholt/subscriptions","organizations_url":"https://api.github.com/users/thomasaarholt/orgs","repos_url":"https://api.github.com/users/thomasaarholt/repos","events_url":"https://api.github.com/users/thomasaarholt/events{/privacy}","received_events_url":"https://api.github.com/users/thomasaarholt/received_events","type":"User","site_admin":false},"created_at":"2016-11-02T16:35:10Z","updated_at":"2016-11-02T16:35:10Z","body":"That was my thought as well, but it isn't. I successfully plot interactively with qt4 (and can display the preferences gui), but this fails."}}
{"actor":{"display_login":"thomasaarholt"}}