{"action":"created","comment":{"url":"https://api.github.com/repos/AllenInstitute/render-modules/pulls/comments/217497028","pull_request_review_id":155224692,"id":217497028,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNzQ5NzAyOA==","diff_hunk":"@@ -75,6 +79,23 @@ def run(self):\n         lc_tform.transformId = refId\n         ref_lc = renderapi.transform.ReferenceTransform(\n             refId=lc_tform.transformId)\n+\n+        tspecs = renderapi.tilespec.get_tile_specs_from_z(\n+            self.input_stack, self.zValues[0], render=r)\n+        levels = [int(l) for l in tspecs[0].ip.levels]\n+        # make mask mipmaps\n+        mask_mm_list = []\n+        if self.args['maskUrl'] is not None:\n+            root, ext = os.path.splitext(self.args['maskUrl'])\n+            mask_mm_list = create_mipmaps(","path":"rendermodules/lens_correction/apply_lens_correction.py","position":25,"original_position":25,"commit_id":"271caf2125e4ff848a89dcbbd66613abeb40c74d","original_commit_id":"271caf2125e4ff848a89dcbbd66613abeb40c74d","user":{"login":"RussTorres","id":7576514,"node_id":"MDQ6VXNlcjc1NzY1MTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/7576514?v=4","gravatar_id":"","url":"https://api.github.com/users/RussTorres","html_url":"https://github.com/RussTorres","followers_url":"https://api.github.com/users/RussTorres/followers","following_url":"https://api.github.com/users/RussTorres/following{/other_user}","gists_url":"https://api.github.com/users/RussTorres/gists{/gist_id}","starred_url":"https://api.github.com/users/RussTorres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RussTorres/subscriptions","organizations_url":"https://api.github.com/users/RussTorres/orgs","repos_url":"https://api.github.com/users/RussTorres/repos","events_url":"https://api.github.com/users/RussTorres/events{/privacy}","received_events_url":"https://api.github.com/users/RussTorres/received_events","type":"User","site_admin":false},"body":"I think this defaults to using `skimage.measure.block_reduce` applying a `numpy.mean` function, which can lead to non-binary masked pixels.  A min, max, or median reduction function would probably work better for a mask. ","created_at":"2018-09-13T18:56:00Z","updated_at":"2018-09-13T18:56:00Z","html_url":"https://github.com/AllenInstitute/render-modules/pull/162#discussion_r217497028","pull_request_url":"https://api.github.com/repos/AllenInstitute/render-modules/pulls/162","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/AllenInstitute/render-modules/pulls/comments/217497028"},"html":{"href":"https://github.com/AllenInstitute/render-modules/pull/162#discussion_r217497028"},"pull_request":{"href":"https://api.github.com/repos/AllenInstitute/render-modules/pulls/162"}}},"pull_request":{"url":"https://api.github.com/repos/AllenInstitute/render-modules/pulls/162","id":214823607,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE0ODIzNjA3","html_url":"https://github.com/AllenInstitute/render-modules/pull/162","diff_url":"https://github.com/AllenInstitute/render-modules/pull/162.diff","patch_url":"https://github.com/AllenInstitute/render-modules/pull/162.patch","issue_url":"https://api.github.com/repos/AllenInstitute/render-modules/issues/162","number":162,"state":"open","locked":false,"title":"Lc masks into mipmap stacks","user":{"login":"djkapner","id":32312979,"node_id":"MDQ6VXNlcjMyMzEyOTc5","avatar_url":"https://avatars2.githubusercontent.com/u/32312979?v=4","gravatar_id":"","url":"https://api.github.com/users/djkapner","html_url":"https://github.com/djkapner","followers_url":"https://api.github.com/users/djkapner/followers","following_url":"https://api.github.com/users/djkapner/following{/other_user}","gists_url":"https://api.github.com/users/djkapner/gists{/gist_id}","starred_url":"https://api.github.com/users/djkapner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djkapner/subscriptions","organizations_url":"https://api.github.com/users/djkapner/orgs","repos_url":"https://api.github.com/users/djkapner/repos","events_url":"https://api.github.com/users/djkapner/events{/privacy}","received_events_url":"https://api.github.com/users/djkapner/received_events","type":"User","site_admin":false},"body":"taking masks from lens correction, downsampling into mipmap levels, adding into stacks during apply_lens_correction()","created_at":"2018-09-12T03:12:47Z","updated_at":"2018-09-13T18:56:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d10095cb487455a243e37ca2c01d4e96265eb40f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/AllenInstitute/render-modules/pulls/162/commits","review_comments_url":"https://api.github.com/repos/AllenInstitute/render-modules/pulls/162/comments","review_comment_url":"https://api.github.com/repos/AllenInstitute/render-modules/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AllenInstitute/render-modules/issues/162/comments","statuses_url":"https://api.github.com/repos/AllenInstitute/render-modules/statuses/271caf2125e4ff848a89dcbbd66613abeb40c74d","head":{"label":"AllenInstitute:lc_masks_into_mipmap_stacks","ref":"lc_masks_into_mipmap_stacks","sha":"271caf2125e4ff848a89dcbbd66613abeb40c74d","user":{"login":"AllenInstitute","id":1848392,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NDgzOTI=","avatar_url":"https://avatars3.githubusercontent.com/u/1848392?v=4","gravatar_id":"","url":"https://api.github.com/users/AllenInstitute","html_url":"https://github.com/AllenInstitute","followers_url":"https://api.github.com/users/AllenInstitute/followers","following_url":"https://api.github.com/users/AllenInstitute/following{/other_user}","gists_url":"https://api.github.com/users/AllenInstitute/gists{/gist_id}","starred_url":"https://api.github.com/users/AllenInstitute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AllenInstitute/subscriptions","organizations_url":"https://api.github.com/users/AllenInstitute/orgs","repos_url":"https://api.github.com/users/AllenInstitute/repos","events_url":"https://api.github.com/users/AllenInstitute/events{/privacy}","received_events_url":"https://api.github.com/users/AllenInstitute/received_events","type":"Organization","site_admin":false},"repo":{"id":101199597,"node_id":"MDEwOlJlcG9zaXRvcnkxMDExOTk1OTc=","name":"render-modules","full_name":"AllenInstitute/render-modules","owner":{"login":"AllenInstitute","id":1848392,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NDgzOTI=","avatar_url":"https://avatars3.githubusercontent.com/u/1848392?v=4","gravatar_id":"","url":"https://api.github.com/users/AllenInstitute","html_url":"https://github.com/AllenInstitute","followers_url":"https://api.github.com/users/AllenInstitute/followers","following_url":"https://api.github.com/users/AllenInstitute/following{/other_user}","gists_url":"https://api.github.com/users/AllenInstitute/gists{/gist_id}","starred_url":"https://api.github.com/users/AllenInstitute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AllenInstitute/subscriptions","organizations_url":"https://api.github.com/users/AllenInstitute/orgs","repos_url":"https://api.github.com/users/AllenInstitute/repos","events_url":"https://api.github.com/users/AllenInstitute/events{/privacy}","received_events_url":"https://api.github.com/users/AllenInstitute/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AllenInstitute/render-modules","description":"Shared repo for EM connectomics and Array Tomography render based image processing modules ","fork":false,"url":"https://api.github.com/repos/AllenInstitute/render-modules","forks_url":"https://api.github.com/repos/AllenInstitute/render-modules/forks","keys_url":"https://api.github.com/repos/AllenInstitute/render-modules/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AllenInstitute/render-modules/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AllenInstitute/render-modules/teams","hooks_url":"https://api.github.com/repos/AllenInstitute/render-modules/hooks","issue_events_url":"https://api.github.com/repos/AllenInstitute/render-modules/issues/events{/number}","events_url":"https://api.github.com/repos/AllenInstitute/render-modules/events","assignees_url":"https://api.github.com/repos/AllenInstitute/render-modules/assignees{/user}","branches_url":"https://api.github.com/repos/AllenInstitute/render-modules/branches{/branch}","tags_url":"https://api.github.com/repos/AllenInstitute/render-modules/tags","blobs_url":"https://api.github.com/repos/AllenInstitute/render-modules/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AllenInstitute/render-modules/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AllenInstitute/render-modules/git/refs{/sha}","trees_url":"https://api.github.com/repos/AllenInstitute/render-modules/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AllenInstitute/render-modules/statuses/{sha}","languages_url":"https://api.github.com/repos/AllenInstitute/render-modules/languages","stargazers_url":"https://api.github.com/repos/AllenInstitute/render-modules/stargazers","contributors_url":"https://api.github.com/repos/AllenInstitute/render-modules/contributors","subscribers_url":"https://api.github.com/repos/AllenInstitute/render-modules/subscribers","subscription_url":"https://api.github.com/repos/AllenInstitute/render-modules/subscription","commits_url":"https://api.github.com/repos/AllenInstitute/render-modules/commits{/sha}","git_commits_url":"https://api.github.com/repos/AllenInstitute/render-modules/git/commits{/sha}","comments_url":"https://api.github.com/repos/AllenInstitute/render-modules/comments{/number}","issue_comment_url":"https://api.github.com/repos/AllenInstitute/render-modules/issues/comments{/number}","contents_url":"https://api.github.com/repos/AllenInstitute/render-modules/contents/{+path}","compare_url":"https://api.github.com/repos/AllenInstitute/render-modules/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AllenInstitute/render-modules/merges","archive_url":"https://api.github.com/repos/AllenInstitute/render-modules/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AllenInstitute/render-modules/downloads","issues_url":"https://api.github.com/repos/AllenInstitute/render-modules/issues{/number}","pulls_url":"https://api.github.com/repos/AllenInstitute/render-modules/pulls{/number}","milestones_url":"https://api.github.com/repos/AllenInstitute/render-modules/milestones{/number}","notifications_url":"https://api.github.com/repos/AllenInstitute/render-modules/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AllenInstitute/render-modules/labels{/name}","releases_url":"https://api.github.com/repos/AllenInstitute/render-modules/releases{/id}","deployments_url":"https://api.github.com/repos/AllenInstitute/render-modules/deployments","created_at":"2017-08-23T16:03:12Z","updated_at":"2018-09-11T20:11:20Z","pushed_at":"2018-09-13T18:46:25Z","git_url":"git://github.com/AllenInstitute/render-modules.git","ssh_url":"git@github.com:AllenInstitute/render-modules.git","clone_url":"https://github.com/AllenInstitute/render-modules.git","svn_url":"https://github.com/AllenInstitute/render-modules","homepage":"https://alleninstitute.github.io/render-modules/","size":2667,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":5,"watchers":3,"default_branch":"master"}},"base":{"label":"AllenInstitute:develop","ref":"develop","sha":"07fe2626e8efa3bca1f2c4064f5f84fe18f4a22c","user":{"login":"AllenInstitute","id":1848392,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NDgzOTI=","avatar_url":"https://avatars3.githubusercontent.com/u/1848392?v=4","gravatar_id":"","url":"https://api.github.com/users/AllenInstitute","html_url":"https://github.com/AllenInstitute","followers_url":"https://api.github.com/users/AllenInstitute/followers","following_url":"https://api.github.com/users/AllenInstitute/following{/other_user}","gists_url":"https://api.github.com/users/AllenInstitute/gists{/gist_id}","starred_url":"https://api.github.com/users/AllenInstitute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AllenInstitute/subscriptions","organizations_url":"https://api.github.com/users/AllenInstitute/orgs","repos_url":"https://api.github.com/users/AllenInstitute/repos","events_url":"https://api.github.com/users/AllenInstitute/events{/privacy}","received_events_url":"https://api.github.com/users/AllenInstitute/received_events","type":"Organization","site_admin":false},"repo":{"id":101199597,"node_id":"MDEwOlJlcG9zaXRvcnkxMDExOTk1OTc=","name":"render-modules","full_name":"AllenInstitute/render-modules","owner":{"login":"AllenInstitute","id":1848392,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NDgzOTI=","avatar_url":"https://avatars3.githubusercontent.com/u/1848392?v=4","gravatar_id":"","url":"https://api.github.com/users/AllenInstitute","html_url":"https://github.com/AllenInstitute","followers_url":"https://api.github.com/users/AllenInstitute/followers","following_url":"https://api.github.com/users/AllenInstitute/following{/other_user}","gists_url":"https://api.github.com/users/AllenInstitute/gists{/gist_id}","starred_url":"https://api.github.com/users/AllenInstitute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AllenInstitute/subscriptions","organizations_url":"https://api.github.com/users/AllenInstitute/orgs","repos_url":"https://api.github.com/users/AllenInstitute/repos","events_url":"https://api.github.com/users/AllenInstitute/events{/privacy}","received_events_url":"https://api.github.com/users/AllenInstitute/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AllenInstitute/render-modules","description":"Shared repo for EM connectomics and Array Tomography render based image processing modules ","fork":false,"url":"https://api.github.com/repos/AllenInstitute/render-modules","forks_url":"https://api.github.com/repos/AllenInstitute/render-modules/forks","keys_url":"https://api.github.com/repos/AllenInstitute/render-modules/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AllenInstitute/render-modules/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AllenInstitute/render-modules/teams","hooks_url":"https://api.github.com/repos/AllenInstitute/render-modules/hooks","issue_events_url":"https://api.github.com/repos/AllenInstitute/render-modules/issues/events{/number}","events_url":"https://api.github.com/repos/AllenInstitute/render-modules/events","assignees_url":"https://api.github.com/repos/AllenInstitute/render-modules/assignees{/user}","branches_url":"https://api.github.com/repos/AllenInstitute/render-modules/branches{/branch}","tags_url":"https://api.github.com/repos/AllenInstitute/render-modules/tags","blobs_url":"https://api.github.com/repos/AllenInstitute/render-modules/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AllenInstitute/render-modules/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AllenInstitute/render-modules/git/refs{/sha}","trees_url":"https://api.github.com/repos/AllenInstitute/render-modules/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AllenInstitute/render-modules/statuses/{sha}","languages_url":"https://api.github.com/repos/AllenInstitute/render-modules/languages","stargazers_url":"https://api.github.com/repos/AllenInstitute/render-modules/stargazers","contributors_url":"https://api.github.com/repos/AllenInstitute/render-modules/contributors","subscribers_url":"https://api.github.com/repos/AllenInstitute/render-modules/subscribers","subscription_url":"https://api.github.com/repos/AllenInstitute/render-modules/subscription","commits_url":"https://api.github.com/repos/AllenInstitute/render-modules/commits{/sha}","git_commits_url":"https://api.github.com/repos/AllenInstitute/render-modules/git/commits{/sha}","comments_url":"https://api.github.com/repos/AllenInstitute/render-modules/comments{/number}","issue_comment_url":"https://api.github.com/repos/AllenInstitute/render-modules/issues/comments{/number}","contents_url":"https://api.github.com/repos/AllenInstitute/render-modules/contents/{+path}","compare_url":"https://api.github.com/repos/AllenInstitute/render-modules/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AllenInstitute/render-modules/merges","archive_url":"https://api.github.com/repos/AllenInstitute/render-modules/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AllenInstitute/render-modules/downloads","issues_url":"https://api.github.com/repos/AllenInstitute/render-modules/issues{/number}","pulls_url":"https://api.github.com/repos/AllenInstitute/render-modules/pulls{/number}","milestones_url":"https://api.github.com/repos/AllenInstitute/render-modules/milestones{/number}","notifications_url":"https://api.github.com/repos/AllenInstitute/render-modules/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AllenInstitute/render-modules/labels{/name}","releases_url":"https://api.github.com/repos/AllenInstitute/render-modules/releases{/id}","deployments_url":"https://api.github.com/repos/AllenInstitute/render-modules/deployments","created_at":"2017-08-23T16:03:12Z","updated_at":"2018-09-11T20:11:20Z","pushed_at":"2018-09-13T18:46:25Z","git_url":"git://github.com/AllenInstitute/render-modules.git","ssh_url":"git@github.com:AllenInstitute/render-modules.git","clone_url":"https://github.com/AllenInstitute/render-modules.git","svn_url":"https://github.com/AllenInstitute/render-modules","homepage":"https://alleninstitute.github.io/render-modules/","size":2667,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":5,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AllenInstitute/render-modules/pulls/162"},"html":{"href":"https://github.com/AllenInstitute/render-modules/pull/162"},"issue":{"href":"https://api.github.com/repos/AllenInstitute/render-modules/issues/162"},"comments":{"href":"https://api.github.com/repos/AllenInstitute/render-modules/issues/162/comments"},"review_comments":{"href":"https://api.github.com/repos/AllenInstitute/render-modules/pulls/162/comments"},"review_comment":{"href":"https://api.github.com/repos/AllenInstitute/render-modules/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AllenInstitute/render-modules/pulls/162/commits"},"statuses":{"href":"https://api.github.com/repos/AllenInstitute/render-modules/statuses/271caf2125e4ff848a89dcbbd66613abeb40c74d"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"RussTorres"}}