{"action":"created","comment":{"url":"https://api.github.com/repos/ContinuumIO/dask/pulls/comments/27533893","id":27533893,"diff_hunk":"@@ -0,0 +1,134 @@\n+from __future__ import absolute_import\n+from itertools import count\n+\n+import numpy as np\n+\n+from .core import Array\n+\n+linspace_names = ('linspace-%d' % i for i in count(1))\n+arange_names = ('arange-%d' % i for i in count(1))\n+\n+\n+def _get_blocksizes(num, blocksize):\n+    # compute blockdims\n+    remainder = (num % blocksize,)\n+    if remainder == (0,):\n+        remainder = tuple()\n+    blocksizes = ((blocksize,) * int(num // blocksize)) + remainder\n+    return blocksizes\n+\n+\n+def linspace(start, stop, blocksize, num=50):","path":"dask/array/creation.py","position":21,"original_position":21,"commit_id":"5c42f3d1f5c1091a15cac7820863b03d2aae322c","original_commit_id":"5c42f3d1f5c1091a15cac7820863b03d2aae322c","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":"I often use (and see others) `np.linspace(1, 10, 100)`, so I think that the ordering might be important.","created_at":"2015-03-31T23:41:47Z","updated_at":"2015-03-31T23:41:47Z","html_url":"https://github.com/ContinuumIO/dask/pull/115#discussion_r27533893","pull_request_url":"https://api.github.com/repos/ContinuumIO/dask/pulls/115","_links":{"self":{"href":"https://api.github.com/repos/ContinuumIO/dask/pulls/comments/27533893"},"html":{"href":"https://github.com/ContinuumIO/dask/pull/115#discussion_r27533893"},"pull_request":{"href":"https://api.github.com/repos/ContinuumIO/dask/pulls/115"}}},"pull_request":{"url":"https://api.github.com/repos/ContinuumIO/dask/pulls/115","id":32342274,"html_url":"https://github.com/ContinuumIO/dask/pull/115","diff_url":"https://github.com/ContinuumIO/dask/pull/115.diff","patch_url":"https://github.com/ContinuumIO/dask/pull/115.patch","issue_url":"https://api.github.com/repos/ContinuumIO/dask/issues/115","number":115,"state":"open","locked":false,"title":"Add linspace and arange functions.","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":"Add linspace and arange dask.array creation functions.","created_at":"2015-03-31T16:53:26Z","updated_at":"2015-03-31T23:41:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"94b4b67bc117444238f5c22db87d82d6db53eddf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ContinuumIO/dask/pulls/115/commits","review_comments_url":"https://api.github.com/repos/ContinuumIO/dask/pulls/115/comments","review_comment_url":"https://api.github.com/repos/ContinuumIO/dask/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ContinuumIO/dask/issues/115/comments","statuses_url":"https://api.github.com/repos/ContinuumIO/dask/statuses/5c42f3d1f5c1091a15cac7820863b03d2aae322c","head":{"label":"cowlicks:linspace-arange","ref":"linspace-arange","sha":"5c42f3d1f5c1091a15cac7820863b03d2aae322c","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-03-30T22:12:19Z","pushed_at":"2015-03-31T20:15:49Z","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":1230,"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":"2561d782ef4a79b222bd48c05cc0ce48020959c9","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":"Minimal task scheduling abstraction","fork":true,"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-03-31T15:10:25Z","pushed_at":"2015-03-31T21:44:23Z","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":4631,"stargazers_count":21,"watchers_count":21,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":21,"forks":9,"open_issues":21,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ContinuumIO/dask/pulls/115"},"html":{"href":"https://github.com/ContinuumIO/dask/pull/115"},"issue":{"href":"https://api.github.com/repos/ContinuumIO/dask/issues/115"},"comments":{"href":"https://api.github.com/repos/ContinuumIO/dask/issues/115/comments"},"review_comments":{"href":"https://api.github.com/repos/ContinuumIO/dask/pulls/115/comments"},"review_comment":{"href":"https://api.github.com/repos/ContinuumIO/dask/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ContinuumIO/dask/pulls/115/commits"},"statuses":{"href":"https://api.github.com/repos/ContinuumIO/dask/statuses/5c42f3d1f5c1091a15cac7820863b03d2aae322c"}}}}