{"action":"created","issue":{"url":"https://api.github.com/repos/desihub/desisim/issues/34","labels_url":"https://api.github.com/repos/desihub/desisim/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/desihub/desisim/issues/34/comments","events_url":"https://api.github.com/repos/desihub/desisim/issues/34/events","html_url":"https://github.com/desihub/desisim/pull/34","id":114358326,"number":34,"title":"newexp-desi integrated with templates generated on-the-fly","user":{"login":"moustakas","id":1431820,"avatar_url":"https://avatars.githubusercontent.com/u/1431820?v=3","gravatar_id":"","url":"https://api.github.com/users/moustakas","html_url":"https://github.com/moustakas","followers_url":"https://api.github.com/users/moustakas/followers","following_url":"https://api.github.com/users/moustakas/following{/other_user}","gists_url":"https://api.github.com/users/moustakas/gists{/gist_id}","starred_url":"https://api.github.com/users/moustakas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moustakas/subscriptions","organizations_url":"https://api.github.com/users/moustakas/orgs","repos_url":"https://api.github.com/users/moustakas/repos","events_url":"https://api.github.com/users/moustakas/events{/privacy}","received_events_url":"https://api.github.com/users/moustakas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-30T21:21:27Z","updated_at":"2015-11-01T02:55:39Z","closed_at":"2015-10-31T21:07:35Z","pull_request":{"url":"https://api.github.com/repos/desihub/desisim/pulls/34","html_url":"https://github.com/desihub/desisim/pull/34","diff_url":"https://github.com/desihub/desisim/pull/34.diff","patch_url":"https://github.com/desihub/desisim/pull/34.patch"},"body":"I've tested the code, but independent eyes are welcome.  \r\n\r\nThe environment variables for all the individual target classes (DESI_ELG_TEMPLATES, DESI_LRG_TEMPLATES, etc.) are now obsolete.  All you need to set is\r\n```\r\nexport DESI_BASIS_TEMPLATES=$DESI_ROOT/spectro/templates/basis_templates/v1.0\r\n```\r\n\r\nAnd then everything should \"just work\"\r\n```\r\nnewexp-desi --nspec 500\r\n```\r\n\r\nFYI -- The following target classes are currently supported: ELG, LRG, QSO, STAR, STD (=FSTD), and WD.  In addition, BAD_QSO spectra are generated as interloper stars (although the stars don't yet satisfy the QSO color cuts.)"},"comment":{"url":"https://api.github.com/repos/desihub/desisim/issues/comments/152789350","html_url":"https://github.com/desihub/desisim/pull/34#issuecomment-152789350","issue_url":"https://api.github.com/repos/desihub/desisim/issues/34","id":152789350,"user":{"login":"moustakas","id":1431820,"avatar_url":"https://avatars.githubusercontent.com/u/1431820?v=3","gravatar_id":"","url":"https://api.github.com/users/moustakas","html_url":"https://github.com/moustakas","followers_url":"https://api.github.com/users/moustakas/followers","following_url":"https://api.github.com/users/moustakas/following{/other_user}","gists_url":"https://api.github.com/users/moustakas/gists{/gist_id}","starred_url":"https://api.github.com/users/moustakas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moustakas/subscriptions","organizations_url":"https://api.github.com/users/moustakas/orgs","repos_url":"https://api.github.com/users/moustakas/repos","events_url":"https://api.github.com/users/moustakas/events{/privacy}","received_events_url":"https://api.github.com/users/moustakas/received_events","type":"User","site_admin":false},"created_at":"2015-11-01T02:55:39Z","updated_at":"2015-11-01T02:55:39Z","body":"@gdhungana Yes, the priors are currently fixed.  I couldn't think of a clean way to do this without weighing newexp-desi down with a ton of optional parameters.  One possibility would be to have the code read an optional (yaml) parameter file, but other suggestions are more than welcome.\r\n\r\nHappy Halloween!"}}