{"action":"created","issue":{"url":"https://api.github.com/repos/hyperspy/hyperspy/issues/477","labels_url":"https://api.github.com/repos/hyperspy/hyperspy/issues/477/labels{/name}","comments_url":"https://api.github.com/repos/hyperspy/hyperspy/issues/477/comments","events_url":"https://api.github.com/repos/hyperspy/hyperspy/issues/477/events","html_url":"https://github.com/hyperspy/hyperspy/pull/477","id":59657926,"number":477,"title":"Fetch spectra from the new EELS Database website","user":{"login":"francisco-dlp","id":989719,"avatar_url":"https://avatars.githubusercontent.com/u/989719?v=3","gravatar_id":"","url":"https://api.github.com/users/francisco-dlp","html_url":"https://github.com/francisco-dlp","followers_url":"https://api.github.com/users/francisco-dlp/followers","following_url":"https://api.github.com/users/francisco-dlp/following{/other_user}","gists_url":"https://api.github.com/users/francisco-dlp/gists{/gist_id}","starred_url":"https://api.github.com/users/francisco-dlp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francisco-dlp/subscriptions","organizations_url":"https://api.github.com/users/francisco-dlp/orgs","repos_url":"https://api.github.com/users/francisco-dlp/repos","events_url":"https://api.github.com/users/francisco-dlp/events{/privacy}","received_events_url":"https://api.github.com/users/francisco-dlp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hyperspy/hyperspy/labels/needs%20review","name":"needs review","color":"006b75"},{"url":"https://api.github.com/repos/hyperspy/hyperspy/labels/New","name":"New","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/hyperspy/hyperspy/milestones/8","html_url":"https://github.com/hyperspy/hyperspy/milestones/0.9","labels_url":"https://api.github.com/repos/hyperspy/hyperspy/milestones/8/labels","id":856137,"number":8,"title":"0.9","description":"","creator":{"login":"francisco-dlp","id":989719,"avatar_url":"https://avatars.githubusercontent.com/u/989719?v=3","gravatar_id":"","url":"https://api.github.com/users/francisco-dlp","html_url":"https://github.com/francisco-dlp","followers_url":"https://api.github.com/users/francisco-dlp/followers","following_url":"https://api.github.com/users/francisco-dlp/following{/other_user}","gists_url":"https://api.github.com/users/francisco-dlp/gists{/gist_id}","starred_url":"https://api.github.com/users/francisco-dlp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francisco-dlp/subscriptions","organizations_url":"https://api.github.com/users/francisco-dlp/orgs","repos_url":"https://api.github.com/users/francisco-dlp/repos","events_url":"https://api.github.com/users/francisco-dlp/events{/privacy}","received_events_url":"https://api.github.com/users/francisco-dlp/received_events","type":"User","site_admin":false},"open_issues":52,"closed_issues":9,"state":"open","created_at":"2014-11-06T15:54:23Z","updated_at":"2015-10-07T14:52:23Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-03-03T15:32:11Z","updated_at":"2015-11-05T10:57:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hyperspy/hyperspy/pulls/477","html_url":"https://github.com/hyperspy/hyperspy/pull/477","diff_url":"https://github.com/hyperspy/hyperspy/pull/477.diff","patch_url":"https://github.com/hyperspy/hyperspy/pull/477.patch"},"body":"Example\r\n-----------\r\n\r\n```python\r\nhs.plot.plot_spectra(hs.datasets.eelsdb(\r\n        element=[\"Fe\", \"O\"],\r\n        spectrum_type=\"coreloss\"))\r\n\r\n```\r\n![index](https://cloud.githubusercontent.com/assets/989719/6465677/6f182a32-c1ba-11e4-8412-c8a1ab9eacd6.png)\r\n\r\nTODO\r\n--------\r\n\r\n* [x] Document in User Guide.\r\n* [x] Store json in original_metadata\r\n* [x] raise warning for invalid files\r\n* [x] Parse the json file to gather more info about the spectra.\r\n* [x] Suggest to upload spectrum if query returns no spectra.\r\n* [x] Unittests (requires testing spectra on the EELSdb).??\r\n* [x] Fix monochromated\r\n* [x] Catch errors\r\n* [x] Change to hs.datasets.eelsdb"},"comment":{"url":"https://api.github.com/repos/hyperspy/hyperspy/issues/comments/154029935","html_url":"https://github.com/hyperspy/hyperspy/pull/477#issuecomment-154029935","issue_url":"https://api.github.com/repos/hyperspy/hyperspy/issues/477","id":154029935,"user":{"login":"to266","id":3384140,"avatar_url":"https://avatars.githubusercontent.com/u/3384140?v=3","gravatar_id":"","url":"https://api.github.com/users/to266","html_url":"https://github.com/to266","followers_url":"https://api.github.com/users/to266/followers","following_url":"https://api.github.com/users/to266/following{/other_user}","gists_url":"https://api.github.com/users/to266/gists{/gist_id}","starred_url":"https://api.github.com/users/to266/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/to266/subscriptions","organizations_url":"https://api.github.com/users/to266/orgs","repos_url":"https://api.github.com/users/to266/repos","events_url":"https://api.github.com/users/to266/events{/privacy}","received_events_url":"https://api.github.com/users/to266/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T10:57:05Z","updated_at":"2015-11-05T10:57:05Z","body":"Also, I personally would prefer if the warnings were not just one-liners. It would make them much more readable, given they also give the user suggestions in this case, however it's up to you"}}