{"action":"opened","number":25,"pull_request":{"url":"https://api.github.com/repos/desihub/specter/pulls/25","id":50610944,"html_url":"https://github.com/desihub/specter/pull/25","diff_url":"https://github.com/desihub/specter/pull/25.diff","patch_url":"https://github.com/desihub/specter/pull/25.patch","issue_url":"https://api.github.com/repos/desihub/specter/issues/25","number":25,"state":"open","locked":false,"title":"Specrange","user":{"login":"sbailey","id":218471,"avatar_url":"https://avatars.githubusercontent.com/u/218471?v=3","gravatar_id":"","url":"https://api.github.com/users/sbailey","html_url":"https://github.com/sbailey","followers_url":"https://api.github.com/users/sbailey/followers","following_url":"https://api.github.com/users/sbailey/following{/other_user}","gists_url":"https://api.github.com/users/sbailey/gists{/gist_id}","starred_url":"https://api.github.com/users/sbailey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbailey/subscriptions","organizations_url":"https://api.github.com/users/sbailey/orgs","repos_url":"https://api.github.com/users/sbailey/repos","events_url":"https://api.github.com/users/sbailey/events{/privacy}","received_events_url":"https://api.github.com/users/sbailey/received_events","type":"User","site_admin":false},"body":"This pull request fixes a bug in `specter --specrange` usage reported by @julienguy (if the requested number of spectra wasn't evenly divisible by the number of cores used for parallelism *and* you try to simulate the last n spectra, then it walks off the edge and crashes).\r\n\r\nAs part of the fix, I changed the specter and expec command line options to use `--specmin` and `--nspec` instead of `--specrange min,max` (which was interpreted differently by specter and exspec just to keep you on your toes anyway).\r\n\r\nFor specter, `--specmin n` means to start with the nth input spectrum and simulate it as the nth output spectrum on the CCD.  You can also specify `--inspecmin m` and `--specmin n` to map the mth input spectrum to the nth output spectrum on the CCD.","created_at":"2015-11-13T07:12:09Z","updated_at":"2015-11-13T07:12:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"julienguy","id":5192160,"avatar_url":"https://avatars.githubusercontent.com/u/5192160?v=3","gravatar_id":"","url":"https://api.github.com/users/julienguy","html_url":"https://github.com/julienguy","followers_url":"https://api.github.com/users/julienguy/followers","following_url":"https://api.github.com/users/julienguy/following{/other_user}","gists_url":"https://api.github.com/users/julienguy/gists{/gist_id}","starred_url":"https://api.github.com/users/julienguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julienguy/subscriptions","organizations_url":"https://api.github.com/users/julienguy/orgs","repos_url":"https://api.github.com/users/julienguy/repos","events_url":"https://api.github.com/users/julienguy/events{/privacy}","received_events_url":"https://api.github.com/users/julienguy/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/desihub/specter/pulls/25/commits","review_comments_url":"https://api.github.com/repos/desihub/specter/pulls/25/comments","review_comment_url":"https://api.github.com/repos/desihub/specter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/desihub/specter/issues/25/comments","statuses_url":"https://api.github.com/repos/desihub/specter/statuses/5033b3342b507a153f031e6b12df6143b04d673f","head":{"label":"desihub:specrange","ref":"specrange","sha":"5033b3342b507a153f031e6b12df6143b04d673f","user":{"login":"desihub","id":9540621,"avatar_url":"https://avatars.githubusercontent.com/u/9540621?v=3","gravatar_id":"","url":"https://api.github.com/users/desihub","html_url":"https://github.com/desihub","followers_url":"https://api.github.com/users/desihub/followers","following_url":"https://api.github.com/users/desihub/following{/other_user}","gists_url":"https://api.github.com/users/desihub/gists{/gist_id}","starred_url":"https://api.github.com/users/desihub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/desihub/subscriptions","organizations_url":"https://api.github.com/users/desihub/orgs","repos_url":"https://api.github.com/users/desihub/repos","events_url":"https://api.github.com/users/desihub/events{/privacy}","received_events_url":"https://api.github.com/users/desihub/received_events","type":"Organization","site_admin":false},"repo":{"id":6079897,"name":"specter","full_name":"desihub/specter","owner":{"login":"desihub","id":9540621,"avatar_url":"https://avatars.githubusercontent.com/u/9540621?v=3","gravatar_id":"","url":"https://api.github.com/users/desihub","html_url":"https://github.com/desihub","followers_url":"https://api.github.com/users/desihub/followers","following_url":"https://api.github.com/users/desihub/following{/other_user}","gists_url":"https://api.github.com/users/desihub/gists{/gist_id}","starred_url":"https://api.github.com/users/desihub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/desihub/subscriptions","organizations_url":"https://api.github.com/users/desihub/orgs","repos_url":"https://api.github.com/users/desihub/repos","events_url":"https://api.github.com/users/desihub/events{/privacy}","received_events_url":"https://api.github.com/users/desihub/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/desihub/specter","description":"A toolkit for simulating multi-object spectrographs","fork":false,"url":"https://api.github.com/repos/desihub/specter","forks_url":"https://api.github.com/repos/desihub/specter/forks","keys_url":"https://api.github.com/repos/desihub/specter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/desihub/specter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/desihub/specter/teams","hooks_url":"https://api.github.com/repos/desihub/specter/hooks","issue_events_url":"https://api.github.com/repos/desihub/specter/issues/events{/number}","events_url":"https://api.github.com/repos/desihub/specter/events","assignees_url":"https://api.github.com/repos/desihub/specter/assignees{/user}","branches_url":"https://api.github.com/repos/desihub/specter/branches{/branch}","tags_url":"https://api.github.com/repos/desihub/specter/tags","blobs_url":"https://api.github.com/repos/desihub/specter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/desihub/specter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/desihub/specter/git/refs{/sha}","trees_url":"https://api.github.com/repos/desihub/specter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/desihub/specter/statuses/{sha}","languages_url":"https://api.github.com/repos/desihub/specter/languages","stargazers_url":"https://api.github.com/repos/desihub/specter/stargazers","contributors_url":"https://api.github.com/repos/desihub/specter/contributors","subscribers_url":"https://api.github.com/repos/desihub/specter/subscribers","subscription_url":"https://api.github.com/repos/desihub/specter/subscription","commits_url":"https://api.github.com/repos/desihub/specter/commits{/sha}","git_commits_url":"https://api.github.com/repos/desihub/specter/git/commits{/sha}","comments_url":"https://api.github.com/repos/desihub/specter/comments{/number}","issue_comment_url":"https://api.github.com/repos/desihub/specter/issues/comments{/number}","contents_url":"https://api.github.com/repos/desihub/specter/contents/{+path}","compare_url":"https://api.github.com/repos/desihub/specter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/desihub/specter/merges","archive_url":"https://api.github.com/repos/desihub/specter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/desihub/specter/downloads","issues_url":"https://api.github.com/repos/desihub/specter/issues{/number}","pulls_url":"https://api.github.com/repos/desihub/specter/pulls{/number}","milestones_url":"https://api.github.com/repos/desihub/specter/milestones{/number}","notifications_url":"https://api.github.com/repos/desihub/specter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/desihub/specter/labels{/name}","releases_url":"https://api.github.com/repos/desihub/specter/releases{/id}","created_at":"2012-10-04T18:35:52Z","updated_at":"2015-05-04T21:17:24Z","pushed_at":"2015-11-13T07:12:10Z","git_url":"git://github.com/desihub/specter.git","ssh_url":"git@github.com:desihub/specter.git","clone_url":"https://github.com/desihub/specter.git","svn_url":"https://github.com/desihub/specter","homepage":null,"size":42342,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":9,"forks":2,"open_issues":9,"watchers":1,"default_branch":"master"}},"base":{"label":"desihub:master","ref":"master","sha":"2ccb5adb5883f2fcbbe31605a67bec8a938404e6","user":{"login":"desihub","id":9540621,"avatar_url":"https://avatars.githubusercontent.com/u/9540621?v=3","gravatar_id":"","url":"https://api.github.com/users/desihub","html_url":"https://github.com/desihub","followers_url":"https://api.github.com/users/desihub/followers","following_url":"https://api.github.com/users/desihub/following{/other_user}","gists_url":"https://api.github.com/users/desihub/gists{/gist_id}","starred_url":"https://api.github.com/users/desihub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/desihub/subscriptions","organizations_url":"https://api.github.com/users/desihub/orgs","repos_url":"https://api.github.com/users/desihub/repos","events_url":"https://api.github.com/users/desihub/events{/privacy}","received_events_url":"https://api.github.com/users/desihub/received_events","type":"Organization","site_admin":false},"repo":{"id":6079897,"name":"specter","full_name":"desihub/specter","owner":{"login":"desihub","id":9540621,"avatar_url":"https://avatars.githubusercontent.com/u/9540621?v=3","gravatar_id":"","url":"https://api.github.com/users/desihub","html_url":"https://github.com/desihub","followers_url":"https://api.github.com/users/desihub/followers","following_url":"https://api.github.com/users/desihub/following{/other_user}","gists_url":"https://api.github.com/users/desihub/gists{/gist_id}","starred_url":"https://api.github.com/users/desihub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/desihub/subscriptions","organizations_url":"https://api.github.com/users/desihub/orgs","repos_url":"https://api.github.com/users/desihub/repos","events_url":"https://api.github.com/users/desihub/events{/privacy}","received_events_url":"https://api.github.com/users/desihub/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/desihub/specter","description":"A toolkit for simulating multi-object spectrographs","fork":false,"url":"https://api.github.com/repos/desihub/specter","forks_url":"https://api.github.com/repos/desihub/specter/forks","keys_url":"https://api.github.com/repos/desihub/specter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/desihub/specter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/desihub/specter/teams","hooks_url":"https://api.github.com/repos/desihub/specter/hooks","issue_events_url":"https://api.github.com/repos/desihub/specter/issues/events{/number}","events_url":"https://api.github.com/repos/desihub/specter/events","assignees_url":"https://api.github.com/repos/desihub/specter/assignees{/user}","branches_url":"https://api.github.com/repos/desihub/specter/branches{/branch}","tags_url":"https://api.github.com/repos/desihub/specter/tags","blobs_url":"https://api.github.com/repos/desihub/specter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/desihub/specter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/desihub/specter/git/refs{/sha}","trees_url":"https://api.github.com/repos/desihub/specter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/desihub/specter/statuses/{sha}","languages_url":"https://api.github.com/repos/desihub/specter/languages","stargazers_url":"https://api.github.com/repos/desihub/specter/stargazers","contributors_url":"https://api.github.com/repos/desihub/specter/contributors","subscribers_url":"https://api.github.com/repos/desihub/specter/subscribers","subscription_url":"https://api.github.com/repos/desihub/specter/subscription","commits_url":"https://api.github.com/repos/desihub/specter/commits{/sha}","git_commits_url":"https://api.github.com/repos/desihub/specter/git/commits{/sha}","comments_url":"https://api.github.com/repos/desihub/specter/comments{/number}","issue_comment_url":"https://api.github.com/repos/desihub/specter/issues/comments{/number}","contents_url":"https://api.github.com/repos/desihub/specter/contents/{+path}","compare_url":"https://api.github.com/repos/desihub/specter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/desihub/specter/merges","archive_url":"https://api.github.com/repos/desihub/specter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/desihub/specter/downloads","issues_url":"https://api.github.com/repos/desihub/specter/issues{/number}","pulls_url":"https://api.github.com/repos/desihub/specter/pulls{/number}","milestones_url":"https://api.github.com/repos/desihub/specter/milestones{/number}","notifications_url":"https://api.github.com/repos/desihub/specter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/desihub/specter/labels{/name}","releases_url":"https://api.github.com/repos/desihub/specter/releases{/id}","created_at":"2012-10-04T18:35:52Z","updated_at":"2015-05-04T21:17:24Z","pushed_at":"2015-11-13T07:12:10Z","git_url":"git://github.com/desihub/specter.git","ssh_url":"git@github.com:desihub/specter.git","clone_url":"https://github.com/desihub/specter.git","svn_url":"https://github.com/desihub/specter","homepage":null,"size":42342,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":9,"forks":2,"open_issues":9,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/desihub/specter/pulls/25"},"html":{"href":"https://github.com/desihub/specter/pull/25"},"issue":{"href":"https://api.github.com/repos/desihub/specter/issues/25"},"comments":{"href":"https://api.github.com/repos/desihub/specter/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/desihub/specter/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/desihub/specter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/desihub/specter/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/desihub/specter/statuses/5033b3342b507a153f031e6b12df6143b04d673f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":67,"deletions":50,"changed_files":5}}