{"action":"created","issue":{"url":"https://api.github.com/repos/DarkEnergyScienceCollaboration/Twinkles/issues/186","repository_url":"https://api.github.com/repos/DarkEnergyScienceCollaboration/Twinkles","labels_url":"https://api.github.com/repos/DarkEnergyScienceCollaboration/Twinkles/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/DarkEnergyScienceCollaboration/Twinkles/issues/186/comments","events_url":"https://api.github.com/repos/DarkEnergyScienceCollaboration/Twinkles/issues/186/events","html_url":"https://github.com/DarkEnergyScienceCollaboration/Twinkles/issues/186","id":143283731,"number":186,"title":"Implement PhoSimPredictor class using ML results from #158","user":{"login":"jchiang87","id":1994473,"avatar_url":"https://avatars.githubusercontent.com/u/1994473?v=3","gravatar_id":"","url":"https://api.github.com/users/jchiang87","html_url":"https://github.com/jchiang87","followers_url":"https://api.github.com/users/jchiang87/followers","following_url":"https://api.github.com/users/jchiang87/following{/other_user}","gists_url":"https://api.github.com/users/jchiang87/gists{/gist_id}","starred_url":"https://api.github.com/users/jchiang87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jchiang87/subscriptions","organizations_url":"https://api.github.com/users/jchiang87/orgs","repos_url":"https://api.github.com/users/jchiang87/repos","events_url":"https://api.github.com/users/jchiang87/events{/privacy}","received_events_url":"https://api.github.com/users/jchiang87/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DarkEnergyScienceCollaboration/Twinkles/labels/PhoSim","name":"PhoSim","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"sethdigel","id":6035835,"avatar_url":"https://avatars.githubusercontent.com/u/6035835?v=3","gravatar_id":"","url":"https://api.github.com/users/sethdigel","html_url":"https://github.com/sethdigel","followers_url":"https://api.github.com/users/sethdigel/followers","following_url":"https://api.github.com/users/sethdigel/following{/other_user}","gists_url":"https://api.github.com/users/sethdigel/gists{/gist_id}","starred_url":"https://api.github.com/users/sethdigel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethdigel/subscriptions","organizations_url":"https://api.github.com/users/sethdigel/orgs","repos_url":"https://api.github.com/users/sethdigel/repos","events_url":"https://api.github.com/users/sethdigel/events{/privacy}","received_events_url":"https://api.github.com/users/sethdigel/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/DarkEnergyScienceCollaboration/Twinkles/milestones/10","html_url":"https://github.com/DarkEnergyScienceCollaboration/Twinkles/milestones/Twinkles%201%20Data%20Generation%20Start","labels_url":"https://api.github.com/repos/DarkEnergyScienceCollaboration/Twinkles/milestones/10/labels","id":1578719,"number":10,"title":"Twinkles 1 Data Generation Start","description":"Not sure when we'll need to start making images for reals. Beginning of August?","creator":{"login":"drphilmarshall","id":710903,"avatar_url":"https://avatars.githubusercontent.com/u/710903?v=3","gravatar_id":"","url":"https://api.github.com/users/drphilmarshall","html_url":"https://github.com/drphilmarshall","followers_url":"https://api.github.com/users/drphilmarshall/followers","following_url":"https://api.github.com/users/drphilmarshall/following{/other_user}","gists_url":"https://api.github.com/users/drphilmarshall/gists{/gist_id}","starred_url":"https://api.github.com/users/drphilmarshall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drphilmarshall/subscriptions","organizations_url":"https://api.github.com/users/drphilmarshall/orgs","repos_url":"https://api.github.com/users/drphilmarshall/repos","events_url":"https://api.github.com/users/drphilmarshall/events{/privacy}","received_events_url":"https://api.github.com/users/drphilmarshall/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":3,"state":"open","created_at":"2016-02-11T22:41:35Z","updated_at":"2016-03-24T18:40:59Z","due_on":"2016-08-01T07:00:00Z","closed_at":null},"comments":7,"created_at":"2016-03-24T15:50:33Z","updated_at":"2016-03-24T18:55:56Z","closed_at":null,"body":"At #158, Phil says:\r\n> The next step could be to extract the ML parts of your notebook and repackage them into a PhoSimPredictor class, which could be trained and then pickled for use before every new PhoSim run to determine which queue to use."},"comment":{"url":"https://api.github.com/repos/DarkEnergyScienceCollaboration/Twinkles/issues/comments/200969836","html_url":"https://github.com/DarkEnergyScienceCollaboration/Twinkles/issues/186#issuecomment-200969836","issue_url":"https://api.github.com/repos/DarkEnergyScienceCollaboration/Twinkles/issues/186","id":200969836,"user":{"login":"sethdigel","id":6035835,"avatar_url":"https://avatars.githubusercontent.com/u/6035835?v=3","gravatar_id":"","url":"https://api.github.com/users/sethdigel","html_url":"https://github.com/sethdigel","followers_url":"https://api.github.com/users/sethdigel/followers","following_url":"https://api.github.com/users/sethdigel/following{/other_user}","gists_url":"https://api.github.com/users/sethdigel/gists{/gist_id}","starred_url":"https://api.github.com/users/sethdigel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethdigel/subscriptions","organizations_url":"https://api.github.com/users/sethdigel/orgs","repos_url":"https://api.github.com/users/sethdigel/repos","events_url":"https://api.github.com/users/sethdigel/events{/privacy}","received_events_url":"https://api.github.com/users/sethdigel/received_events","type":"User","site_admin":false},"created_at":"2016-03-24T18:55:56Z","updated_at":"2016-03-24T18:55:56Z","body":"Thanks, @TomGlanzman.  From the phosim reference guide, my impression is that the zenith_v parameter specifies the V-band brightness of the sky at the zenith.  This is certainly related to the phase and location of the moon, which are also independently specifiable inputs to phosim, and we clearly see a strong dependence of the CPU time on moon altitude.  So I cannot say that I know what effect zenith_v has in the phosim run, but it is not representing the actual brightness of the sky in the direction of the observation.   In the Opsim output, [this wonderful table](https://confluence.lsstcorp.org/display/SIM/Summary+Table+Column+Descriptions) by Peter Yoachim, the vSkyBright quantity is the V-band brightness in the direction of the observation, taking the Moon into account.  It is this that I think may be a better predictor of the CPU time than some Random Forest combination of moonalt, moonphase, dist2moon, etc.  David Kirkby's notebook also implements a calculation of the sky brightness, with the advantage that you can specify the band of interest.  "}}