{"action":"created","comment":{"url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/pulls/comments/83735322","pull_request_review_id":4554883,"id":83735322,"diff_hunk":"@@ -0,0 +1,575 @@\n+\"\"\"\n+Makes a raft's worth of image files based on a user-specified single-sensor\n+image file, the raft designator, and the sensor type (ITL or E2V, which\n+probably could be guessable from the single-sensor image).  The test type\n+probably also needs to be specified (for the file naming)\n+The data in the nine output images are the same as in the input image.  What\n+is new is the raft coordinate-related header keywords.  These are derived\n+from the specification in LCA-13501.\n+\"\"\"\n+\n+from __future__ import print_function, absolute_import, division\n+\n+import os\n+import fnmatch\n+import yaml\n+\n+import astropy.io.fits as fits\n+from datacat.error import DcClientException\n+from DataCatalog import DataCatalog\n+# import siteUtils\n+\n+\n+def make_datacat_path(**kwargs):\n+    \"\"\" Build the data catalog path for a particular test on a particular sensor\n+\n+    Looking at LSSTTD-690 it appear that with run numbers the best we can do is\n+    <root_folder>/<sensor_type>/<sensor_id>.\n+    \"\"\"\n+    return os.path.join(kwargs['root_folder'], kwargs['sensor_type'],\n+                        kwargs['sensor_id'])\n+\n+\n+def make_outfile_path(**kwargs):\n+    \"\"\" Build the path for an output file for a particular test on a particular sensor\n+\n+    Looking at LSSTTD-690 for rafts this should be\n+    <root_folder>/sraft<raft_id>/<process_name>/<job_id>/s<slot_name>/<file_string>\n+    \"\"\"\n+    return os.path.join(kwargs['root_folder'], \"sraft%s\" % (kwargs['raft_id']),\n+                        \"%04i\" % (kwargs['run_id']), kwargs['process_name'],\n+                        \"%04i\" % (kwargs['job_id']), \"s%s\" % (kwargs['slot_name']),","path":"python/simulation/fake_raft.py","position":41,"original_position":41,"commit_id":"6bb04a1af6106018dbc8aa5ef609f7caab26c610","original_commit_id":"6bb04a1af6106018dbc8aa5ef609f7caab26c610","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},"body":"I think this should be \r\n```\r\n                        \"%04i\" % (kwargs['job_id']), \"S%s\" % (kwargs['slot_name']),\r\n```\r\ni.e., an upper case 'S' instead of lower case, since that's what DM does.","created_at":"2016-10-17T21:13:21Z","updated_at":"2016-10-17T21:20:27Z","html_url":"https://github.com/lsst-camera-dh/IandT-jobs/pull/1#discussion_r83735322","pull_request_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/pulls/comments/83735322"},"html":{"href":"https://github.com/lsst-camera-dh/IandT-jobs/pull/1#discussion_r83735322"},"pull_request":{"href":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/pulls/1","id":88936077,"html_url":"https://github.com/lsst-camera-dh/IandT-jobs/pull/1","diff_url":"https://github.com/lsst-camera-dh/IandT-jobs/pull/1.diff","patch_url":"https://github.com/lsst-camera-dh/IandT-jobs/pull/1.patch","issue_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/issues/1","number":1,"state":"open","locked":false,"title":"Eac dev","user":{"login":"eacharles","id":14844706,"avatar_url":"https://avatars.githubusercontent.com/u/14844706?v=3","gravatar_id":"","url":"https://api.github.com/users/eacharles","html_url":"https://github.com/eacharles","followers_url":"https://api.github.com/users/eacharles/followers","following_url":"https://api.github.com/users/eacharles/following{/other_user}","gists_url":"https://api.github.com/users/eacharles/gists{/gist_id}","starred_url":"https://api.github.com/users/eacharles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eacharles/subscriptions","organizations_url":"https://api.github.com/users/eacharles/orgs","repos_url":"https://api.github.com/users/eacharles/repos","events_url":"https://api.github.com/users/eacharles/events{/privacy}","received_events_url":"https://api.github.com/users/eacharles/received_events","type":"User","site_admin":false},"body":"I've added fake_raft.py simulate raft-level data by copying input data for various sensors in a raft.   For now this takes a yaml file as input to define the raft to sensor relationship, and is largely made of placeholder code. \r\n\r\nThis version does identify input files individually for each sensor in a raft.   ","created_at":"2016-10-12T00:47:39Z","updated_at":"2016-10-17T21:20:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6f7fbc832edbc4e5b0ab0ebf1e76e60ed297d17e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/pulls/1/commits","review_comments_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/pulls/1/comments","review_comment_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/issues/1/comments","statuses_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/statuses/6bb04a1af6106018dbc8aa5ef609f7caab26c610","head":{"label":"lsst-camera-dh:eac_dev","ref":"eac_dev","sha":"6bb04a1af6106018dbc8aa5ef609f7caab26c610","user":{"login":"lsst-camera-dh","id":10950895,"avatar_url":"https://avatars.githubusercontent.com/u/10950895?v=3","gravatar_id":"","url":"https://api.github.com/users/lsst-camera-dh","html_url":"https://github.com/lsst-camera-dh","followers_url":"https://api.github.com/users/lsst-camera-dh/followers","following_url":"https://api.github.com/users/lsst-camera-dh/following{/other_user}","gists_url":"https://api.github.com/users/lsst-camera-dh/gists{/gist_id}","starred_url":"https://api.github.com/users/lsst-camera-dh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsst-camera-dh/subscriptions","organizations_url":"https://api.github.com/users/lsst-camera-dh/orgs","repos_url":"https://api.github.com/users/lsst-camera-dh/repos","events_url":"https://api.github.com/users/lsst-camera-dh/events{/privacy}","received_events_url":"https://api.github.com/users/lsst-camera-dh/received_events","type":"Organization","site_admin":false},"repo":{"id":69699486,"name":"IandT-jobs","full_name":"lsst-camera-dh/IandT-jobs","owner":{"login":"lsst-camera-dh","id":10950895,"avatar_url":"https://avatars.githubusercontent.com/u/10950895?v=3","gravatar_id":"","url":"https://api.github.com/users/lsst-camera-dh","html_url":"https://github.com/lsst-camera-dh","followers_url":"https://api.github.com/users/lsst-camera-dh/followers","following_url":"https://api.github.com/users/lsst-camera-dh/following{/other_user}","gists_url":"https://api.github.com/users/lsst-camera-dh/gists{/gist_id}","starred_url":"https://api.github.com/users/lsst-camera-dh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsst-camera-dh/subscriptions","organizations_url":"https://api.github.com/users/lsst-camera-dh/orgs","repos_url":"https://api.github.com/users/lsst-camera-dh/repos","events_url":"https://api.github.com/users/lsst-camera-dh/events{/privacy}","received_events_url":"https://api.github.com/users/lsst-camera-dh/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lsst-camera-dh/IandT-jobs","description":"Harnessed jobs and travelers for I&T activities at SLAC","fork":false,"url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs","forks_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/forks","keys_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/teams","hooks_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/hooks","issue_events_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/issues/events{/number}","events_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/events","assignees_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/assignees{/user}","branches_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/branches{/branch}","tags_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/tags","blobs_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/git/refs{/sha}","trees_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/statuses/{sha}","languages_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/languages","stargazers_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/stargazers","contributors_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/contributors","subscribers_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/subscribers","subscription_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/subscription","commits_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/commits{/sha}","git_commits_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/git/commits{/sha}","comments_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/comments{/number}","issue_comment_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/issues/comments{/number}","contents_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/contents/{+path}","compare_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/merges","archive_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/downloads","issues_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/issues{/number}","pulls_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/pulls{/number}","milestones_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/milestones{/number}","notifications_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/labels{/name}","releases_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/releases{/id}","deployments_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/deployments","created_at":"2016-09-30T20:22:30Z","updated_at":"2016-09-30T20:23:13Z","pushed_at":"2016-10-16T20:49:42Z","git_url":"git://github.com/lsst-camera-dh/IandT-jobs.git","ssh_url":"git@github.com:lsst-camera-dh/IandT-jobs.git","clone_url":"https://github.com/lsst-camera-dh/IandT-jobs.git","svn_url":"https://github.com/lsst-camera-dh/IandT-jobs","homepage":null,"size":26,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"lsst-camera-dh:master","ref":"master","sha":"a1d8023909a44b9ecaacf7310777ed81d650cc2f","user":{"login":"lsst-camera-dh","id":10950895,"avatar_url":"https://avatars.githubusercontent.com/u/10950895?v=3","gravatar_id":"","url":"https://api.github.com/users/lsst-camera-dh","html_url":"https://github.com/lsst-camera-dh","followers_url":"https://api.github.com/users/lsst-camera-dh/followers","following_url":"https://api.github.com/users/lsst-camera-dh/following{/other_user}","gists_url":"https://api.github.com/users/lsst-camera-dh/gists{/gist_id}","starred_url":"https://api.github.com/users/lsst-camera-dh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsst-camera-dh/subscriptions","organizations_url":"https://api.github.com/users/lsst-camera-dh/orgs","repos_url":"https://api.github.com/users/lsst-camera-dh/repos","events_url":"https://api.github.com/users/lsst-camera-dh/events{/privacy}","received_events_url":"https://api.github.com/users/lsst-camera-dh/received_events","type":"Organization","site_admin":false},"repo":{"id":69699486,"name":"IandT-jobs","full_name":"lsst-camera-dh/IandT-jobs","owner":{"login":"lsst-camera-dh","id":10950895,"avatar_url":"https://avatars.githubusercontent.com/u/10950895?v=3","gravatar_id":"","url":"https://api.github.com/users/lsst-camera-dh","html_url":"https://github.com/lsst-camera-dh","followers_url":"https://api.github.com/users/lsst-camera-dh/followers","following_url":"https://api.github.com/users/lsst-camera-dh/following{/other_user}","gists_url":"https://api.github.com/users/lsst-camera-dh/gists{/gist_id}","starred_url":"https://api.github.com/users/lsst-camera-dh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsst-camera-dh/subscriptions","organizations_url":"https://api.github.com/users/lsst-camera-dh/orgs","repos_url":"https://api.github.com/users/lsst-camera-dh/repos","events_url":"https://api.github.com/users/lsst-camera-dh/events{/privacy}","received_events_url":"https://api.github.com/users/lsst-camera-dh/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lsst-camera-dh/IandT-jobs","description":"Harnessed jobs and travelers for I&T activities at SLAC","fork":false,"url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs","forks_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/forks","keys_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/teams","hooks_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/hooks","issue_events_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/issues/events{/number}","events_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/events","assignees_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/assignees{/user}","branches_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/branches{/branch}","tags_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/tags","blobs_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/git/refs{/sha}","trees_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/statuses/{sha}","languages_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/languages","stargazers_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/stargazers","contributors_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/contributors","subscribers_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/subscribers","subscription_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/subscription","commits_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/commits{/sha}","git_commits_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/git/commits{/sha}","comments_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/comments{/number}","issue_comment_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/issues/comments{/number}","contents_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/contents/{+path}","compare_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/merges","archive_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/downloads","issues_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/issues{/number}","pulls_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/pulls{/number}","milestones_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/milestones{/number}","notifications_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/labels{/name}","releases_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/releases{/id}","deployments_url":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/deployments","created_at":"2016-09-30T20:22:30Z","updated_at":"2016-09-30T20:23:13Z","pushed_at":"2016-10-16T20:49:42Z","git_url":"git://github.com/lsst-camera-dh/IandT-jobs.git","ssh_url":"git@github.com:lsst-camera-dh/IandT-jobs.git","clone_url":"https://github.com/lsst-camera-dh/IandT-jobs.git","svn_url":"https://github.com/lsst-camera-dh/IandT-jobs","homepage":null,"size":26,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/pulls/1"},"html":{"href":"https://github.com/lsst-camera-dh/IandT-jobs/pull/1"},"issue":{"href":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/issues/1"},"comments":{"href":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/lsst-camera-dh/IandT-jobs/statuses/6bb04a1af6106018dbc8aa5ef609f7caab26c610"}}}}
{"actor":{"display_login":"jchiang87"}}