{"action":"created","comment":{"url":"https://api.github.com/repos/liam2/larray/pulls/comments/144309048","pull_request_review_id":68947757,"id":144309048,"diff_hunk":"@@ -274,6 +274,64 @@ def extend(self, labels):\n         labels = self._length + other._length if self.iswildcard else np.append(self.labels, other.labels)\n         return Axis(labels, self.name)\n \n+    def split(self, sep='_', names=None, regex=None, return_labels=False):\n+        \"\"\"Split axis and returns a list of Axis.\n+\n+        Parameters\n+        ----------\n+        sep : str, optional\n+            Delimiter to use for splitting. Defaults to '_'.\n+\n+            When `regex` is provided, the delimiter is only used on `names` if given as one string or on axis name if\n+            `names` is None.\n+        names : str or list of str, optional\n+            Names of resulting axes. Defaults to None.\n+        regex : str, optional\n+            Use regex instead of delimiter to split labels. Defaults to None.\n+        labels : bool, optional\n+            Whether or not split labels must be returned (as a tuple of tuples). These labels are suitable for indexing\n+            via array.points[labels]. Defaults to False.","path":"larray/core/axis.py","position":20,"original_position":20,"commit_id":"5b431869953684160d3d7cf1657e4b4fe4afbca4","original_commit_id":"3d2c68876ef7bb7e7018e632586350aa51a8f03e","user":{"login":"gdementen","id":832092,"avatar_url":"https://avatars3.githubusercontent.com/u/832092?v=4","gravatar_id":"","url":"https://api.github.com/users/gdementen","html_url":"https://github.com/gdementen","followers_url":"https://api.github.com/users/gdementen/followers","following_url":"https://api.github.com/users/gdementen/following{/other_user}","gists_url":"https://api.github.com/users/gdementen/gists{/gist_id}","starred_url":"https://api.github.com/users/gdementen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdementen/subscriptions","organizations_url":"https://api.github.com/users/gdementen/orgs","repos_url":"https://api.github.com/users/gdementen/repos","events_url":"https://api.github.com/users/gdementen/events{/privacy}","received_events_url":"https://api.github.com/users/gdementen/received_events","type":"User","site_admin":false},"body":"LArray.split_axes? I don't see a use case. In AxisCollection.split_axes, that **might** make the code of LArray.split_axes nicer/smaller, but I doubt the array.points[] = value with multiple labels (for the several axes) will work. I haven't thought much about that though.","created_at":"2017-10-12T14:38:18Z","updated_at":"2017-10-12T14:38:18Z","html_url":"https://github.com/liam2/larray/pull/378#discussion_r144309048","pull_request_url":"https://api.github.com/repos/liam2/larray/pulls/378","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/liam2/larray/pulls/comments/144309048"},"html":{"href":"https://github.com/liam2/larray/pull/378#discussion_r144309048"},"pull_request":{"href":"https://api.github.com/repos/liam2/larray/pulls/378"}},"in_reply_to_id":144307931},"pull_request":{"url":"https://api.github.com/repos/liam2/larray/pulls/378","id":137958101,"html_url":"https://github.com/liam2/larray/pull/378","diff_url":"https://github.com/liam2/larray/pull/378.diff","patch_url":"https://github.com/liam2/larray/pull/378.patch","issue_url":"https://api.github.com/repos/liam2/larray/issues/378","number":378,"state":"open","locked":false,"title":"fixed array.split_axis when combined labels are not sorted by the first part then second part (closes #364)","user":{"login":"gdementen","id":832092,"avatar_url":"https://avatars3.githubusercontent.com/u/832092?v=4","gravatar_id":"","url":"https://api.github.com/users/gdementen","html_url":"https://github.com/gdementen","followers_url":"https://api.github.com/users/gdementen/followers","following_url":"https://api.github.com/users/gdementen/following{/other_user}","gists_url":"https://api.github.com/users/gdementen/gists{/gist_id}","starred_url":"https://api.github.com/users/gdementen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdementen/subscriptions","organizations_url":"https://api.github.com/users/gdementen/orgs","repos_url":"https://api.github.com/users/gdementen/repos","events_url":"https://api.github.com/users/gdementen/events{/privacy}","received_events_url":"https://api.github.com/users/gdementen/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-08-28T14:27:18Z","updated_at":"2017-10-12T14:38:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ba2f5e078bf3e2488f9a53dc0157b04c10d2f462","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":{"url":"https://api.github.com/repos/liam2/larray/milestones/7","html_url":"https://github.com/liam2/larray/milestone/7","labels_url":"https://api.github.com/repos/liam2/larray/milestones/7/labels","id":2723220,"number":7,"title":"0.26","description":"","creator":{"login":"alixdamman","id":23628987,"avatar_url":"https://avatars0.githubusercontent.com/u/23628987?v=4","gravatar_id":"","url":"https://api.github.com/users/alixdamman","html_url":"https://github.com/alixdamman","followers_url":"https://api.github.com/users/alixdamman/followers","following_url":"https://api.github.com/users/alixdamman/following{/other_user}","gists_url":"https://api.github.com/users/alixdamman/gists{/gist_id}","starred_url":"https://api.github.com/users/alixdamman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alixdamman/subscriptions","organizations_url":"https://api.github.com/users/alixdamman/orgs","repos_url":"https://api.github.com/users/alixdamman/repos","events_url":"https://api.github.com/users/alixdamman/events{/privacy}","received_events_url":"https://api.github.com/users/alixdamman/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":35,"state":"open","created_at":"2017-08-25T12:25:33Z","updated_at":"2017-10-12T08:15:18Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/liam2/larray/pulls/378/commits","review_comments_url":"https://api.github.com/repos/liam2/larray/pulls/378/comments","review_comment_url":"https://api.github.com/repos/liam2/larray/pulls/comments{/number}","comments_url":"https://api.github.com/repos/liam2/larray/issues/378/comments","statuses_url":"https://api.github.com/repos/liam2/larray/statuses/5b431869953684160d3d7cf1657e4b4fe4afbca4","head":{"label":"gdementen:split_axis_fix","ref":"split_axis_fix","sha":"5b431869953684160d3d7cf1657e4b4fe4afbca4","user":{"login":"gdementen","id":832092,"avatar_url":"https://avatars3.githubusercontent.com/u/832092?v=4","gravatar_id":"","url":"https://api.github.com/users/gdementen","html_url":"https://github.com/gdementen","followers_url":"https://api.github.com/users/gdementen/followers","following_url":"https://api.github.com/users/gdementen/following{/other_user}","gists_url":"https://api.github.com/users/gdementen/gists{/gist_id}","starred_url":"https://api.github.com/users/gdementen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdementen/subscriptions","organizations_url":"https://api.github.com/users/gdementen/orgs","repos_url":"https://api.github.com/users/gdementen/repos","events_url":"https://api.github.com/users/gdementen/events{/privacy}","received_events_url":"https://api.github.com/users/gdementen/received_events","type":"User","site_admin":false},"repo":{"id":79429776,"name":"larray","full_name":"gdementen/larray","owner":{"login":"gdementen","id":832092,"avatar_url":"https://avatars3.githubusercontent.com/u/832092?v=4","gravatar_id":"","url":"https://api.github.com/users/gdementen","html_url":"https://github.com/gdementen","followers_url":"https://api.github.com/users/gdementen/followers","following_url":"https://api.github.com/users/gdementen/following{/other_user}","gists_url":"https://api.github.com/users/gdementen/gists{/gist_id}","starred_url":"https://api.github.com/users/gdementen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdementen/subscriptions","organizations_url":"https://api.github.com/users/gdementen/orgs","repos_url":"https://api.github.com/users/gdementen/repos","events_url":"https://api.github.com/users/gdementen/events{/privacy}","received_events_url":"https://api.github.com/users/gdementen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gdementen/larray","description":null,"fork":true,"url":"https://api.github.com/repos/gdementen/larray","forks_url":"https://api.github.com/repos/gdementen/larray/forks","keys_url":"https://api.github.com/repos/gdementen/larray/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gdementen/larray/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gdementen/larray/teams","hooks_url":"https://api.github.com/repos/gdementen/larray/hooks","issue_events_url":"https://api.github.com/repos/gdementen/larray/issues/events{/number}","events_url":"https://api.github.com/repos/gdementen/larray/events","assignees_url":"https://api.github.com/repos/gdementen/larray/assignees{/user}","branches_url":"https://api.github.com/repos/gdementen/larray/branches{/branch}","tags_url":"https://api.github.com/repos/gdementen/larray/tags","blobs_url":"https://api.github.com/repos/gdementen/larray/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gdementen/larray/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gdementen/larray/git/refs{/sha}","trees_url":"https://api.github.com/repos/gdementen/larray/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gdementen/larray/statuses/{sha}","languages_url":"https://api.github.com/repos/gdementen/larray/languages","stargazers_url":"https://api.github.com/repos/gdementen/larray/stargazers","contributors_url":"https://api.github.com/repos/gdementen/larray/contributors","subscribers_url":"https://api.github.com/repos/gdementen/larray/subscribers","subscription_url":"https://api.github.com/repos/gdementen/larray/subscription","commits_url":"https://api.github.com/repos/gdementen/larray/commits{/sha}","git_commits_url":"https://api.github.com/repos/gdementen/larray/git/commits{/sha}","comments_url":"https://api.github.com/repos/gdementen/larray/comments{/number}","issue_comment_url":"https://api.github.com/repos/gdementen/larray/issues/comments{/number}","contents_url":"https://api.github.com/repos/gdementen/larray/contents/{+path}","compare_url":"https://api.github.com/repos/gdementen/larray/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gdementen/larray/merges","archive_url":"https://api.github.com/repos/gdementen/larray/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gdementen/larray/downloads","issues_url":"https://api.github.com/repos/gdementen/larray/issues{/number}","pulls_url":"https://api.github.com/repos/gdementen/larray/pulls{/number}","milestones_url":"https://api.github.com/repos/gdementen/larray/milestones{/number}","notifications_url":"https://api.github.com/repos/gdementen/larray/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gdementen/larray/labels{/name}","releases_url":"https://api.github.com/repos/gdementen/larray/releases{/id}","deployments_url":"https://api.github.com/repos/gdementen/larray/deployments","created_at":"2017-01-19T07:59:59Z","updated_at":"2017-01-19T08:00:01Z","pushed_at":"2017-10-12T14:10:11Z","git_url":"git://github.com/gdementen/larray.git","ssh_url":"git@github.com:gdementen/larray.git","clone_url":"https://github.com/gdementen/larray.git","svn_url":"https://github.com/gdementen/larray","homepage":null,"size":6098,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"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":"liam2:master","ref":"master","sha":"8d046cf05b64e485322fa371b271d8f93a6846cf","user":{"login":"liam2","id":4981653,"avatar_url":"https://avatars0.githubusercontent.com/u/4981653?v=4","gravatar_id":"","url":"https://api.github.com/users/liam2","html_url":"https://github.com/liam2","followers_url":"https://api.github.com/users/liam2/followers","following_url":"https://api.github.com/users/liam2/following{/other_user}","gists_url":"https://api.github.com/users/liam2/gists{/gist_id}","starred_url":"https://api.github.com/users/liam2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liam2/subscriptions","organizations_url":"https://api.github.com/users/liam2/orgs","repos_url":"https://api.github.com/users/liam2/repos","events_url":"https://api.github.com/users/liam2/events{/privacy}","received_events_url":"https://api.github.com/users/liam2/received_events","type":"Organization","site_admin":false},"repo":{"id":16981067,"name":"larray","full_name":"liam2/larray","owner":{"login":"liam2","id":4981653,"avatar_url":"https://avatars0.githubusercontent.com/u/4981653?v=4","gravatar_id":"","url":"https://api.github.com/users/liam2","html_url":"https://github.com/liam2","followers_url":"https://api.github.com/users/liam2/followers","following_url":"https://api.github.com/users/liam2/following{/other_user}","gists_url":"https://api.github.com/users/liam2/gists{/gist_id}","starred_url":"https://api.github.com/users/liam2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liam2/subscriptions","organizations_url":"https://api.github.com/users/liam2/orgs","repos_url":"https://api.github.com/users/liam2/repos","events_url":"https://api.github.com/users/liam2/events{/privacy}","received_events_url":"https://api.github.com/users/liam2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/liam2/larray","description":"N-dimensional labelled arrays in Python","fork":false,"url":"https://api.github.com/repos/liam2/larray","forks_url":"https://api.github.com/repos/liam2/larray/forks","keys_url":"https://api.github.com/repos/liam2/larray/keys{/key_id}","collaborators_url":"https://api.github.com/repos/liam2/larray/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/liam2/larray/teams","hooks_url":"https://api.github.com/repos/liam2/larray/hooks","issue_events_url":"https://api.github.com/repos/liam2/larray/issues/events{/number}","events_url":"https://api.github.com/repos/liam2/larray/events","assignees_url":"https://api.github.com/repos/liam2/larray/assignees{/user}","branches_url":"https://api.github.com/repos/liam2/larray/branches{/branch}","tags_url":"https://api.github.com/repos/liam2/larray/tags","blobs_url":"https://api.github.com/repos/liam2/larray/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/liam2/larray/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/liam2/larray/git/refs{/sha}","trees_url":"https://api.github.com/repos/liam2/larray/git/trees{/sha}","statuses_url":"https://api.github.com/repos/liam2/larray/statuses/{sha}","languages_url":"https://api.github.com/repos/liam2/larray/languages","stargazers_url":"https://api.github.com/repos/liam2/larray/stargazers","contributors_url":"https://api.github.com/repos/liam2/larray/contributors","subscribers_url":"https://api.github.com/repos/liam2/larray/subscribers","subscription_url":"https://api.github.com/repos/liam2/larray/subscription","commits_url":"https://api.github.com/repos/liam2/larray/commits{/sha}","git_commits_url":"https://api.github.com/repos/liam2/larray/git/commits{/sha}","comments_url":"https://api.github.com/repos/liam2/larray/comments{/number}","issue_comment_url":"https://api.github.com/repos/liam2/larray/issues/comments{/number}","contents_url":"https://api.github.com/repos/liam2/larray/contents/{+path}","compare_url":"https://api.github.com/repos/liam2/larray/compare/{base}...{head}","merges_url":"https://api.github.com/repos/liam2/larray/merges","archive_url":"https://api.github.com/repos/liam2/larray/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/liam2/larray/downloads","issues_url":"https://api.github.com/repos/liam2/larray/issues{/number}","pulls_url":"https://api.github.com/repos/liam2/larray/pulls{/number}","milestones_url":"https://api.github.com/repos/liam2/larray/milestones{/number}","notifications_url":"https://api.github.com/repos/liam2/larray/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/liam2/larray/labels{/name}","releases_url":"https://api.github.com/repos/liam2/larray/releases{/id}","deployments_url":"https://api.github.com/repos/liam2/larray/deployments","created_at":"2014-02-19T10:38:43Z","updated_at":"2017-10-11T10:27:03Z","pushed_at":"2017-10-12T14:10:13Z","git_url":"git://github.com/liam2/larray.git","ssh_url":"git@github.com:liam2/larray.git","clone_url":"https://github.com/liam2/larray.git","svn_url":"https://github.com/liam2/larray","homepage":"https://larray.readthedocs.io/","size":6121,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":111,"forks":3,"open_issues":111,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/liam2/larray/pulls/378"},"html":{"href":"https://github.com/liam2/larray/pull/378"},"issue":{"href":"https://api.github.com/repos/liam2/larray/issues/378"},"comments":{"href":"https://api.github.com/repos/liam2/larray/issues/378/comments"},"review_comments":{"href":"https://api.github.com/repos/liam2/larray/pulls/378/comments"},"review_comment":{"href":"https://api.github.com/repos/liam2/larray/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/liam2/larray/pulls/378/commits"},"statuses":{"href":"https://api.github.com/repos/liam2/larray/statuses/5b431869953684160d3d7cf1657e4b4fe4afbca4"}},"author_association":"OWNER"}}
{"actor":{"display_login":"gdementen"}}