{"action":"created","comment":{"url":"https://api.github.com/repos/ContinuumIO/dask/pulls/comments/32540790","id":32540790,"diff_hunk":"@@ -575,6 +575,8 @@ def blockdims_from_blockshape(shape, blockshape):\n     >>> blockdims_from_blockshape((10, 10), (4, 3))\n     ((4, 4, 2), (3, 3, 3, 1))\n     \"\"\"\n+    shape = map(int, shape)\n+    blockshape = map(int, blockshape)","path":"dask/array/core.py","position":5,"original_position":5,"commit_id":"a9be4b9e6419936136d2b0944eeadfa143ef6826","original_commit_id":"a9be4b9e6419936136d2b0944eeadfa143ef6826","user":{"login":"mrocklin","id":306380,"avatar_url":"https://avatars.githubusercontent.com/u/306380?v=3","gravatar_id":"","url":"https://api.github.com/users/mrocklin","html_url":"https://github.com/mrocklin","followers_url":"https://api.github.com/users/mrocklin/followers","following_url":"https://api.github.com/users/mrocklin/following{/other_user}","gists_url":"https://api.github.com/users/mrocklin/gists{/gist_id}","starred_url":"https://api.github.com/users/mrocklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrocklin/subscriptions","organizations_url":"https://api.github.com/users/mrocklin/orgs","repos_url":"https://api.github.com/users/mrocklin/repos","events_url":"https://api.github.com/users/mrocklin/events{/privacy}","received_events_url":"https://api.github.com/users/mrocklin/received_events","type":"User","site_admin":false},"body":"This hides some of the informative errors below.\r\n\r\nWe might also want to genuinely raise an error if the mantissa is nonzero.","created_at":"2015-06-16T16:41:26Z","updated_at":"2015-06-16T16:41:26Z","html_url":"https://github.com/ContinuumIO/dask/pull/312#discussion_r32540790","pull_request_url":"https://api.github.com/repos/ContinuumIO/dask/pulls/312","_links":{"self":{"href":"https://api.github.com/repos/ContinuumIO/dask/pulls/comments/32540790"},"html":{"href":"https://github.com/ContinuumIO/dask/pull/312#discussion_r32540790"},"pull_request":{"href":"https://api.github.com/repos/ContinuumIO/dask/pulls/312"}}},"pull_request":{"url":"https://api.github.com/repos/ContinuumIO/dask/pulls/312","id":37745259,"html_url":"https://github.com/ContinuumIO/dask/pull/312","diff_url":"https://github.com/ContinuumIO/dask/pull/312.diff","patch_url":"https://github.com/ContinuumIO/dask/pull/312.patch","issue_url":"https://api.github.com/repos/ContinuumIO/dask/issues/312","number":312,"state":"open","locked":false,"title":"Cast to shape and chunks to ints in blockdims_from_blockshape","user":{"login":"cowlicks","id":598099,"avatar_url":"https://avatars.githubusercontent.com/u/598099?v=3","gravatar_id":"","url":"https://api.github.com/users/cowlicks","html_url":"https://github.com/cowlicks","followers_url":"https://api.github.com/users/cowlicks/followers","following_url":"https://api.github.com/users/cowlicks/following{/other_user}","gists_url":"https://api.github.com/users/cowlicks/gists{/gist_id}","starred_url":"https://api.github.com/users/cowlicks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cowlicks/subscriptions","organizations_url":"https://api.github.com/users/cowlicks/orgs","repos_url":"https://api.github.com/users/cowlicks/repos","events_url":"https://api.github.com/users/cowlicks/events{/privacy}","received_events_url":"https://api.github.com/users/cowlicks/received_events","type":"User","site_admin":false},"body":"Using a float in these was raising an exception.","created_at":"2015-06-15T23:11:08Z","updated_at":"2015-06-16T16:41:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"04650113b8446f4c23523622fce7e9d89d17a3cb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ContinuumIO/dask/pulls/312/commits","review_comments_url":"https://api.github.com/repos/ContinuumIO/dask/pulls/312/comments","review_comment_url":"https://api.github.com/repos/ContinuumIO/dask/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ContinuumIO/dask/issues/312/comments","statuses_url":"https://api.github.com/repos/ContinuumIO/dask/statuses/a9be4b9e6419936136d2b0944eeadfa143ef6826","head":{"label":"cowlicks:lil-things","ref":"lil-things","sha":"a9be4b9e6419936136d2b0944eeadfa143ef6826","user":{"login":"cowlicks","id":598099,"avatar_url":"https://avatars.githubusercontent.com/u/598099?v=3","gravatar_id":"","url":"https://api.github.com/users/cowlicks","html_url":"https://github.com/cowlicks","followers_url":"https://api.github.com/users/cowlicks/followers","following_url":"https://api.github.com/users/cowlicks/following{/other_user}","gists_url":"https://api.github.com/users/cowlicks/gists{/gist_id}","starred_url":"https://api.github.com/users/cowlicks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cowlicks/subscriptions","organizations_url":"https://api.github.com/users/cowlicks/orgs","repos_url":"https://api.github.com/users/cowlicks/repos","events_url":"https://api.github.com/users/cowlicks/events{/privacy}","received_events_url":"https://api.github.com/users/cowlicks/received_events","type":"User","site_admin":false},"repo":{"id":31992843,"name":"dask","full_name":"cowlicks/dask","owner":{"login":"cowlicks","id":598099,"avatar_url":"https://avatars.githubusercontent.com/u/598099?v=3","gravatar_id":"","url":"https://api.github.com/users/cowlicks","html_url":"https://github.com/cowlicks","followers_url":"https://api.github.com/users/cowlicks/followers","following_url":"https://api.github.com/users/cowlicks/following{/other_user}","gists_url":"https://api.github.com/users/cowlicks/gists{/gist_id}","starred_url":"https://api.github.com/users/cowlicks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cowlicks/subscriptions","organizations_url":"https://api.github.com/users/cowlicks/orgs","repos_url":"https://api.github.com/users/cowlicks/repos","events_url":"https://api.github.com/users/cowlicks/events{/privacy}","received_events_url":"https://api.github.com/users/cowlicks/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cowlicks/dask","description":"Minimal task scheduling abstraction","fork":true,"url":"https://api.github.com/repos/cowlicks/dask","forks_url":"https://api.github.com/repos/cowlicks/dask/forks","keys_url":"https://api.github.com/repos/cowlicks/dask/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cowlicks/dask/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cowlicks/dask/teams","hooks_url":"https://api.github.com/repos/cowlicks/dask/hooks","issue_events_url":"https://api.github.com/repos/cowlicks/dask/issues/events{/number}","events_url":"https://api.github.com/repos/cowlicks/dask/events","assignees_url":"https://api.github.com/repos/cowlicks/dask/assignees{/user}","branches_url":"https://api.github.com/repos/cowlicks/dask/branches{/branch}","tags_url":"https://api.github.com/repos/cowlicks/dask/tags","blobs_url":"https://api.github.com/repos/cowlicks/dask/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cowlicks/dask/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cowlicks/dask/git/refs{/sha}","trees_url":"https://api.github.com/repos/cowlicks/dask/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cowlicks/dask/statuses/{sha}","languages_url":"https://api.github.com/repos/cowlicks/dask/languages","stargazers_url":"https://api.github.com/repos/cowlicks/dask/stargazers","contributors_url":"https://api.github.com/repos/cowlicks/dask/contributors","subscribers_url":"https://api.github.com/repos/cowlicks/dask/subscribers","subscription_url":"https://api.github.com/repos/cowlicks/dask/subscription","commits_url":"https://api.github.com/repos/cowlicks/dask/commits{/sha}","git_commits_url":"https://api.github.com/repos/cowlicks/dask/git/commits{/sha}","comments_url":"https://api.github.com/repos/cowlicks/dask/comments{/number}","issue_comment_url":"https://api.github.com/repos/cowlicks/dask/issues/comments{/number}","contents_url":"https://api.github.com/repos/cowlicks/dask/contents/{+path}","compare_url":"https://api.github.com/repos/cowlicks/dask/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cowlicks/dask/merges","archive_url":"https://api.github.com/repos/cowlicks/dask/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cowlicks/dask/downloads","issues_url":"https://api.github.com/repos/cowlicks/dask/issues{/number}","pulls_url":"https://api.github.com/repos/cowlicks/dask/pulls{/number}","milestones_url":"https://api.github.com/repos/cowlicks/dask/milestones{/number}","notifications_url":"https://api.github.com/repos/cowlicks/dask/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cowlicks/dask/labels{/name}","releases_url":"https://api.github.com/repos/cowlicks/dask/releases{/id}","created_at":"2015-03-11T02:01:22Z","updated_at":"2015-05-07T22:35:58Z","pushed_at":"2015-06-16T04:13:18Z","git_url":"git://github.com/cowlicks/dask.git","ssh_url":"git@github.com:cowlicks/dask.git","clone_url":"https://github.com/cowlicks/dask.git","svn_url":"https://github.com/cowlicks/dask","homepage":"http://dask.pydata.org","size":5870,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ContinuumIO:master","ref":"master","sha":"4e38d47ca50bec6ba33e8701a208bf8a8ae0fdd5","user":{"login":"ContinuumIO","id":1158637,"avatar_url":"https://avatars.githubusercontent.com/u/1158637?v=3","gravatar_id":"","url":"https://api.github.com/users/ContinuumIO","html_url":"https://github.com/ContinuumIO","followers_url":"https://api.github.com/users/ContinuumIO/followers","following_url":"https://api.github.com/users/ContinuumIO/following{/other_user}","gists_url":"https://api.github.com/users/ContinuumIO/gists{/gist_id}","starred_url":"https://api.github.com/users/ContinuumIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ContinuumIO/subscriptions","organizations_url":"https://api.github.com/users/ContinuumIO/orgs","repos_url":"https://api.github.com/users/ContinuumIO/repos","events_url":"https://api.github.com/users/ContinuumIO/events{/privacy}","received_events_url":"https://api.github.com/users/ContinuumIO/received_events","type":"Organization","site_admin":false},"repo":{"id":28782747,"name":"dask","full_name":"ContinuumIO/dask","owner":{"login":"ContinuumIO","id":1158637,"avatar_url":"https://avatars.githubusercontent.com/u/1158637?v=3","gravatar_id":"","url":"https://api.github.com/users/ContinuumIO","html_url":"https://github.com/ContinuumIO","followers_url":"https://api.github.com/users/ContinuumIO/followers","following_url":"https://api.github.com/users/ContinuumIO/following{/other_user}","gists_url":"https://api.github.com/users/ContinuumIO/gists{/gist_id}","starred_url":"https://api.github.com/users/ContinuumIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ContinuumIO/subscriptions","organizations_url":"https://api.github.com/users/ContinuumIO/orgs","repos_url":"https://api.github.com/users/ContinuumIO/repos","events_url":"https://api.github.com/users/ContinuumIO/events{/privacy}","received_events_url":"https://api.github.com/users/ContinuumIO/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ContinuumIO/dask","description":"Task scheduling and blocked algorithms for parallel processing","fork":false,"url":"https://api.github.com/repos/ContinuumIO/dask","forks_url":"https://api.github.com/repos/ContinuumIO/dask/forks","keys_url":"https://api.github.com/repos/ContinuumIO/dask/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ContinuumIO/dask/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ContinuumIO/dask/teams","hooks_url":"https://api.github.com/repos/ContinuumIO/dask/hooks","issue_events_url":"https://api.github.com/repos/ContinuumIO/dask/issues/events{/number}","events_url":"https://api.github.com/repos/ContinuumIO/dask/events","assignees_url":"https://api.github.com/repos/ContinuumIO/dask/assignees{/user}","branches_url":"https://api.github.com/repos/ContinuumIO/dask/branches{/branch}","tags_url":"https://api.github.com/repos/ContinuumIO/dask/tags","blobs_url":"https://api.github.com/repos/ContinuumIO/dask/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ContinuumIO/dask/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ContinuumIO/dask/git/refs{/sha}","trees_url":"https://api.github.com/repos/ContinuumIO/dask/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ContinuumIO/dask/statuses/{sha}","languages_url":"https://api.github.com/repos/ContinuumIO/dask/languages","stargazers_url":"https://api.github.com/repos/ContinuumIO/dask/stargazers","contributors_url":"https://api.github.com/repos/ContinuumIO/dask/contributors","subscribers_url":"https://api.github.com/repos/ContinuumIO/dask/subscribers","subscription_url":"https://api.github.com/repos/ContinuumIO/dask/subscription","commits_url":"https://api.github.com/repos/ContinuumIO/dask/commits{/sha}","git_commits_url":"https://api.github.com/repos/ContinuumIO/dask/git/commits{/sha}","comments_url":"https://api.github.com/repos/ContinuumIO/dask/comments{/number}","issue_comment_url":"https://api.github.com/repos/ContinuumIO/dask/issues/comments{/number}","contents_url":"https://api.github.com/repos/ContinuumIO/dask/contents/{+path}","compare_url":"https://api.github.com/repos/ContinuumIO/dask/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ContinuumIO/dask/merges","archive_url":"https://api.github.com/repos/ContinuumIO/dask/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ContinuumIO/dask/downloads","issues_url":"https://api.github.com/repos/ContinuumIO/dask/issues{/number}","pulls_url":"https://api.github.com/repos/ContinuumIO/dask/pulls{/number}","milestones_url":"https://api.github.com/repos/ContinuumIO/dask/milestones{/number}","notifications_url":"https://api.github.com/repos/ContinuumIO/dask/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ContinuumIO/dask/labels{/name}","releases_url":"https://api.github.com/repos/ContinuumIO/dask/releases{/id}","created_at":"2015-01-04T18:50:00Z","updated_at":"2015-06-16T13:41:13Z","pushed_at":"2015-06-16T16:40:09Z","git_url":"git://github.com/ContinuumIO/dask.git","ssh_url":"git@github.com:ContinuumIO/dask.git","clone_url":"https://github.com/ContinuumIO/dask.git","svn_url":"https://github.com/ContinuumIO/dask","homepage":"http://dask.pydata.org","size":8044,"stargazers_count":84,"watchers_count":84,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":40,"forks":22,"open_issues":40,"watchers":84,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ContinuumIO/dask/pulls/312"},"html":{"href":"https://github.com/ContinuumIO/dask/pull/312"},"issue":{"href":"https://api.github.com/repos/ContinuumIO/dask/issues/312"},"comments":{"href":"https://api.github.com/repos/ContinuumIO/dask/issues/312/comments"},"review_comments":{"href":"https://api.github.com/repos/ContinuumIO/dask/pulls/312/comments"},"review_comment":{"href":"https://api.github.com/repos/ContinuumIO/dask/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ContinuumIO/dask/pulls/312/commits"},"statuses":{"href":"https://api.github.com/repos/ContinuumIO/dask/statuses/a9be4b9e6419936136d2b0944eeadfa143ef6826"}}}}