{"action":"created","comment":{"url":"https://api.github.com/repos/KeplerGO/lightkurve/pulls/comments/237241158","pull_request_review_id":179491280,"id":237241158,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNzI0MTE1OA==","diff_hunk":"@@ -388,22 +396,39 @@ def go_left_by_one():\n             if existing_value > np.min(tpf.cadenceno):\n                 cadence_slider.value = existing_value - 1\n \n+        def export_mask():\n+\n+            if tpf_source.selected.indices != []:\n+                selected_indices = np.array(tpf_source.selected.indices)\n+                selected_mask = np.isin(pixel_index_array, selected_indices)\n+                lc_new = tpf.to_lightcurve(aperture_mask=selected_mask)\n+                lc_new.to_fits(exported_filename, overwrite=True,\n+                               aperture_mask=selected_mask.astype(np.int),","path":"lightkurve/interact.py","position":124,"original_position":124,"commit_id":"78e62a1c5629b0f685fd6de7068bb3b2a5caf553","original_commit_id":"78e62a1c5629b0f685fd6de7068bb3b2a5caf553","user":{"login":"christinahedges","id":14965634,"node_id":"MDQ6VXNlcjE0OTY1NjM0","avatar_url":"https://avatars1.githubusercontent.com/u/14965634?v=4","gravatar_id":"","url":"https://api.github.com/users/christinahedges","html_url":"https://github.com/christinahedges","followers_url":"https://api.github.com/users/christinahedges/followers","following_url":"https://api.github.com/users/christinahedges/following{/other_user}","gists_url":"https://api.github.com/users/christinahedges/gists{/gist_id}","starred_url":"https://api.github.com/users/christinahedges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christinahedges/subscriptions","organizations_url":"https://api.github.com/users/christinahedges/orgs","repos_url":"https://api.github.com/users/christinahedges/repos","events_url":"https://api.github.com/users/christinahedges/events{/privacy}","received_events_url":"https://api.github.com/users/christinahedges/received_events","type":"User","site_admin":false},"body":"You're passing an aperture into a light curve fits file. This is not standard behavior. Is this going to confuse users between `LightCurveFiles` and custom light curve fits files? Can you read in a custom light curve fits file with light curve? Then how do you access the mask?\r\n\r\nMaybe we should chat about this as a group?","created_at":"2018-11-28T20:04:26Z","updated_at":"2018-11-28T20:09:58Z","html_url":"https://github.com/KeplerGO/lightkurve/pull/329#discussion_r237241158","pull_request_url":"https://api.github.com/repos/KeplerGO/lightkurve/pulls/329","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/KeplerGO/lightkurve/pulls/comments/237241158"},"html":{"href":"https://github.com/KeplerGO/lightkurve/pull/329#discussion_r237241158"},"pull_request":{"href":"https://api.github.com/repos/KeplerGO/lightkurve/pulls/329"}}},"pull_request":{"url":"https://api.github.com/repos/KeplerGO/lightkurve/pulls/329","id":229444472,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5NDQ0NDcy","html_url":"https://github.com/KeplerGO/lightkurve/pull/329","diff_url":"https://github.com/KeplerGO/lightkurve/pull/329.diff","patch_url":"https://github.com/KeplerGO/lightkurve/pull/329.patch","issue_url":"https://api.github.com/repos/KeplerGO/lightkurve/issues/329","number":329,"state":"open","locked":false,"title":"Add a \"Save lightcurve\" button to tpf.interact()","user":{"login":"gully","id":860227,"node_id":"MDQ6VXNlcjg2MDIyNw==","avatar_url":"https://avatars3.githubusercontent.com/u/860227?v=4","gravatar_id":"","url":"https://api.github.com/users/gully","html_url":"https://github.com/gully","followers_url":"https://api.github.com/users/gully/followers","following_url":"https://api.github.com/users/gully/following{/other_user}","gists_url":"https://api.github.com/users/gully/gists{/gist_id}","starred_url":"https://api.github.com/users/gully/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gully/subscriptions","organizations_url":"https://api.github.com/users/gully/orgs","repos_url":"https://api.github.com/users/gully/repos","events_url":"https://api.github.com/users/gully/events{/privacy}","received_events_url":"https://api.github.com/users/gully/received_events","type":"User","site_admin":false},"body":"Will address issue #265.","created_at":"2018-11-08T17:13:48Z","updated_at":"2018-11-28T20:09:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fd39482da5dd76d0a8ac5774efd633a70e006790","assignee":{"login":"gully","id":860227,"node_id":"MDQ6VXNlcjg2MDIyNw==","avatar_url":"https://avatars3.githubusercontent.com/u/860227?v=4","gravatar_id":"","url":"https://api.github.com/users/gully","html_url":"https://github.com/gully","followers_url":"https://api.github.com/users/gully/followers","following_url":"https://api.github.com/users/gully/following{/other_user}","gists_url":"https://api.github.com/users/gully/gists{/gist_id}","starred_url":"https://api.github.com/users/gully/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gully/subscriptions","organizations_url":"https://api.github.com/users/gully/orgs","repos_url":"https://api.github.com/users/gully/repos","events_url":"https://api.github.com/users/gully/events{/privacy}","received_events_url":"https://api.github.com/users/gully/received_events","type":"User","site_admin":false},"assignees":[{"login":"gully","id":860227,"node_id":"MDQ6VXNlcjg2MDIyNw==","avatar_url":"https://avatars3.githubusercontent.com/u/860227?v=4","gravatar_id":"","url":"https://api.github.com/users/gully","html_url":"https://github.com/gully","followers_url":"https://api.github.com/users/gully/followers","following_url":"https://api.github.com/users/gully/following{/other_user}","gists_url":"https://api.github.com/users/gully/gists{/gist_id}","starred_url":"https://api.github.com/users/gully/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gully/subscriptions","organizations_url":"https://api.github.com/users/gully/orgs","repos_url":"https://api.github.com/users/gully/repos","events_url":"https://api.github.com/users/gully/events{/privacy}","received_events_url":"https://api.github.com/users/gully/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":{"url":"https://api.github.com/repos/KeplerGO/lightkurve/milestones/1","html_url":"https://github.com/KeplerGO/lightkurve/milestone/1","labels_url":"https://api.github.com/repos/KeplerGO/lightkurve/milestones/1/labels","id":3832156,"node_id":"MDk6TWlsZXN0b25lMzgzMjE1Ng==","number":1,"title":"v1.0","description":"Lightkurve v1.0.0 will be the first stable release of Lightkurve.  This first version will be released before the Christmas period, in time to be presented at the AAS in January, the TESS workshop in February, Kepler Sci Con in March, etc.","creator":{"login":"barentsen","id":817669,"node_id":"MDQ6VXNlcjgxNzY2OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/817669?v=4","gravatar_id":"","url":"https://api.github.com/users/barentsen","html_url":"https://github.com/barentsen","followers_url":"https://api.github.com/users/barentsen/followers","following_url":"https://api.github.com/users/barentsen/following{/other_user}","gists_url":"https://api.github.com/users/barentsen/gists{/gist_id}","starred_url":"https://api.github.com/users/barentsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barentsen/subscriptions","organizations_url":"https://api.github.com/users/barentsen/orgs","repos_url":"https://api.github.com/users/barentsen/repos","events_url":"https://api.github.com/users/barentsen/events{/privacy}","received_events_url":"https://api.github.com/users/barentsen/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":18,"state":"open","created_at":"2018-11-19T16:23:22Z","updated_at":"2018-11-28T00:53:14Z","due_on":"2018-12-07T08:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/KeplerGO/lightkurve/pulls/329/commits","review_comments_url":"https://api.github.com/repos/KeplerGO/lightkurve/pulls/329/comments","review_comment_url":"https://api.github.com/repos/KeplerGO/lightkurve/pulls/comments{/number}","comments_url":"https://api.github.com/repos/KeplerGO/lightkurve/issues/329/comments","statuses_url":"https://api.github.com/repos/KeplerGO/lightkurve/statuses/78e62a1c5629b0f685fd6de7068bb3b2a5caf553","head":{"label":"gully:issue_265_export","ref":"issue_265_export","sha":"78e62a1c5629b0f685fd6de7068bb3b2a5caf553","user":{"login":"gully","id":860227,"node_id":"MDQ6VXNlcjg2MDIyNw==","avatar_url":"https://avatars3.githubusercontent.com/u/860227?v=4","gravatar_id":"","url":"https://api.github.com/users/gully","html_url":"https://github.com/gully","followers_url":"https://api.github.com/users/gully/followers","following_url":"https://api.github.com/users/gully/following{/other_user}","gists_url":"https://api.github.com/users/gully/gists{/gist_id}","starred_url":"https://api.github.com/users/gully/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gully/subscriptions","organizations_url":"https://api.github.com/users/gully/orgs","repos_url":"https://api.github.com/users/gully/repos","events_url":"https://api.github.com/users/gully/events{/privacy}","received_events_url":"https://api.github.com/users/gully/received_events","type":"User","site_admin":false},"repo":{"id":120679644,"node_id":"MDEwOlJlcG9zaXRvcnkxMjA2Nzk2NDQ=","name":"lightkurve","full_name":"gully/lightkurve","private":false,"owner":{"login":"gully","id":860227,"node_id":"MDQ6VXNlcjg2MDIyNw==","avatar_url":"https://avatars3.githubusercontent.com/u/860227?v=4","gravatar_id":"","url":"https://api.github.com/users/gully","html_url":"https://github.com/gully","followers_url":"https://api.github.com/users/gully/followers","following_url":"https://api.github.com/users/gully/following{/other_user}","gists_url":"https://api.github.com/users/gully/gists{/gist_id}","starred_url":"https://api.github.com/users/gully/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gully/subscriptions","organizations_url":"https://api.github.com/users/gully/orgs","repos_url":"https://api.github.com/users/gully/repos","events_url":"https://api.github.com/users/gully/events{/privacy}","received_events_url":"https://api.github.com/users/gully/received_events","type":"User","site_admin":false},"html_url":"https://github.com/gully/lightkurve","description":"A beautiful package for astronomical flux time series analysis in Python.","fork":true,"url":"https://api.github.com/repos/gully/lightkurve","forks_url":"https://api.github.com/repos/gully/lightkurve/forks","keys_url":"https://api.github.com/repos/gully/lightkurve/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gully/lightkurve/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gully/lightkurve/teams","hooks_url":"https://api.github.com/repos/gully/lightkurve/hooks","issue_events_url":"https://api.github.com/repos/gully/lightkurve/issues/events{/number}","events_url":"https://api.github.com/repos/gully/lightkurve/events","assignees_url":"https://api.github.com/repos/gully/lightkurve/assignees{/user}","branches_url":"https://api.github.com/repos/gully/lightkurve/branches{/branch}","tags_url":"https://api.github.com/repos/gully/lightkurve/tags","blobs_url":"https://api.github.com/repos/gully/lightkurve/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gully/lightkurve/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gully/lightkurve/git/refs{/sha}","trees_url":"https://api.github.com/repos/gully/lightkurve/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gully/lightkurve/statuses/{sha}","languages_url":"https://api.github.com/repos/gully/lightkurve/languages","stargazers_url":"https://api.github.com/repos/gully/lightkurve/stargazers","contributors_url":"https://api.github.com/repos/gully/lightkurve/contributors","subscribers_url":"https://api.github.com/repos/gully/lightkurve/subscribers","subscription_url":"https://api.github.com/repos/gully/lightkurve/subscription","commits_url":"https://api.github.com/repos/gully/lightkurve/commits{/sha}","git_commits_url":"https://api.github.com/repos/gully/lightkurve/git/commits{/sha}","comments_url":"https://api.github.com/repos/gully/lightkurve/comments{/number}","issue_comment_url":"https://api.github.com/repos/gully/lightkurve/issues/comments{/number}","contents_url":"https://api.github.com/repos/gully/lightkurve/contents/{+path}","compare_url":"https://api.github.com/repos/gully/lightkurve/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gully/lightkurve/merges","archive_url":"https://api.github.com/repos/gully/lightkurve/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gully/lightkurve/downloads","issues_url":"https://api.github.com/repos/gully/lightkurve/issues{/number}","pulls_url":"https://api.github.com/repos/gully/lightkurve/pulls{/number}","milestones_url":"https://api.github.com/repos/gully/lightkurve/milestones{/number}","notifications_url":"https://api.github.com/repos/gully/lightkurve/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gully/lightkurve/labels{/name}","releases_url":"https://api.github.com/repos/gully/lightkurve/releases{/id}","deployments_url":"https://api.github.com/repos/gully/lightkurve/deployments","created_at":"2018-02-07T22:26:57Z","updated_at":"2018-11-27T23:55:14Z","pushed_at":"2018-11-28T19:15:03Z","git_url":"git://github.com/gully/lightkurve.git","ssh_url":"git@github.com:gully/lightkurve.git","clone_url":"https://github.com/gully/lightkurve.git","svn_url":"https://github.com/gully/lightkurve","homepage":"http://lightkurve.keplerscience.org","size":155967,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"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","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"KeplerGO:master","ref":"master","sha":"61e96e9e232960982a4973c3e43e2e346a4d6050","user":{"login":"KeplerGO","id":13040606,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzMDQwNjA2","avatar_url":"https://avatars0.githubusercontent.com/u/13040606?v=4","gravatar_id":"","url":"https://api.github.com/users/KeplerGO","html_url":"https://github.com/KeplerGO","followers_url":"https://api.github.com/users/KeplerGO/followers","following_url":"https://api.github.com/users/KeplerGO/following{/other_user}","gists_url":"https://api.github.com/users/KeplerGO/gists{/gist_id}","starred_url":"https://api.github.com/users/KeplerGO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KeplerGO/subscriptions","organizations_url":"https://api.github.com/users/KeplerGO/orgs","repos_url":"https://api.github.com/users/KeplerGO/repos","events_url":"https://api.github.com/users/KeplerGO/events{/privacy}","received_events_url":"https://api.github.com/users/KeplerGO/received_events","type":"Organization","site_admin":false},"repo":{"id":118387904,"node_id":"MDEwOlJlcG9zaXRvcnkxMTgzODc5MDQ=","name":"lightkurve","full_name":"KeplerGO/lightkurve","private":false,"owner":{"login":"KeplerGO","id":13040606,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzMDQwNjA2","avatar_url":"https://avatars0.githubusercontent.com/u/13040606?v=4","gravatar_id":"","url":"https://api.github.com/users/KeplerGO","html_url":"https://github.com/KeplerGO","followers_url":"https://api.github.com/users/KeplerGO/followers","following_url":"https://api.github.com/users/KeplerGO/following{/other_user}","gists_url":"https://api.github.com/users/KeplerGO/gists{/gist_id}","starred_url":"https://api.github.com/users/KeplerGO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KeplerGO/subscriptions","organizations_url":"https://api.github.com/users/KeplerGO/orgs","repos_url":"https://api.github.com/users/KeplerGO/repos","events_url":"https://api.github.com/users/KeplerGO/events{/privacy}","received_events_url":"https://api.github.com/users/KeplerGO/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/KeplerGO/lightkurve","description":"A beautiful package for Kepler and TESS time series analysis in Python.","fork":false,"url":"https://api.github.com/repos/KeplerGO/lightkurve","forks_url":"https://api.github.com/repos/KeplerGO/lightkurve/forks","keys_url":"https://api.github.com/repos/KeplerGO/lightkurve/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KeplerGO/lightkurve/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KeplerGO/lightkurve/teams","hooks_url":"https://api.github.com/repos/KeplerGO/lightkurve/hooks","issue_events_url":"https://api.github.com/repos/KeplerGO/lightkurve/issues/events{/number}","events_url":"https://api.github.com/repos/KeplerGO/lightkurve/events","assignees_url":"https://api.github.com/repos/KeplerGO/lightkurve/assignees{/user}","branches_url":"https://api.github.com/repos/KeplerGO/lightkurve/branches{/branch}","tags_url":"https://api.github.com/repos/KeplerGO/lightkurve/tags","blobs_url":"https://api.github.com/repos/KeplerGO/lightkurve/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KeplerGO/lightkurve/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KeplerGO/lightkurve/git/refs{/sha}","trees_url":"https://api.github.com/repos/KeplerGO/lightkurve/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KeplerGO/lightkurve/statuses/{sha}","languages_url":"https://api.github.com/repos/KeplerGO/lightkurve/languages","stargazers_url":"https://api.github.com/repos/KeplerGO/lightkurve/stargazers","contributors_url":"https://api.github.com/repos/KeplerGO/lightkurve/contributors","subscribers_url":"https://api.github.com/repos/KeplerGO/lightkurve/subscribers","subscription_url":"https://api.github.com/repos/KeplerGO/lightkurve/subscription","commits_url":"https://api.github.com/repos/KeplerGO/lightkurve/commits{/sha}","git_commits_url":"https://api.github.com/repos/KeplerGO/lightkurve/git/commits{/sha}","comments_url":"https://api.github.com/repos/KeplerGO/lightkurve/comments{/number}","issue_comment_url":"https://api.github.com/repos/KeplerGO/lightkurve/issues/comments{/number}","contents_url":"https://api.github.com/repos/KeplerGO/lightkurve/contents/{+path}","compare_url":"https://api.github.com/repos/KeplerGO/lightkurve/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KeplerGO/lightkurve/merges","archive_url":"https://api.github.com/repos/KeplerGO/lightkurve/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KeplerGO/lightkurve/downloads","issues_url":"https://api.github.com/repos/KeplerGO/lightkurve/issues{/number}","pulls_url":"https://api.github.com/repos/KeplerGO/lightkurve/pulls{/number}","milestones_url":"https://api.github.com/repos/KeplerGO/lightkurve/milestones{/number}","notifications_url":"https://api.github.com/repos/KeplerGO/lightkurve/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KeplerGO/lightkurve/labels{/name}","releases_url":"https://api.github.com/repos/KeplerGO/lightkurve/releases{/id}","deployments_url":"https://api.github.com/repos/KeplerGO/lightkurve/deployments","created_at":"2018-01-22T00:49:59Z","updated_at":"2018-11-27T23:02:04Z","pushed_at":"2018-11-28T19:15:04Z","git_url":"git://github.com/KeplerGO/lightkurve.git","ssh_url":"git@github.com:KeplerGO/lightkurve.git","clone_url":"https://github.com/KeplerGO/lightkurve.git","svn_url":"https://github.com/KeplerGO/lightkurve","homepage":"http://docs.lightkurve.org","size":189959,"stargazers_count":56,"watchers_count":56,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":46,"mirror_url":null,"archived":false,"open_issues_count":73,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":46,"open_issues":73,"watchers":56,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/KeplerGO/lightkurve/pulls/329"},"html":{"href":"https://github.com/KeplerGO/lightkurve/pull/329"},"issue":{"href":"https://api.github.com/repos/KeplerGO/lightkurve/issues/329"},"comments":{"href":"https://api.github.com/repos/KeplerGO/lightkurve/issues/329/comments"},"review_comments":{"href":"https://api.github.com/repos/KeplerGO/lightkurve/pulls/329/comments"},"review_comment":{"href":"https://api.github.com/repos/KeplerGO/lightkurve/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/KeplerGO/lightkurve/pulls/329/commits"},"statuses":{"href":"https://api.github.com/repos/KeplerGO/lightkurve/statuses/78e62a1c5629b0f685fd6de7068bb3b2a5caf553"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"christinahedges"}}