{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/schlafly/decam/pulls/1","id":62685793,"html_url":"https://github.com/schlafly/decam/pull/1","diff_url":"https://github.com/schlafly/decam/pull/1.diff","patch_url":"https://github.com/schlafly/decam/pull/1.patch","issue_url":"https://api.github.com/repos/schlafly/decam/issues/1","number":1,"state":"open","locked":false,"title":"Code Cleanup","user":{"login":"gregreen","id":1033896,"avatar_url":"https://avatars.githubusercontent.com/u/1033896?v=3","gravatar_id":"","url":"https://api.github.com/users/gregreen","html_url":"https://github.com/gregreen","followers_url":"https://api.github.com/users/gregreen/followers","following_url":"https://api.github.com/users/gregreen/following{/other_user}","gists_url":"https://api.github.com/users/gregreen/gists{/gist_id}","starred_url":"https://api.github.com/users/gregreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregreen/subscriptions","organizations_url":"https://api.github.com/users/gregreen/orgs","repos_url":"https://api.github.com/users/gregreen/repos","events_url":"https://api.github.com/users/gregreen/events{/privacy}","received_events_url":"https://api.github.com/users/gregreen/received_events","type":"User","site_admin":false},"body":"I've gone through and cleaned up the code. One example: the old code wrote the JSON file line-by-line with `file.write` commands, but the new code constructs a list of dictionaries and passes them to `json.dump`.\r\n\r\nThe only functional change to the code should be the addition of the commandline argument `--chunks N`, which allows the user to split up the plan into `N` chunks (with equal numbers of exposures). This could be useful when inserting calibration fields.","created_at":"2016-03-13T22:25:41Z","updated_at":"2016-03-13T22:25:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/schlafly/decam/pulls/1/commits","review_comments_url":"https://api.github.com/repos/schlafly/decam/pulls/1/comments","review_comment_url":"https://api.github.com/repos/schlafly/decam/pulls/comments{/number}","comments_url":"https://api.github.com/repos/schlafly/decam/issues/1/comments","statuses_url":"https://api.github.com/repos/schlafly/decam/statuses/5553da9bea508752730f41042f07c375690c0252","head":{"label":"gregreen:master","ref":"master","sha":"5553da9bea508752730f41042f07c375690c0252","user":{"login":"gregreen","id":1033896,"avatar_url":"https://avatars.githubusercontent.com/u/1033896?v=3","gravatar_id":"","url":"https://api.github.com/users/gregreen","html_url":"https://github.com/gregreen","followers_url":"https://api.github.com/users/gregreen/followers","following_url":"https://api.github.com/users/gregreen/following{/other_user}","gists_url":"https://api.github.com/users/gregreen/gists{/gist_id}","starred_url":"https://api.github.com/users/gregreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregreen/subscriptions","organizations_url":"https://api.github.com/users/gregreen/orgs","repos_url":"https://api.github.com/users/gregreen/repos","events_url":"https://api.github.com/users/gregreen/events{/privacy}","received_events_url":"https://api.github.com/users/gregreen/received_events","type":"User","site_admin":false},"repo":{"id":52129021,"name":"decam","full_name":"gregreen/decam","owner":{"login":"gregreen","id":1033896,"avatar_url":"https://avatars.githubusercontent.com/u/1033896?v=3","gravatar_id":"","url":"https://api.github.com/users/gregreen","html_url":"https://github.com/gregreen","followers_url":"https://api.github.com/users/gregreen/followers","following_url":"https://api.github.com/users/gregreen/following{/other_user}","gists_url":"https://api.github.com/users/gregreen/gists{/gist_id}","starred_url":"https://api.github.com/users/gregreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregreen/subscriptions","organizations_url":"https://api.github.com/users/gregreen/orgs","repos_url":"https://api.github.com/users/gregreen/repos","events_url":"https://api.github.com/users/gregreen/events{/privacy}","received_events_url":"https://api.github.com/users/gregreen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gregreen/decam","description":"simple decam observation planner (borrowing heavily from A. Patej's nightlystrategy.py)","fork":true,"url":"https://api.github.com/repos/gregreen/decam","forks_url":"https://api.github.com/repos/gregreen/decam/forks","keys_url":"https://api.github.com/repos/gregreen/decam/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gregreen/decam/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gregreen/decam/teams","hooks_url":"https://api.github.com/repos/gregreen/decam/hooks","issue_events_url":"https://api.github.com/repos/gregreen/decam/issues/events{/number}","events_url":"https://api.github.com/repos/gregreen/decam/events","assignees_url":"https://api.github.com/repos/gregreen/decam/assignees{/user}","branches_url":"https://api.github.com/repos/gregreen/decam/branches{/branch}","tags_url":"https://api.github.com/repos/gregreen/decam/tags","blobs_url":"https://api.github.com/repos/gregreen/decam/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gregreen/decam/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gregreen/decam/git/refs{/sha}","trees_url":"https://api.github.com/repos/gregreen/decam/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gregreen/decam/statuses/{sha}","languages_url":"https://api.github.com/repos/gregreen/decam/languages","stargazers_url":"https://api.github.com/repos/gregreen/decam/stargazers","contributors_url":"https://api.github.com/repos/gregreen/decam/contributors","subscribers_url":"https://api.github.com/repos/gregreen/decam/subscribers","subscription_url":"https://api.github.com/repos/gregreen/decam/subscription","commits_url":"https://api.github.com/repos/gregreen/decam/commits{/sha}","git_commits_url":"https://api.github.com/repos/gregreen/decam/git/commits{/sha}","comments_url":"https://api.github.com/repos/gregreen/decam/comments{/number}","issue_comment_url":"https://api.github.com/repos/gregreen/decam/issues/comments{/number}","contents_url":"https://api.github.com/repos/gregreen/decam/contents/{+path}","compare_url":"https://api.github.com/repos/gregreen/decam/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gregreen/decam/merges","archive_url":"https://api.github.com/repos/gregreen/decam/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gregreen/decam/downloads","issues_url":"https://api.github.com/repos/gregreen/decam/issues{/number}","pulls_url":"https://api.github.com/repos/gregreen/decam/pulls{/number}","milestones_url":"https://api.github.com/repos/gregreen/decam/milestones{/number}","notifications_url":"https://api.github.com/repos/gregreen/decam/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gregreen/decam/labels{/name}","releases_url":"https://api.github.com/repos/gregreen/decam/releases{/id}","deployments_url":"https://api.github.com/repos/gregreen/decam/deployments","created_at":"2016-02-20T00:59:50Z","updated_at":"2016-02-20T00:59:51Z","pushed_at":"2016-03-13T22:17:05Z","git_url":"git://github.com/gregreen/decam.git","ssh_url":"git@github.com:gregreen/decam.git","clone_url":"https://github.com/gregreen/decam.git","svn_url":"https://github.com/gregreen/decam","homepage":null,"size":845,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"schlafly:master","ref":"master","sha":"e6736d68602d8d44fefc22c51f3d023232f46c9a","user":{"login":"schlafly","id":1417841,"avatar_url":"https://avatars.githubusercontent.com/u/1417841?v=3","gravatar_id":"","url":"https://api.github.com/users/schlafly","html_url":"https://github.com/schlafly","followers_url":"https://api.github.com/users/schlafly/followers","following_url":"https://api.github.com/users/schlafly/following{/other_user}","gists_url":"https://api.github.com/users/schlafly/gists{/gist_id}","starred_url":"https://api.github.com/users/schlafly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schlafly/subscriptions","organizations_url":"https://api.github.com/users/schlafly/orgs","repos_url":"https://api.github.com/users/schlafly/repos","events_url":"https://api.github.com/users/schlafly/events{/privacy}","received_events_url":"https://api.github.com/users/schlafly/received_events","type":"User","site_admin":false},"repo":{"id":51412870,"name":"decam","full_name":"schlafly/decam","owner":{"login":"schlafly","id":1417841,"avatar_url":"https://avatars.githubusercontent.com/u/1417841?v=3","gravatar_id":"","url":"https://api.github.com/users/schlafly","html_url":"https://github.com/schlafly","followers_url":"https://api.github.com/users/schlafly/followers","following_url":"https://api.github.com/users/schlafly/following{/other_user}","gists_url":"https://api.github.com/users/schlafly/gists{/gist_id}","starred_url":"https://api.github.com/users/schlafly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schlafly/subscriptions","organizations_url":"https://api.github.com/users/schlafly/orgs","repos_url":"https://api.github.com/users/schlafly/repos","events_url":"https://api.github.com/users/schlafly/events{/privacy}","received_events_url":"https://api.github.com/users/schlafly/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/schlafly/decam","description":"simple decam observation planner (borrowing heavily from A. Patej's nightlystrategy.py)","fork":false,"url":"https://api.github.com/repos/schlafly/decam","forks_url":"https://api.github.com/repos/schlafly/decam/forks","keys_url":"https://api.github.com/repos/schlafly/decam/keys{/key_id}","collaborators_url":"https://api.github.com/repos/schlafly/decam/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/schlafly/decam/teams","hooks_url":"https://api.github.com/repos/schlafly/decam/hooks","issue_events_url":"https://api.github.com/repos/schlafly/decam/issues/events{/number}","events_url":"https://api.github.com/repos/schlafly/decam/events","assignees_url":"https://api.github.com/repos/schlafly/decam/assignees{/user}","branches_url":"https://api.github.com/repos/schlafly/decam/branches{/branch}","tags_url":"https://api.github.com/repos/schlafly/decam/tags","blobs_url":"https://api.github.com/repos/schlafly/decam/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/schlafly/decam/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/schlafly/decam/git/refs{/sha}","trees_url":"https://api.github.com/repos/schlafly/decam/git/trees{/sha}","statuses_url":"https://api.github.com/repos/schlafly/decam/statuses/{sha}","languages_url":"https://api.github.com/repos/schlafly/decam/languages","stargazers_url":"https://api.github.com/repos/schlafly/decam/stargazers","contributors_url":"https://api.github.com/repos/schlafly/decam/contributors","subscribers_url":"https://api.github.com/repos/schlafly/decam/subscribers","subscription_url":"https://api.github.com/repos/schlafly/decam/subscription","commits_url":"https://api.github.com/repos/schlafly/decam/commits{/sha}","git_commits_url":"https://api.github.com/repos/schlafly/decam/git/commits{/sha}","comments_url":"https://api.github.com/repos/schlafly/decam/comments{/number}","issue_comment_url":"https://api.github.com/repos/schlafly/decam/issues/comments{/number}","contents_url":"https://api.github.com/repos/schlafly/decam/contents/{+path}","compare_url":"https://api.github.com/repos/schlafly/decam/compare/{base}...{head}","merges_url":"https://api.github.com/repos/schlafly/decam/merges","archive_url":"https://api.github.com/repos/schlafly/decam/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/schlafly/decam/downloads","issues_url":"https://api.github.com/repos/schlafly/decam/issues{/number}","pulls_url":"https://api.github.com/repos/schlafly/decam/pulls{/number}","milestones_url":"https://api.github.com/repos/schlafly/decam/milestones{/number}","notifications_url":"https://api.github.com/repos/schlafly/decam/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/schlafly/decam/labels{/name}","releases_url":"https://api.github.com/repos/schlafly/decam/releases{/id}","deployments_url":"https://api.github.com/repos/schlafly/decam/deployments","created_at":"2016-02-10T00:57:10Z","updated_at":"2016-02-10T01:01:02Z","pushed_at":"2016-03-11T19:55:26Z","git_url":"git://github.com/schlafly/decam.git","ssh_url":"git@github.com:schlafly/decam.git","clone_url":"https://github.com/schlafly/decam.git","svn_url":"https://github.com/schlafly/decam","homepage":null,"size":837,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/schlafly/decam/pulls/1"},"html":{"href":"https://github.com/schlafly/decam/pull/1"},"issue":{"href":"https://api.github.com/repos/schlafly/decam/issues/1"},"comments":{"href":"https://api.github.com/repos/schlafly/decam/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/schlafly/decam/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/schlafly/decam/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/schlafly/decam/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/schlafly/decam/statuses/5553da9bea508752730f41042f07c375690c0252"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":8,"additions":294,"deletions":237,"changed_files":1}}