{"action":"opened","issue":{"url":"https://api.github.com/repos/cta-observatory/ctapipe/issues/67","repository_url":"https://api.github.com/repos/cta-observatory/ctapipe","labels_url":"https://api.github.com/repos/cta-observatory/ctapipe/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/cta-observatory/ctapipe/issues/67/comments","events_url":"https://api.github.com/repos/cta-observatory/ctapipe/issues/67/events","html_url":"https://github.com/cta-observatory/ctapipe/issues/67","id":141522302,"number":67,"title":"Structure of the instrument module","user":{"login":"MaxNoe","id":5488440,"avatar_url":"https://avatars.githubusercontent.com/u/5488440?v=3","gravatar_id":"","url":"https://api.github.com/users/MaxNoe","html_url":"https://github.com/MaxNoe","followers_url":"https://api.github.com/users/MaxNoe/followers","following_url":"https://api.github.com/users/MaxNoe/following{/other_user}","gists_url":"https://api.github.com/users/MaxNoe/gists{/gist_id}","starred_url":"https://api.github.com/users/MaxNoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaxNoe/subscriptions","organizations_url":"https://api.github.com/users/MaxNoe/orgs","repos_url":"https://api.github.com/users/MaxNoe/repos","events_url":"https://api.github.com/users/MaxNoe/events{/privacy}","received_events_url":"https://api.github.com/users/MaxNoe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-17T09:08:52Z","updated_at":"2016-03-17T09:08:52Z","closed_at":null,"body":"In my opinion having classes for the instrument description might be a nicer interface.\r\n\r\nThe different loading and writing functions could then be class methods and be used like this:\r\n\r\n```{python}\r\nfrom ctapipe.instrument import InstrumentDescriptiion\r\n\r\ninstrument = InstrumentDescription.from_hessio('/path/to/file')\r\ninstrument.to_fits('instrument.fits')\r\n```"}}