{"action":"closed","number":191,"pull_request":{"url":"https://api.github.com/repos/glenco/lensed/pulls/191","id":38557981,"html_url":"https://github.com/glenco/lensed/pull/191","diff_url":"https://github.com/glenco/lensed/pull/191.diff","patch_url":"https://github.com/glenco/lensed/pull/191.patch","issue_url":"https://api.github.com/repos/glenco/lensed/issues/191","number":191,"state":"closed","locked":false,"title":"catch keyboard interrupts and print results","user":{"login":"ntessore","id":3993688,"avatar_url":"https://avatars.githubusercontent.com/u/3993688?v=3","gravatar_id":"","url":"https://api.github.com/users/ntessore","html_url":"https://github.com/ntessore","followers_url":"https://api.github.com/users/ntessore/followers","following_url":"https://api.github.com/users/ntessore/following{/other_user}","gists_url":"https://api.github.com/users/ntessore/gists{/gist_id}","starred_url":"https://api.github.com/users/ntessore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ntessore/subscriptions","organizations_url":"https://api.github.com/users/ntessore/orgs","repos_url":"https://api.github.com/users/ntessore/repos","events_url":"https://api.github.com/users/ntessore/events{/privacy}","received_events_url":"https://api.github.com/users/ntessore/received_events","type":"User","site_admin":false},"body":"This PR implements a simple signal handler for keyboard interrupts (ctrl + c, cmd + c) so that the results up to that point will still be printed. This is especially useful when profiling, as you can interrupt the code after some minutes without losing the information gathered.\r\n\r\nAs an added benefit, it was necessary to move the `lensed` struct from main's stack to the heap, which is something issue #53 has long called for.","created_at":"2015-06-25T15:10:35Z","updated_at":"2015-06-25T17:13:16Z","closed_at":"2015-06-25T17:13:16Z","merged_at":"2015-06-25T17:13:16Z","merge_commit_sha":"3fdb80c013a383d9b84c5052712dbe86bdaa068e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/glenco/lensed/pulls/191/commits","review_comments_url":"https://api.github.com/repos/glenco/lensed/pulls/191/comments","review_comment_url":"https://api.github.com/repos/glenco/lensed/pulls/comments{/number}","comments_url":"https://api.github.com/repos/glenco/lensed/issues/191/comments","statuses_url":"https://api.github.com/repos/glenco/lensed/statuses/db7e4b852c6c67924332da133f8297a40f6bec98","head":{"label":"glenco:nt/calculus-interruptus","ref":"nt/calculus-interruptus","sha":"db7e4b852c6c67924332da133f8297a40f6bec98","user":{"login":"glenco","id":10499259,"avatar_url":"https://avatars.githubusercontent.com/u/10499259?v=3","gravatar_id":"","url":"https://api.github.com/users/glenco","html_url":"https://github.com/glenco","followers_url":"https://api.github.com/users/glenco/followers","following_url":"https://api.github.com/users/glenco/following{/other_user}","gists_url":"https://api.github.com/users/glenco/gists{/gist_id}","starred_url":"https://api.github.com/users/glenco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glenco/subscriptions","organizations_url":"https://api.github.com/users/glenco/orgs","repos_url":"https://api.github.com/users/glenco/repos","events_url":"https://api.github.com/users/glenco/events{/privacy}","received_events_url":"https://api.github.com/users/glenco/received_events","type":"Organization","site_admin":false},"repo":{"id":26886406,"name":"lensed","full_name":"glenco/lensed","owner":{"login":"glenco","id":10499259,"avatar_url":"https://avatars.githubusercontent.com/u/10499259?v=3","gravatar_id":"","url":"https://api.github.com/users/glenco","html_url":"https://github.com/glenco","followers_url":"https://api.github.com/users/glenco/followers","following_url":"https://api.github.com/users/glenco/following{/other_user}","gists_url":"https://api.github.com/users/glenco/gists{/gist_id}","starred_url":"https://api.github.com/users/glenco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glenco/subscriptions","organizations_url":"https://api.github.com/users/glenco/orgs","repos_url":"https://api.github.com/users/glenco/repos","events_url":"https://api.github.com/users/glenco/events{/privacy}","received_events_url":"https://api.github.com/users/glenco/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/glenco/lensed","description":"Forward reconstruction of lenses and sources from strong lensing observations.","fork":false,"url":"https://api.github.com/repos/glenco/lensed","forks_url":"https://api.github.com/repos/glenco/lensed/forks","keys_url":"https://api.github.com/repos/glenco/lensed/keys{/key_id}","collaborators_url":"https://api.github.com/repos/glenco/lensed/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/glenco/lensed/teams","hooks_url":"https://api.github.com/repos/glenco/lensed/hooks","issue_events_url":"https://api.github.com/repos/glenco/lensed/issues/events{/number}","events_url":"https://api.github.com/repos/glenco/lensed/events","assignees_url":"https://api.github.com/repos/glenco/lensed/assignees{/user}","branches_url":"https://api.github.com/repos/glenco/lensed/branches{/branch}","tags_url":"https://api.github.com/repos/glenco/lensed/tags","blobs_url":"https://api.github.com/repos/glenco/lensed/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/glenco/lensed/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/glenco/lensed/git/refs{/sha}","trees_url":"https://api.github.com/repos/glenco/lensed/git/trees{/sha}","statuses_url":"https://api.github.com/repos/glenco/lensed/statuses/{sha}","languages_url":"https://api.github.com/repos/glenco/lensed/languages","stargazers_url":"https://api.github.com/repos/glenco/lensed/stargazers","contributors_url":"https://api.github.com/repos/glenco/lensed/contributors","subscribers_url":"https://api.github.com/repos/glenco/lensed/subscribers","subscription_url":"https://api.github.com/repos/glenco/lensed/subscription","commits_url":"https://api.github.com/repos/glenco/lensed/commits{/sha}","git_commits_url":"https://api.github.com/repos/glenco/lensed/git/commits{/sha}","comments_url":"https://api.github.com/repos/glenco/lensed/comments{/number}","issue_comment_url":"https://api.github.com/repos/glenco/lensed/issues/comments{/number}","contents_url":"https://api.github.com/repos/glenco/lensed/contents/{+path}","compare_url":"https://api.github.com/repos/glenco/lensed/compare/{base}...{head}","merges_url":"https://api.github.com/repos/glenco/lensed/merges","archive_url":"https://api.github.com/repos/glenco/lensed/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/glenco/lensed/downloads","issues_url":"https://api.github.com/repos/glenco/lensed/issues{/number}","pulls_url":"https://api.github.com/repos/glenco/lensed/pulls{/number}","milestones_url":"https://api.github.com/repos/glenco/lensed/milestones{/number}","notifications_url":"https://api.github.com/repos/glenco/lensed/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/glenco/lensed/labels{/name}","releases_url":"https://api.github.com/repos/glenco/lensed/releases{/id}","created_at":"2014-11-19T23:19:37Z","updated_at":"2015-05-28T14:32:43Z","pushed_at":"2015-06-25T17:13:16Z","git_url":"git://github.com/glenco/lensed.git","ssh_url":"git@github.com:glenco/lensed.git","clone_url":"https://github.com/glenco/lensed.git","svn_url":"https://github.com/glenco/lensed","homepage":"http://glenco.github.io/lensed/","size":4844,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":33,"forks":0,"open_issues":33,"watchers":0,"default_branch":"master"}},"base":{"label":"glenco:master","ref":"master","sha":"21e8cfc4ae894eb079a9364da75c5a19abf39059","user":{"login":"glenco","id":10499259,"avatar_url":"https://avatars.githubusercontent.com/u/10499259?v=3","gravatar_id":"","url":"https://api.github.com/users/glenco","html_url":"https://github.com/glenco","followers_url":"https://api.github.com/users/glenco/followers","following_url":"https://api.github.com/users/glenco/following{/other_user}","gists_url":"https://api.github.com/users/glenco/gists{/gist_id}","starred_url":"https://api.github.com/users/glenco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glenco/subscriptions","organizations_url":"https://api.github.com/users/glenco/orgs","repos_url":"https://api.github.com/users/glenco/repos","events_url":"https://api.github.com/users/glenco/events{/privacy}","received_events_url":"https://api.github.com/users/glenco/received_events","type":"Organization","site_admin":false},"repo":{"id":26886406,"name":"lensed","full_name":"glenco/lensed","owner":{"login":"glenco","id":10499259,"avatar_url":"https://avatars.githubusercontent.com/u/10499259?v=3","gravatar_id":"","url":"https://api.github.com/users/glenco","html_url":"https://github.com/glenco","followers_url":"https://api.github.com/users/glenco/followers","following_url":"https://api.github.com/users/glenco/following{/other_user}","gists_url":"https://api.github.com/users/glenco/gists{/gist_id}","starred_url":"https://api.github.com/users/glenco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glenco/subscriptions","organizations_url":"https://api.github.com/users/glenco/orgs","repos_url":"https://api.github.com/users/glenco/repos","events_url":"https://api.github.com/users/glenco/events{/privacy}","received_events_url":"https://api.github.com/users/glenco/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/glenco/lensed","description":"Forward reconstruction of lenses and sources from strong lensing observations.","fork":false,"url":"https://api.github.com/repos/glenco/lensed","forks_url":"https://api.github.com/repos/glenco/lensed/forks","keys_url":"https://api.github.com/repos/glenco/lensed/keys{/key_id}","collaborators_url":"https://api.github.com/repos/glenco/lensed/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/glenco/lensed/teams","hooks_url":"https://api.github.com/repos/glenco/lensed/hooks","issue_events_url":"https://api.github.com/repos/glenco/lensed/issues/events{/number}","events_url":"https://api.github.com/repos/glenco/lensed/events","assignees_url":"https://api.github.com/repos/glenco/lensed/assignees{/user}","branches_url":"https://api.github.com/repos/glenco/lensed/branches{/branch}","tags_url":"https://api.github.com/repos/glenco/lensed/tags","blobs_url":"https://api.github.com/repos/glenco/lensed/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/glenco/lensed/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/glenco/lensed/git/refs{/sha}","trees_url":"https://api.github.com/repos/glenco/lensed/git/trees{/sha}","statuses_url":"https://api.github.com/repos/glenco/lensed/statuses/{sha}","languages_url":"https://api.github.com/repos/glenco/lensed/languages","stargazers_url":"https://api.github.com/repos/glenco/lensed/stargazers","contributors_url":"https://api.github.com/repos/glenco/lensed/contributors","subscribers_url":"https://api.github.com/repos/glenco/lensed/subscribers","subscription_url":"https://api.github.com/repos/glenco/lensed/subscription","commits_url":"https://api.github.com/repos/glenco/lensed/commits{/sha}","git_commits_url":"https://api.github.com/repos/glenco/lensed/git/commits{/sha}","comments_url":"https://api.github.com/repos/glenco/lensed/comments{/number}","issue_comment_url":"https://api.github.com/repos/glenco/lensed/issues/comments{/number}","contents_url":"https://api.github.com/repos/glenco/lensed/contents/{+path}","compare_url":"https://api.github.com/repos/glenco/lensed/compare/{base}...{head}","merges_url":"https://api.github.com/repos/glenco/lensed/merges","archive_url":"https://api.github.com/repos/glenco/lensed/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/glenco/lensed/downloads","issues_url":"https://api.github.com/repos/glenco/lensed/issues{/number}","pulls_url":"https://api.github.com/repos/glenco/lensed/pulls{/number}","milestones_url":"https://api.github.com/repos/glenco/lensed/milestones{/number}","notifications_url":"https://api.github.com/repos/glenco/lensed/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/glenco/lensed/labels{/name}","releases_url":"https://api.github.com/repos/glenco/lensed/releases{/id}","created_at":"2014-11-19T23:19:37Z","updated_at":"2015-05-28T14:32:43Z","pushed_at":"2015-06-25T17:13:16Z","git_url":"git://github.com/glenco/lensed.git","ssh_url":"git@github.com:glenco/lensed.git","clone_url":"https://github.com/glenco/lensed.git","svn_url":"https://github.com/glenco/lensed","homepage":"http://glenco.github.io/lensed/","size":4844,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":33,"forks":0,"open_issues":33,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/glenco/lensed/pulls/191"},"html":{"href":"https://github.com/glenco/lensed/pull/191"},"issue":{"href":"https://api.github.com/repos/glenco/lensed/issues/191"},"comments":{"href":"https://api.github.com/repos/glenco/lensed/issues/191/comments"},"review_comments":{"href":"https://api.github.com/repos/glenco/lensed/pulls/191/comments"},"review_comment":{"href":"https://api.github.com/repos/glenco/lensed/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/glenco/lensed/pulls/191/commits"},"statuses":{"href":"https://api.github.com/repos/glenco/lensed/statuses/db7e4b852c6c67924332da133f8297a40f6bec98"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"ntessore","id":3993688,"avatar_url":"https://avatars.githubusercontent.com/u/3993688?v=3","gravatar_id":"","url":"https://api.github.com/users/ntessore","html_url":"https://github.com/ntessore","followers_url":"https://api.github.com/users/ntessore/followers","following_url":"https://api.github.com/users/ntessore/following{/other_user}","gists_url":"https://api.github.com/users/ntessore/gists{/gist_id}","starred_url":"https://api.github.com/users/ntessore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ntessore/subscriptions","organizations_url":"https://api.github.com/users/ntessore/orgs","repos_url":"https://api.github.com/users/ntessore/repos","events_url":"https://api.github.com/users/ntessore/events{/privacy}","received_events_url":"https://api.github.com/users/ntessore/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":210,"deletions":176,"changed_files":1}}