{"action":"opened","number":209,"pull_request":{"url":"https://api.github.com/repos/vortex-exoplanet/VIP/pulls/209","id":189079041,"html_url":"https://github.com/vortex-exoplanet/VIP/pull/209","diff_url":"https://github.com/vortex-exoplanet/VIP/pull/209.diff","patch_url":"https://github.com/vortex-exoplanet/VIP/pull/209.patch","issue_url":"https://api.github.com/repos/vortex-exoplanet/VIP/issues/209","number":209,"state":"open","locked":false,"title":"store HCIDataset to disk","user":{"login":"r4lv","id":37106979,"avatar_url":"https://avatars0.githubusercontent.com/u/37106979?v=4","gravatar_id":"","url":"https://api.github.com/users/r4lv","html_url":"https://github.com/r4lv","followers_url":"https://api.github.com/users/r4lv/followers","following_url":"https://api.github.com/users/r4lv/following{/other_user}","gists_url":"https://api.github.com/users/r4lv/gists{/gist_id}","starred_url":"https://api.github.com/users/r4lv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r4lv/subscriptions","organizations_url":"https://api.github.com/users/r4lv/orgs","repos_url":"https://api.github.com/users/r4lv/repos","events_url":"https://api.github.com/users/r4lv/events{/privacy}","received_events_url":"https://api.github.com/users/r4lv/received_events","type":"User","site_admin":false},"body":"This PR renames the existing `HCIDataset.save` method to `export`, as it just stores the cube and angles to a FITS file.\r\n\r\nA new `save` method was introduced which:\r\n- stores the cube, angles and PSF arrays using numpy's efficient `savez` function\r\n- stores the rest of the object using `pickle`.\r\n\r\n``` python\r\ndataset = HCIDataset(cube=...)\r\ndataset.save(\"data1\")\r\n```\r\n\r\nOnce written to disk the HCIDataset object can be restored using\r\n\r\n``` python\r\ndataset = HCIDataset.from_file(\"data1\")\r\n```","created_at":"2018-05-18T16:42:44Z","updated_at":"2018-05-18T16:42:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/vortex-exoplanet/VIP/pulls/209/commits","review_comments_url":"https://api.github.com/repos/vortex-exoplanet/VIP/pulls/209/comments","review_comment_url":"https://api.github.com/repos/vortex-exoplanet/VIP/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vortex-exoplanet/VIP/issues/209/comments","statuses_url":"https://api.github.com/repos/vortex-exoplanet/VIP/statuses/c053f45f3c9096c41da3cf4943d4968a16692911","head":{"label":"r4lv:patch-datasetsave","ref":"patch-datasetsave","sha":"c053f45f3c9096c41da3cf4943d4968a16692911","user":{"login":"r4lv","id":37106979,"avatar_url":"https://avatars0.githubusercontent.com/u/37106979?v=4","gravatar_id":"","url":"https://api.github.com/users/r4lv","html_url":"https://github.com/r4lv","followers_url":"https://api.github.com/users/r4lv/followers","following_url":"https://api.github.com/users/r4lv/following{/other_user}","gists_url":"https://api.github.com/users/r4lv/gists{/gist_id}","starred_url":"https://api.github.com/users/r4lv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r4lv/subscriptions","organizations_url":"https://api.github.com/users/r4lv/orgs","repos_url":"https://api.github.com/users/r4lv/repos","events_url":"https://api.github.com/users/r4lv/events{/privacy}","received_events_url":"https://api.github.com/users/r4lv/received_events","type":"User","site_admin":false},"repo":{"id":124093621,"name":"VIP","full_name":"r4lv/VIP","owner":{"login":"r4lv","id":37106979,"avatar_url":"https://avatars0.githubusercontent.com/u/37106979?v=4","gravatar_id":"","url":"https://api.github.com/users/r4lv","html_url":"https://github.com/r4lv","followers_url":"https://api.github.com/users/r4lv/followers","following_url":"https://api.github.com/users/r4lv/following{/other_user}","gists_url":"https://api.github.com/users/r4lv/gists{/gist_id}","starred_url":"https://api.github.com/users/r4lv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r4lv/subscriptions","organizations_url":"https://api.github.com/users/r4lv/orgs","repos_url":"https://api.github.com/users/r4lv/repos","events_url":"https://api.github.com/users/r4lv/events{/privacy}","received_events_url":"https://api.github.com/users/r4lv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/r4lv/VIP","description":"VIP is a python package/library for angular, reference star and spectral differential imaging for exoplanet/disk detection through high-contrast imaging.","fork":true,"url":"https://api.github.com/repos/r4lv/VIP","forks_url":"https://api.github.com/repos/r4lv/VIP/forks","keys_url":"https://api.github.com/repos/r4lv/VIP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/r4lv/VIP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/r4lv/VIP/teams","hooks_url":"https://api.github.com/repos/r4lv/VIP/hooks","issue_events_url":"https://api.github.com/repos/r4lv/VIP/issues/events{/number}","events_url":"https://api.github.com/repos/r4lv/VIP/events","assignees_url":"https://api.github.com/repos/r4lv/VIP/assignees{/user}","branches_url":"https://api.github.com/repos/r4lv/VIP/branches{/branch}","tags_url":"https://api.github.com/repos/r4lv/VIP/tags","blobs_url":"https://api.github.com/repos/r4lv/VIP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/r4lv/VIP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/r4lv/VIP/git/refs{/sha}","trees_url":"https://api.github.com/repos/r4lv/VIP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/r4lv/VIP/statuses/{sha}","languages_url":"https://api.github.com/repos/r4lv/VIP/languages","stargazers_url":"https://api.github.com/repos/r4lv/VIP/stargazers","contributors_url":"https://api.github.com/repos/r4lv/VIP/contributors","subscribers_url":"https://api.github.com/repos/r4lv/VIP/subscribers","subscription_url":"https://api.github.com/repos/r4lv/VIP/subscription","commits_url":"https://api.github.com/repos/r4lv/VIP/commits{/sha}","git_commits_url":"https://api.github.com/repos/r4lv/VIP/git/commits{/sha}","comments_url":"https://api.github.com/repos/r4lv/VIP/comments{/number}","issue_comment_url":"https://api.github.com/repos/r4lv/VIP/issues/comments{/number}","contents_url":"https://api.github.com/repos/r4lv/VIP/contents/{+path}","compare_url":"https://api.github.com/repos/r4lv/VIP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/r4lv/VIP/merges","archive_url":"https://api.github.com/repos/r4lv/VIP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/r4lv/VIP/downloads","issues_url":"https://api.github.com/repos/r4lv/VIP/issues{/number}","pulls_url":"https://api.github.com/repos/r4lv/VIP/pulls{/number}","milestones_url":"https://api.github.com/repos/r4lv/VIP/milestones{/number}","notifications_url":"https://api.github.com/repos/r4lv/VIP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/r4lv/VIP/labels{/name}","releases_url":"https://api.github.com/repos/r4lv/VIP/releases{/id}","deployments_url":"https://api.github.com/repos/r4lv/VIP/deployments","created_at":"2018-03-06T14:53:12Z","updated_at":"2018-05-18T11:14:34Z","pushed_at":"2018-05-18T16:38:29Z","git_url":"git://github.com/r4lv/VIP.git","ssh_url":"git@github.com:r4lv/VIP.git","clone_url":"https://github.com/r4lv/VIP.git","svn_url":"https://github.com/r4lv/VIP","homepage":"http://vip.readthedocs.io/","size":18468,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"vortex-exoplanet:master","ref":"master","sha":"e09e612f1a307a157bba64babe04cccb6cca4654","user":{"login":"vortex-exoplanet","id":13556028,"avatar_url":"https://avatars0.githubusercontent.com/u/13556028?v=4","gravatar_id":"","url":"https://api.github.com/users/vortex-exoplanet","html_url":"https://github.com/vortex-exoplanet","followers_url":"https://api.github.com/users/vortex-exoplanet/followers","following_url":"https://api.github.com/users/vortex-exoplanet/following{/other_user}","gists_url":"https://api.github.com/users/vortex-exoplanet/gists{/gist_id}","starred_url":"https://api.github.com/users/vortex-exoplanet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vortex-exoplanet/subscriptions","organizations_url":"https://api.github.com/users/vortex-exoplanet/orgs","repos_url":"https://api.github.com/users/vortex-exoplanet/repos","events_url":"https://api.github.com/users/vortex-exoplanet/events{/privacy}","received_events_url":"https://api.github.com/users/vortex-exoplanet/received_events","type":"Organization","site_admin":false},"repo":{"id":36196800,"name":"VIP","full_name":"vortex-exoplanet/VIP","owner":{"login":"vortex-exoplanet","id":13556028,"avatar_url":"https://avatars0.githubusercontent.com/u/13556028?v=4","gravatar_id":"","url":"https://api.github.com/users/vortex-exoplanet","html_url":"https://github.com/vortex-exoplanet","followers_url":"https://api.github.com/users/vortex-exoplanet/followers","following_url":"https://api.github.com/users/vortex-exoplanet/following{/other_user}","gists_url":"https://api.github.com/users/vortex-exoplanet/gists{/gist_id}","starred_url":"https://api.github.com/users/vortex-exoplanet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vortex-exoplanet/subscriptions","organizations_url":"https://api.github.com/users/vortex-exoplanet/orgs","repos_url":"https://api.github.com/users/vortex-exoplanet/repos","events_url":"https://api.github.com/users/vortex-exoplanet/events{/privacy}","received_events_url":"https://api.github.com/users/vortex-exoplanet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vortex-exoplanet/VIP","description":"VIP is a python package/library for angular, reference star and spectral differential imaging for exoplanet/disk detection through high-contrast imaging.","fork":false,"url":"https://api.github.com/repos/vortex-exoplanet/VIP","forks_url":"https://api.github.com/repos/vortex-exoplanet/VIP/forks","keys_url":"https://api.github.com/repos/vortex-exoplanet/VIP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vortex-exoplanet/VIP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vortex-exoplanet/VIP/teams","hooks_url":"https://api.github.com/repos/vortex-exoplanet/VIP/hooks","issue_events_url":"https://api.github.com/repos/vortex-exoplanet/VIP/issues/events{/number}","events_url":"https://api.github.com/repos/vortex-exoplanet/VIP/events","assignees_url":"https://api.github.com/repos/vortex-exoplanet/VIP/assignees{/user}","branches_url":"https://api.github.com/repos/vortex-exoplanet/VIP/branches{/branch}","tags_url":"https://api.github.com/repos/vortex-exoplanet/VIP/tags","blobs_url":"https://api.github.com/repos/vortex-exoplanet/VIP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vortex-exoplanet/VIP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vortex-exoplanet/VIP/git/refs{/sha}","trees_url":"https://api.github.com/repos/vortex-exoplanet/VIP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vortex-exoplanet/VIP/statuses/{sha}","languages_url":"https://api.github.com/repos/vortex-exoplanet/VIP/languages","stargazers_url":"https://api.github.com/repos/vortex-exoplanet/VIP/stargazers","contributors_url":"https://api.github.com/repos/vortex-exoplanet/VIP/contributors","subscribers_url":"https://api.github.com/repos/vortex-exoplanet/VIP/subscribers","subscription_url":"https://api.github.com/repos/vortex-exoplanet/VIP/subscription","commits_url":"https://api.github.com/repos/vortex-exoplanet/VIP/commits{/sha}","git_commits_url":"https://api.github.com/repos/vortex-exoplanet/VIP/git/commits{/sha}","comments_url":"https://api.github.com/repos/vortex-exoplanet/VIP/comments{/number}","issue_comment_url":"https://api.github.com/repos/vortex-exoplanet/VIP/issues/comments{/number}","contents_url":"https://api.github.com/repos/vortex-exoplanet/VIP/contents/{+path}","compare_url":"https://api.github.com/repos/vortex-exoplanet/VIP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vortex-exoplanet/VIP/merges","archive_url":"https://api.github.com/repos/vortex-exoplanet/VIP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vortex-exoplanet/VIP/downloads","issues_url":"https://api.github.com/repos/vortex-exoplanet/VIP/issues{/number}","pulls_url":"https://api.github.com/repos/vortex-exoplanet/VIP/pulls{/number}","milestones_url":"https://api.github.com/repos/vortex-exoplanet/VIP/milestones{/number}","notifications_url":"https://api.github.com/repos/vortex-exoplanet/VIP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vortex-exoplanet/VIP/labels{/name}","releases_url":"https://api.github.com/repos/vortex-exoplanet/VIP/releases{/id}","deployments_url":"https://api.github.com/repos/vortex-exoplanet/VIP/deployments","created_at":"2015-05-24T22:25:13Z","updated_at":"2018-05-18T11:58:54Z","pushed_at":"2018-05-18T11:58:52Z","git_url":"git://github.com/vortex-exoplanet/VIP.git","ssh_url":"git@github.com:vortex-exoplanet/VIP.git","clone_url":"https://github.com/vortex-exoplanet/VIP.git","svn_url":"https://github.com/vortex-exoplanet/VIP","homepage":"http://vip.readthedocs.io/","size":18466,"stargazers_count":23,"watchers_count":23,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":20,"open_issues":3,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vortex-exoplanet/VIP/pulls/209"},"html":{"href":"https://github.com/vortex-exoplanet/VIP/pull/209"},"issue":{"href":"https://api.github.com/repos/vortex-exoplanet/VIP/issues/209"},"comments":{"href":"https://api.github.com/repos/vortex-exoplanet/VIP/issues/209/comments"},"review_comments":{"href":"https://api.github.com/repos/vortex-exoplanet/VIP/pulls/209/comments"},"review_comment":{"href":"https://api.github.com/repos/vortex-exoplanet/VIP/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vortex-exoplanet/VIP/pulls/209/commits"},"statuses":{"href":"https://api.github.com/repos/vortex-exoplanet/VIP/statuses/c053f45f3c9096c41da3cf4943d4968a16692911"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":2,"additions":131,"deletions":4,"changed_files":1}}
{"actor":{"display_login":"r4lv"}}