{"action":"created","issue":{"url":"https://api.github.com/repos/gammapy/gammapy/issues/485","repository_url":"https://api.github.com/repos/gammapy/gammapy","labels_url":"https://api.github.com/repos/gammapy/gammapy/issues/485/labels{/name}","comments_url":"https://api.github.com/repos/gammapy/gammapy/issues/485/comments","events_url":"https://api.github.com/repos/gammapy/gammapy/issues/485/events","html_url":"https://github.com/gammapy/gammapy/pull/485","id":139017382,"number":485,"title":"Class OffDataBackgroundMaker","user":{"login":"JouvinLea","id":14295716,"avatar_url":"https://avatars.githubusercontent.com/u/14295716?v=3","gravatar_id":"","url":"https://api.github.com/users/JouvinLea","html_url":"https://github.com/JouvinLea","followers_url":"https://api.github.com/users/JouvinLea/followers","following_url":"https://api.github.com/users/JouvinLea/following{/other_user}","gists_url":"https://api.github.com/users/JouvinLea/gists{/gist_id}","starred_url":"https://api.github.com/users/JouvinLea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JouvinLea/subscriptions","organizations_url":"https://api.github.com/users/JouvinLea/orgs","repos_url":"https://api.github.com/users/JouvinLea/repos","events_url":"https://api.github.com/users/JouvinLea/events{/privacy}","received_events_url":"https://api.github.com/users/JouvinLea/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gammapy/gammapy/labels/cleanup","name":"cleanup","color":"5319e7"},{"url":"https://api.github.com/repos/gammapy/gammapy/labels/feature","name":"feature","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"cdeil","id":852409,"avatar_url":"https://avatars.githubusercontent.com/u/852409?v=3","gravatar_id":"","url":"https://api.github.com/users/cdeil","html_url":"https://github.com/cdeil","followers_url":"https://api.github.com/users/cdeil/followers","following_url":"https://api.github.com/users/cdeil/following{/other_user}","gists_url":"https://api.github.com/users/cdeil/gists{/gist_id}","starred_url":"https://api.github.com/users/cdeil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdeil/subscriptions","organizations_url":"https://api.github.com/users/cdeil/orgs","repos_url":"https://api.github.com/users/cdeil/repos","events_url":"https://api.github.com/users/cdeil/events{/privacy}","received_events_url":"https://api.github.com/users/cdeil/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/gammapy/gammapy/milestones/5","html_url":"https://github.com/gammapy/gammapy/milestones/0.4","labels_url":"https://api.github.com/repos/gammapy/gammapy/milestones/5/labels","id":1058090,"number":5,"title":"0.4","description":"","creator":{"login":"cdeil","id":852409,"avatar_url":"https://avatars.githubusercontent.com/u/852409?v=3","gravatar_id":"","url":"https://api.github.com/users/cdeil","html_url":"https://github.com/cdeil","followers_url":"https://api.github.com/users/cdeil/followers","following_url":"https://api.github.com/users/cdeil/following{/other_user}","gists_url":"https://api.github.com/users/cdeil/gists{/gist_id}","starred_url":"https://api.github.com/users/cdeil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdeil/subscriptions","organizations_url":"https://api.github.com/users/cdeil/orgs","repos_url":"https://api.github.com/users/cdeil/repos","events_url":"https://api.github.com/users/cdeil/events{/privacy}","received_events_url":"https://api.github.com/users/cdeil/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":106,"state":"open","created_at":"2015-04-08T11:51:53Z","updated_at":"2016-03-07T17:11:47Z","due_on":"2016-02-28T23:00:00Z","closed_at":null},"comments":3,"created_at":"2016-03-07T16:07:10Z","updated_at":"2016-03-07T17:45:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/gammapy/gammapy/pulls/485","html_url":"https://github.com/gammapy/gammapy/pull/485","diff_url":"https://github.com/gammapy/gammapy/pull/485.diff","patch_url":"https://github.com/gammapy/gammapy/pull/485.patch"},"body":"PR for the script of how to use the new class.\r\nTell me what you think! It's quite the same than the test_background_model!"},"comment":{"url":"https://api.github.com/repos/gammapy/gammapy/issues/comments/193366347","html_url":"https://github.com/gammapy/gammapy/pull/485#issuecomment-193366347","issue_url":"https://api.github.com/repos/gammapy/gammapy/issues/485","id":193366347,"user":{"login":"JouvinLea","id":14295716,"avatar_url":"https://avatars.githubusercontent.com/u/14295716?v=3","gravatar_id":"","url":"https://api.github.com/users/JouvinLea","html_url":"https://github.com/JouvinLea","followers_url":"https://api.github.com/users/JouvinLea/followers","following_url":"https://api.github.com/users/JouvinLea/following{/other_user}","gists_url":"https://api.github.com/users/JouvinLea/gists{/gist_id}","starred_url":"https://api.github.com/users/JouvinLea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JouvinLea/subscriptions","organizations_url":"https://api.github.com/users/JouvinLea/orgs","repos_url":"https://api.github.com/users/JouvinLea/repos","events_url":"https://api.github.com/users/JouvinLea/events{/privacy}","received_events_url":"https://api.github.com/users/JouvinLea/received_events","type":"User","site_admin":false},"created_at":"2016-03-07T17:45:46Z","updated_at":"2016-03-07T17:45:46Z","body":"By bgmaker.save() you mean to write the rate in a fits file? Because this is already done in make_model(). Perhaps you prefer to put the writing in an other method save() ?"}}