{"action":"closed","issue":{"url":"https://api.github.com/repos/desihub/desisim/issues/26","labels_url":"https://api.github.com/repos/desihub/desisim/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/desihub/desisim/issues/26/comments","events_url":"https://api.github.com/repos/desihub/desisim/issues/26/events","html_url":"https://github.com/desihub/desisim/issues/26","id":110769366,"number":26,"title":"quickgen can't simulate spectra above 500","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},"labels":[{"url":"https://api.github.com/repos/desihub/desisim/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"gdhungana","id":10554289,"avatar_url":"https://avatars.githubusercontent.com/u/10554289?v=3","gravatar_id":"","url":"https://api.github.com/users/gdhungana","html_url":"https://github.com/gdhungana","followers_url":"https://api.github.com/users/gdhungana/followers","following_url":"https://api.github.com/users/gdhungana/following{/other_user}","gists_url":"https://api.github.com/users/gdhungana/gists{/gist_id}","starred_url":"https://api.github.com/users/gdhungana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdhungana/subscriptions","organizations_url":"https://api.github.com/users/gdhungana/orgs","repos_url":"https://api.github.com/users/gdhungana/repos","events_url":"https://api.github.com/users/gdhungana/events{/privacy}","received_events_url":"https://api.github.com/users/gdhungana/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/desihub/desisim/milestones/2","html_url":"https://github.com/desihub/desisim/milestones/Argonne2015","labels_url":"https://api.github.com/repos/desihub/desisim/milestones/2/labels","id":1348239,"number":2,"title":"Argonne2015","description":null,"creator":{"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},"open_issues":0,"closed_issues":1,"state":"open","created_at":"2015-10-10T05:11:27Z","updated_at":"2015-10-15T19:14:06Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-10-10T05:14:02Z","updated_at":"2015-10-15T19:14:06Z","closed_at":"2015-10-15T19:14:06Z","body":"Now that quickgen has been announced to the collaboration, bugs in it become high priority.\r\n\r\nThe options for simulating spectra above 499 appear to be broken.  All of these should work:\r\n```\r\nquickgen --simspec {simspecfile...} --fibermap {fibermapfile} --nspec 500 --nstart 500 --spectrograph 1\r\nquickgen --simspec {simspecfile...} --fibermap {fibermapfile} --nspec 500 --nstart 500\r\nquickgen --simspec {simspecfile...} --fibermap {fibermapfile} --nspec 1000\r\nquickgen --simspec {simspecfile...} --fibermap {fibermapfile} --nspec 5000\r\n```\r\nBut they all fail with some version of:\r\n```\r\nSimulating spectrum 500,  object type=ELG\r\nTraceback (most recent call last):\r\n  File \"/project/projectdirs/desi/software/edison/desisim/master/bin/quickgen\", line 257, in <module>\r\n    nobj[j,i,:waveMaxbin[channel]]=results.nobj[waveRange[channel],i]\r\nIndexError: index 500 is out of bounds for axis 0 with size 500\r\n```\r\nAs a result, quickgen can only simulate spectrograph 0 and not 1-9.  Please fix."}}