{"action":"created","comment":{"url":"https://api.github.com/repos/biocore/scikit-bio/pulls/comments/32886936","id":32886936,"diff_hunk":"@@ -180,37 +334,128 @@ def metadata(self):\n         >>> s.metadata\n         {'abc': 123}\n \n+        Delete metadata:\n+\n+        >>> s.has_metadata()\n+        True\n+        >>> del s.metadata\n+        >>> s.metadata\n+        {}\n+        >>> s.has_metadata()\n+        False\n+\n         \"\"\"\n+        if self._metadata is None:\n+            # not using setter to avoid copy\n+            self._metadata = {}\n         return self._metadata\n \n     @metadata.setter\n     def metadata(self, metadata):\n         if not isinstance(metadata, dict):\n             raise TypeError(\"metadata must be a dict\")\n-        self._metadata = metadata\n+        # shallow copy\n+        self._metadata = metadata.copy()\n+\n+    @metadata.deleter\n+    def metadata(self):\n+        del self._metadata","path":"skbio/sequence/_sequence.py","position":277,"original_position":277,"commit_id":"85a877a93de2ddd733480fde180a94008dc6c20e","original_commit_id":"85a877a93de2ddd733480fde180a94008dc6c20e","user":{"login":"jairideout","id":1847232,"avatar_url":"https://avatars.githubusercontent.com/u/1847232?v=3","gravatar_id":"","url":"https://api.github.com/users/jairideout","html_url":"https://github.com/jairideout","followers_url":"https://api.github.com/users/jairideout/followers","following_url":"https://api.github.com/users/jairideout/following{/other_user}","gists_url":"https://api.github.com/users/jairideout/gists{/gist_id}","starred_url":"https://api.github.com/users/jairideout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jairideout/subscriptions","organizations_url":"https://api.github.com/users/jairideout/orgs","repos_url":"https://api.github.com/users/jairideout/repos","events_url":"https://api.github.com/users/jairideout/events{/privacy}","received_events_url":"https://api.github.com/users/jairideout/received_events","type":"User","site_admin":false},"body":"fixed","created_at":"2015-06-20T18:53:40Z","updated_at":"2015-06-20T18:53:40Z","html_url":"https://github.com/biocore/scikit-bio/pull/954#discussion_r32886936","pull_request_url":"https://api.github.com/repos/biocore/scikit-bio/pulls/954","_links":{"self":{"href":"https://api.github.com/repos/biocore/scikit-bio/pulls/comments/32886936"},"html":{"href":"https://github.com/biocore/scikit-bio/pull/954#discussion_r32886936"},"pull_request":{"href":"https://api.github.com/repos/biocore/scikit-bio/pulls/954"}}},"pull_request":{"url":"https://api.github.com/repos/biocore/scikit-bio/pulls/954","id":38059921,"html_url":"https://github.com/biocore/scikit-bio/pull/954","diff_url":"https://github.com/biocore/scikit-bio/pull/954.diff","patch_url":"https://github.com/biocore/scikit-bio/pull/954.patch","issue_url":"https://api.github.com/repos/biocore/scikit-bio/issues/954","number":954,"state":"open","locked":false,"title":"ENH: add setters/deleters for Sequence.metadata/positional_metadata","user":{"login":"jairideout","id":1847232,"avatar_url":"https://avatars.githubusercontent.com/u/1847232?v=3","gravatar_id":"","url":"https://api.github.com/users/jairideout","html_url":"https://github.com/jairideout","followers_url":"https://api.github.com/users/jairideout/followers","following_url":"https://api.github.com/users/jairideout/following{/other_user}","gists_url":"https://api.github.com/users/jairideout/gists{/gist_id}","starred_url":"https://api.github.com/users/jairideout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jairideout/subscriptions","organizations_url":"https://api.github.com/users/jairideout/orgs","repos_url":"https://api.github.com/users/jairideout/repos","events_url":"https://api.github.com/users/jairideout/events{/privacy}","received_events_url":"https://api.github.com/users/jairideout/received_events","type":"User","site_admin":false},"body":"Other changes:\r\n  - Added shallow copying of metadata/positional metadata and docs describing this behavior.\r\n  - Positional metadata index is now always set to ``np.arange(len(self))``.\r\n  - Added ``skbio.util.assert_data_frame_almost_equal`` and updated unit tests to use it.\r\n\r\nAddress part of #949. Fixes #948.","created_at":"2015-06-18T22:25:51Z","updated_at":"2015-06-20T18:53:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c1b2e1e59e77f90046371cf091e9de739ef55c87","assignee":null,"milestone":{"url":"https://api.github.com/repos/biocore/scikit-bio/milestones/11","html_url":"https://github.com/biocore/scikit-bio/milestones/0.4.0:%20Beta%20Release","labels_url":"https://api.github.com/repos/biocore/scikit-bio/milestones/11/labels","id":802955,"number":11,"title":"0.4.0: Beta Release","description":"Initial beta release to correspond with SciPy 2015. Release includes API that is marked stable, experimental (unstable), and deprecated.","creator":{"login":"ebolyen","id":3976804,"avatar_url":"https://avatars.githubusercontent.com/u/3976804?v=3","gravatar_id":"","url":"https://api.github.com/users/ebolyen","html_url":"https://github.com/ebolyen","followers_url":"https://api.github.com/users/ebolyen/followers","following_url":"https://api.github.com/users/ebolyen/following{/other_user}","gists_url":"https://api.github.com/users/ebolyen/gists{/gist_id}","starred_url":"https://api.github.com/users/ebolyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebolyen/subscriptions","organizations_url":"https://api.github.com/users/ebolyen/orgs","repos_url":"https://api.github.com/users/ebolyen/repos","events_url":"https://api.github.com/users/ebolyen/events{/privacy}","received_events_url":"https://api.github.com/users/ebolyen/received_events","type":"User","site_admin":false},"open_issues":27,"closed_issues":4,"state":"open","created_at":"2014-09-25T17:43:20Z","updated_at":"2015-06-19T15:28:08Z","due_on":"2015-06-30T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/biocore/scikit-bio/pulls/954/commits","review_comments_url":"https://api.github.com/repos/biocore/scikit-bio/pulls/954/comments","review_comment_url":"https://api.github.com/repos/biocore/scikit-bio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/biocore/scikit-bio/issues/954/comments","statuses_url":"https://api.github.com/repos/biocore/scikit-bio/statuses/85a877a93de2ddd733480fde180a94008dc6c20e","head":{"label":"jairideout:issue-949-positional-metadata","ref":"issue-949-positional-metadata","sha":"85a877a93de2ddd733480fde180a94008dc6c20e","user":{"login":"jairideout","id":1847232,"avatar_url":"https://avatars.githubusercontent.com/u/1847232?v=3","gravatar_id":"","url":"https://api.github.com/users/jairideout","html_url":"https://github.com/jairideout","followers_url":"https://api.github.com/users/jairideout/followers","following_url":"https://api.github.com/users/jairideout/following{/other_user}","gists_url":"https://api.github.com/users/jairideout/gists{/gist_id}","starred_url":"https://api.github.com/users/jairideout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jairideout/subscriptions","organizations_url":"https://api.github.com/users/jairideout/orgs","repos_url":"https://api.github.com/users/jairideout/repos","events_url":"https://api.github.com/users/jairideout/events{/privacy}","received_events_url":"https://api.github.com/users/jairideout/received_events","type":"User","site_admin":false},"repo":{"id":15536482,"name":"scikit-bio","full_name":"jairideout/scikit-bio","owner":{"login":"jairideout","id":1847232,"avatar_url":"https://avatars.githubusercontent.com/u/1847232?v=3","gravatar_id":"","url":"https://api.github.com/users/jairideout","html_url":"https://github.com/jairideout","followers_url":"https://api.github.com/users/jairideout/followers","following_url":"https://api.github.com/users/jairideout/following{/other_user}","gists_url":"https://api.github.com/users/jairideout/gists{/gist_id}","starred_url":"https://api.github.com/users/jairideout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jairideout/subscriptions","organizations_url":"https://api.github.com/users/jairideout/orgs","repos_url":"https://api.github.com/users/jairideout/repos","events_url":"https://api.github.com/users/jairideout/events{/privacy}","received_events_url":"https://api.github.com/users/jairideout/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jairideout/scikit-bio","description":"Core objects, functions and statistics for working with biological data in Python.","fork":true,"url":"https://api.github.com/repos/jairideout/scikit-bio","forks_url":"https://api.github.com/repos/jairideout/scikit-bio/forks","keys_url":"https://api.github.com/repos/jairideout/scikit-bio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jairideout/scikit-bio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jairideout/scikit-bio/teams","hooks_url":"https://api.github.com/repos/jairideout/scikit-bio/hooks","issue_events_url":"https://api.github.com/repos/jairideout/scikit-bio/issues/events{/number}","events_url":"https://api.github.com/repos/jairideout/scikit-bio/events","assignees_url":"https://api.github.com/repos/jairideout/scikit-bio/assignees{/user}","branches_url":"https://api.github.com/repos/jairideout/scikit-bio/branches{/branch}","tags_url":"https://api.github.com/repos/jairideout/scikit-bio/tags","blobs_url":"https://api.github.com/repos/jairideout/scikit-bio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jairideout/scikit-bio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jairideout/scikit-bio/git/refs{/sha}","trees_url":"https://api.github.com/repos/jairideout/scikit-bio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jairideout/scikit-bio/statuses/{sha}","languages_url":"https://api.github.com/repos/jairideout/scikit-bio/languages","stargazers_url":"https://api.github.com/repos/jairideout/scikit-bio/stargazers","contributors_url":"https://api.github.com/repos/jairideout/scikit-bio/contributors","subscribers_url":"https://api.github.com/repos/jairideout/scikit-bio/subscribers","subscription_url":"https://api.github.com/repos/jairideout/scikit-bio/subscription","commits_url":"https://api.github.com/repos/jairideout/scikit-bio/commits{/sha}","git_commits_url":"https://api.github.com/repos/jairideout/scikit-bio/git/commits{/sha}","comments_url":"https://api.github.com/repos/jairideout/scikit-bio/comments{/number}","issue_comment_url":"https://api.github.com/repos/jairideout/scikit-bio/issues/comments{/number}","contents_url":"https://api.github.com/repos/jairideout/scikit-bio/contents/{+path}","compare_url":"https://api.github.com/repos/jairideout/scikit-bio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jairideout/scikit-bio/merges","archive_url":"https://api.github.com/repos/jairideout/scikit-bio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jairideout/scikit-bio/downloads","issues_url":"https://api.github.com/repos/jairideout/scikit-bio/issues{/number}","pulls_url":"https://api.github.com/repos/jairideout/scikit-bio/pulls{/number}","milestones_url":"https://api.github.com/repos/jairideout/scikit-bio/milestones{/number}","notifications_url":"https://api.github.com/repos/jairideout/scikit-bio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jairideout/scikit-bio/labels{/name}","releases_url":"https://api.github.com/repos/jairideout/scikit-bio/releases{/id}","created_at":"2013-12-30T20:58:41Z","updated_at":"2014-07-11T04:59:27Z","pushed_at":"2015-06-20T01:08:56Z","git_url":"git://github.com/jairideout/scikit-bio.git","ssh_url":"git@github.com:jairideout/scikit-bio.git","clone_url":"https://github.com/jairideout/scikit-bio.git","svn_url":"https://github.com/jairideout/scikit-bio","homepage":"https://github.com/biocore/scikit-bio","size":21476,"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":"biocore:master","ref":"master","sha":"f9b507d477d183e12d24b47abebd514218526ec5","user":{"login":"biocore","id":6241857,"avatar_url":"https://avatars.githubusercontent.com/u/6241857?v=3","gravatar_id":"","url":"https://api.github.com/users/biocore","html_url":"https://github.com/biocore","followers_url":"https://api.github.com/users/biocore/followers","following_url":"https://api.github.com/users/biocore/following{/other_user}","gists_url":"https://api.github.com/users/biocore/gists{/gist_id}","starred_url":"https://api.github.com/users/biocore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biocore/subscriptions","organizations_url":"https://api.github.com/users/biocore/orgs","repos_url":"https://api.github.com/users/biocore/repos","events_url":"https://api.github.com/users/biocore/events{/privacy}","received_events_url":"https://api.github.com/users/biocore/received_events","type":"Organization","site_admin":false},"repo":{"id":15168264,"name":"scikit-bio","full_name":"biocore/scikit-bio","owner":{"login":"biocore","id":6241857,"avatar_url":"https://avatars.githubusercontent.com/u/6241857?v=3","gravatar_id":"","url":"https://api.github.com/users/biocore","html_url":"https://github.com/biocore","followers_url":"https://api.github.com/users/biocore/followers","following_url":"https://api.github.com/users/biocore/following{/other_user}","gists_url":"https://api.github.com/users/biocore/gists{/gist_id}","starred_url":"https://api.github.com/users/biocore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biocore/subscriptions","organizations_url":"https://api.github.com/users/biocore/orgs","repos_url":"https://api.github.com/users/biocore/repos","events_url":"https://api.github.com/users/biocore/events{/privacy}","received_events_url":"https://api.github.com/users/biocore/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/biocore/scikit-bio","description":"Core objects, functions and statistics for working with biological data in Python.","fork":false,"url":"https://api.github.com/repos/biocore/scikit-bio","forks_url":"https://api.github.com/repos/biocore/scikit-bio/forks","keys_url":"https://api.github.com/repos/biocore/scikit-bio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/biocore/scikit-bio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/biocore/scikit-bio/teams","hooks_url":"https://api.github.com/repos/biocore/scikit-bio/hooks","issue_events_url":"https://api.github.com/repos/biocore/scikit-bio/issues/events{/number}","events_url":"https://api.github.com/repos/biocore/scikit-bio/events","assignees_url":"https://api.github.com/repos/biocore/scikit-bio/assignees{/user}","branches_url":"https://api.github.com/repos/biocore/scikit-bio/branches{/branch}","tags_url":"https://api.github.com/repos/biocore/scikit-bio/tags","blobs_url":"https://api.github.com/repos/biocore/scikit-bio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/biocore/scikit-bio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/biocore/scikit-bio/git/refs{/sha}","trees_url":"https://api.github.com/repos/biocore/scikit-bio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/biocore/scikit-bio/statuses/{sha}","languages_url":"https://api.github.com/repos/biocore/scikit-bio/languages","stargazers_url":"https://api.github.com/repos/biocore/scikit-bio/stargazers","contributors_url":"https://api.github.com/repos/biocore/scikit-bio/contributors","subscribers_url":"https://api.github.com/repos/biocore/scikit-bio/subscribers","subscription_url":"https://api.github.com/repos/biocore/scikit-bio/subscription","commits_url":"https://api.github.com/repos/biocore/scikit-bio/commits{/sha}","git_commits_url":"https://api.github.com/repos/biocore/scikit-bio/git/commits{/sha}","comments_url":"https://api.github.com/repos/biocore/scikit-bio/comments{/number}","issue_comment_url":"https://api.github.com/repos/biocore/scikit-bio/issues/comments{/number}","contents_url":"https://api.github.com/repos/biocore/scikit-bio/contents/{+path}","compare_url":"https://api.github.com/repos/biocore/scikit-bio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/biocore/scikit-bio/merges","archive_url":"https://api.github.com/repos/biocore/scikit-bio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/biocore/scikit-bio/downloads","issues_url":"https://api.github.com/repos/biocore/scikit-bio/issues{/number}","pulls_url":"https://api.github.com/repos/biocore/scikit-bio/pulls{/number}","milestones_url":"https://api.github.com/repos/biocore/scikit-bio/milestones{/number}","notifications_url":"https://api.github.com/repos/biocore/scikit-bio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/biocore/scikit-bio/labels{/name}","releases_url":"https://api.github.com/repos/biocore/scikit-bio/releases{/id}","created_at":"2013-12-13T16:24:41Z","updated_at":"2015-06-19T09:00:55Z","pushed_at":"2015-06-20T01:08:56Z","git_url":"git://github.com/biocore/scikit-bio.git","ssh_url":"git@github.com:biocore/scikit-bio.git","clone_url":"https://github.com/biocore/scikit-bio.git","svn_url":"https://github.com/biocore/scikit-bio","homepage":"http://scikit-bio.org","size":38879,"stargazers_count":134,"watchers_count":134,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":67,"mirror_url":null,"open_issues_count":133,"forks":67,"open_issues":133,"watchers":134,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/biocore/scikit-bio/pulls/954"},"html":{"href":"https://github.com/biocore/scikit-bio/pull/954"},"issue":{"href":"https://api.github.com/repos/biocore/scikit-bio/issues/954"},"comments":{"href":"https://api.github.com/repos/biocore/scikit-bio/issues/954/comments"},"review_comments":{"href":"https://api.github.com/repos/biocore/scikit-bio/pulls/954/comments"},"review_comment":{"href":"https://api.github.com/repos/biocore/scikit-bio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/biocore/scikit-bio/pulls/954/commits"},"statuses":{"href":"https://api.github.com/repos/biocore/scikit-bio/statuses/85a877a93de2ddd733480fde180a94008dc6c20e"}}}}