{"action":"created","comment":{"url":"https://api.github.com/repos/pgmpy/pgmpy/pulls/comments/52702387","id":52702387,"diff_hunk":"@@ -177,12 +171,11 @@ def moralize(self):\n \n         Examples\n         --------\n-        >>> from pgmpy.base import DirectedGraph\n         >>> G = DirectedGraph([('diff', 'grade'), ('intel', 'grade')])\n         >>> moral_graph = G.moralize()\n-        >>> moral_graph.edges()\n+        >>> moral_graph.edges() # doctest: +IGNORE_RESULT","path":"pgmpy/base/DirectedGraph.py","position":59,"original_position":59,"commit_id":"bfb8cef76997f9f92d5a047dd1d5af5439b99930","original_commit_id":"051fcf56107e7eda1dc066f7c208e19eae1cdf4e","user":{"login":"khalibartan","id":8940456,"avatar_url":"https://avatars.githubusercontent.com/u/8940456?v=3","gravatar_id":"","url":"https://api.github.com/users/khalibartan","html_url":"https://github.com/khalibartan","followers_url":"https://api.github.com/users/khalibartan/followers","following_url":"https://api.github.com/users/khalibartan/following{/other_user}","gists_url":"https://api.github.com/users/khalibartan/gists{/gist_id}","starred_url":"https://api.github.com/users/khalibartan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khalibartan/subscriptions","organizations_url":"https://api.github.com/users/khalibartan/orgs","repos_url":"https://api.github.com/users/khalibartan/repos","events_url":"https://api.github.com/users/khalibartan/events{/privacy}","received_events_url":"https://api.github.com/users/khalibartan/received_events","type":"User","site_admin":false},"body":"@nishnik Did you went through this link https://docs.python.org/2/library/doctest.html#unittest-api , I believe python provides a good doctest API, I'll also talk to someone at sympy and see how do they deal with doctests, will let you know on this thread. Till then you should go through the mentioned link.","created_at":"2016-02-12T03:27:52Z","updated_at":"2016-02-12T03:27:52Z","html_url":"https://github.com/pgmpy/pgmpy/pull/625#discussion_r52702387","pull_request_url":"https://api.github.com/repos/pgmpy/pgmpy/pulls/625","_links":{"self":{"href":"https://api.github.com/repos/pgmpy/pgmpy/pulls/comments/52702387"},"html":{"href":"https://github.com/pgmpy/pgmpy/pull/625#discussion_r52702387"},"pull_request":{"href":"https://api.github.com/repos/pgmpy/pgmpy/pulls/625"}}},"pull_request":{"url":"https://api.github.com/repos/pgmpy/pgmpy/pulls/625","id":58920717,"html_url":"https://github.com/pgmpy/pgmpy/pull/625","diff_url":"https://github.com/pgmpy/pgmpy/pull/625.diff","patch_url":"https://github.com/pgmpy/pgmpy/pull/625.patch","issue_url":"https://api.github.com/repos/pgmpy/pgmpy/issues/625","number":625,"state":"open","locked":false,"title":"Correcting docstrings","user":{"login":"nishnik","id":9252491,"avatar_url":"https://avatars.githubusercontent.com/u/9252491?v=3","gravatar_id":"","url":"https://api.github.com/users/nishnik","html_url":"https://github.com/nishnik","followers_url":"https://api.github.com/users/nishnik/followers","following_url":"https://api.github.com/users/nishnik/following{/other_user}","gists_url":"https://api.github.com/users/nishnik/gists{/gist_id}","starred_url":"https://api.github.com/users/nishnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nishnik/subscriptions","organizations_url":"https://api.github.com/users/nishnik/orgs","repos_url":"https://api.github.com/users/nishnik/repos","events_url":"https://api.github.com/users/nishnik/events{/privacy}","received_events_url":"https://api.github.com/users/nishnik/received_events","type":"User","site_admin":false},"body":"As per issue #581 .","created_at":"2016-02-10T17:03:43Z","updated_at":"2016-02-12T03:27:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"84ab9ebd19ca7135b0a81886f3fddd8c7b99db25","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pgmpy/pgmpy/pulls/625/commits","review_comments_url":"https://api.github.com/repos/pgmpy/pgmpy/pulls/625/comments","review_comment_url":"https://api.github.com/repos/pgmpy/pgmpy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pgmpy/pgmpy/issues/625/comments","statuses_url":"https://api.github.com/repos/pgmpy/pgmpy/statuses/bfb8cef76997f9f92d5a047dd1d5af5439b99930","head":{"label":"nishnik:fix_docstring","ref":"fix_docstring","sha":"bfb8cef76997f9f92d5a047dd1d5af5439b99930","user":{"login":"nishnik","id":9252491,"avatar_url":"https://avatars.githubusercontent.com/u/9252491?v=3","gravatar_id":"","url":"https://api.github.com/users/nishnik","html_url":"https://github.com/nishnik","followers_url":"https://api.github.com/users/nishnik/followers","following_url":"https://api.github.com/users/nishnik/following{/other_user}","gists_url":"https://api.github.com/users/nishnik/gists{/gist_id}","starred_url":"https://api.github.com/users/nishnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nishnik/subscriptions","organizations_url":"https://api.github.com/users/nishnik/orgs","repos_url":"https://api.github.com/users/nishnik/repos","events_url":"https://api.github.com/users/nishnik/events{/privacy}","received_events_url":"https://api.github.com/users/nishnik/received_events","type":"User","site_admin":false},"repo":{"id":51455188,"name":"pgmpy","full_name":"nishnik/pgmpy","owner":{"login":"nishnik","id":9252491,"avatar_url":"https://avatars.githubusercontent.com/u/9252491?v=3","gravatar_id":"","url":"https://api.github.com/users/nishnik","html_url":"https://github.com/nishnik","followers_url":"https://api.github.com/users/nishnik/followers","following_url":"https://api.github.com/users/nishnik/following{/other_user}","gists_url":"https://api.github.com/users/nishnik/gists{/gist_id}","starred_url":"https://api.github.com/users/nishnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nishnik/subscriptions","organizations_url":"https://api.github.com/users/nishnik/orgs","repos_url":"https://api.github.com/users/nishnik/repos","events_url":"https://api.github.com/users/nishnik/events{/privacy}","received_events_url":"https://api.github.com/users/nishnik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nishnik/pgmpy","description":"Python Library for Probabilistic Graphical Models","fork":true,"url":"https://api.github.com/repos/nishnik/pgmpy","forks_url":"https://api.github.com/repos/nishnik/pgmpy/forks","keys_url":"https://api.github.com/repos/nishnik/pgmpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nishnik/pgmpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nishnik/pgmpy/teams","hooks_url":"https://api.github.com/repos/nishnik/pgmpy/hooks","issue_events_url":"https://api.github.com/repos/nishnik/pgmpy/issues/events{/number}","events_url":"https://api.github.com/repos/nishnik/pgmpy/events","assignees_url":"https://api.github.com/repos/nishnik/pgmpy/assignees{/user}","branches_url":"https://api.github.com/repos/nishnik/pgmpy/branches{/branch}","tags_url":"https://api.github.com/repos/nishnik/pgmpy/tags","blobs_url":"https://api.github.com/repos/nishnik/pgmpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nishnik/pgmpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nishnik/pgmpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/nishnik/pgmpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nishnik/pgmpy/statuses/{sha}","languages_url":"https://api.github.com/repos/nishnik/pgmpy/languages","stargazers_url":"https://api.github.com/repos/nishnik/pgmpy/stargazers","contributors_url":"https://api.github.com/repos/nishnik/pgmpy/contributors","subscribers_url":"https://api.github.com/repos/nishnik/pgmpy/subscribers","subscription_url":"https://api.github.com/repos/nishnik/pgmpy/subscription","commits_url":"https://api.github.com/repos/nishnik/pgmpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/nishnik/pgmpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/nishnik/pgmpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/nishnik/pgmpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/nishnik/pgmpy/contents/{+path}","compare_url":"https://api.github.com/repos/nishnik/pgmpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nishnik/pgmpy/merges","archive_url":"https://api.github.com/repos/nishnik/pgmpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nishnik/pgmpy/downloads","issues_url":"https://api.github.com/repos/nishnik/pgmpy/issues{/number}","pulls_url":"https://api.github.com/repos/nishnik/pgmpy/pulls{/number}","milestones_url":"https://api.github.com/repos/nishnik/pgmpy/milestones{/number}","notifications_url":"https://api.github.com/repos/nishnik/pgmpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nishnik/pgmpy/labels{/name}","releases_url":"https://api.github.com/repos/nishnik/pgmpy/releases{/id}","deployments_url":"https://api.github.com/repos/nishnik/pgmpy/deployments","created_at":"2016-02-10T16:47:40Z","updated_at":"2016-02-10T16:47:41Z","pushed_at":"2016-02-11T18:41:43Z","git_url":"git://github.com/nishnik/pgmpy.git","ssh_url":"git@github.com:nishnik/pgmpy.git","clone_url":"https://github.com/nishnik/pgmpy.git","svn_url":"https://github.com/nishnik/pgmpy","homepage":null,"size":4785,"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":"dev"}},"base":{"label":"pgmpy:dev","ref":"dev","sha":"71d481ec6c38ae42ea2f9e6d79c738bf1abc4cd3","user":{"login":"pgmpy","id":5500131,"avatar_url":"https://avatars.githubusercontent.com/u/5500131?v=3","gravatar_id":"","url":"https://api.github.com/users/pgmpy","html_url":"https://github.com/pgmpy","followers_url":"https://api.github.com/users/pgmpy/followers","following_url":"https://api.github.com/users/pgmpy/following{/other_user}","gists_url":"https://api.github.com/users/pgmpy/gists{/gist_id}","starred_url":"https://api.github.com/users/pgmpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgmpy/subscriptions","organizations_url":"https://api.github.com/users/pgmpy/orgs","repos_url":"https://api.github.com/users/pgmpy/repos","events_url":"https://api.github.com/users/pgmpy/events{/privacy}","received_events_url":"https://api.github.com/users/pgmpy/received_events","type":"Organization","site_admin":false},"repo":{"id":12968651,"name":"pgmpy","full_name":"pgmpy/pgmpy","owner":{"login":"pgmpy","id":5500131,"avatar_url":"https://avatars.githubusercontent.com/u/5500131?v=3","gravatar_id":"","url":"https://api.github.com/users/pgmpy","html_url":"https://github.com/pgmpy","followers_url":"https://api.github.com/users/pgmpy/followers","following_url":"https://api.github.com/users/pgmpy/following{/other_user}","gists_url":"https://api.github.com/users/pgmpy/gists{/gist_id}","starred_url":"https://api.github.com/users/pgmpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgmpy/subscriptions","organizations_url":"https://api.github.com/users/pgmpy/orgs","repos_url":"https://api.github.com/users/pgmpy/repos","events_url":"https://api.github.com/users/pgmpy/events{/privacy}","received_events_url":"https://api.github.com/users/pgmpy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pgmpy/pgmpy","description":"Python Library for Probabilistic Graphical Models","fork":false,"url":"https://api.github.com/repos/pgmpy/pgmpy","forks_url":"https://api.github.com/repos/pgmpy/pgmpy/forks","keys_url":"https://api.github.com/repos/pgmpy/pgmpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pgmpy/pgmpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pgmpy/pgmpy/teams","hooks_url":"https://api.github.com/repos/pgmpy/pgmpy/hooks","issue_events_url":"https://api.github.com/repos/pgmpy/pgmpy/issues/events{/number}","events_url":"https://api.github.com/repos/pgmpy/pgmpy/events","assignees_url":"https://api.github.com/repos/pgmpy/pgmpy/assignees{/user}","branches_url":"https://api.github.com/repos/pgmpy/pgmpy/branches{/branch}","tags_url":"https://api.github.com/repos/pgmpy/pgmpy/tags","blobs_url":"https://api.github.com/repos/pgmpy/pgmpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pgmpy/pgmpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pgmpy/pgmpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/pgmpy/pgmpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pgmpy/pgmpy/statuses/{sha}","languages_url":"https://api.github.com/repos/pgmpy/pgmpy/languages","stargazers_url":"https://api.github.com/repos/pgmpy/pgmpy/stargazers","contributors_url":"https://api.github.com/repos/pgmpy/pgmpy/contributors","subscribers_url":"https://api.github.com/repos/pgmpy/pgmpy/subscribers","subscription_url":"https://api.github.com/repos/pgmpy/pgmpy/subscription","commits_url":"https://api.github.com/repos/pgmpy/pgmpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/pgmpy/pgmpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/pgmpy/pgmpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/pgmpy/pgmpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/pgmpy/pgmpy/contents/{+path}","compare_url":"https://api.github.com/repos/pgmpy/pgmpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pgmpy/pgmpy/merges","archive_url":"https://api.github.com/repos/pgmpy/pgmpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pgmpy/pgmpy/downloads","issues_url":"https://api.github.com/repos/pgmpy/pgmpy/issues{/number}","pulls_url":"https://api.github.com/repos/pgmpy/pgmpy/pulls{/number}","milestones_url":"https://api.github.com/repos/pgmpy/pgmpy/milestones{/number}","notifications_url":"https://api.github.com/repos/pgmpy/pgmpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pgmpy/pgmpy/labels{/name}","releases_url":"https://api.github.com/repos/pgmpy/pgmpy/releases{/id}","deployments_url":"https://api.github.com/repos/pgmpy/pgmpy/deployments","created_at":"2013-09-20T08:18:58Z","updated_at":"2016-02-11T06:14:07Z","pushed_at":"2016-02-11T18:41:44Z","git_url":"git://github.com/pgmpy/pgmpy.git","ssh_url":"git@github.com:pgmpy/pgmpy.git","clone_url":"https://github.com/pgmpy/pgmpy.git","svn_url":"https://github.com/pgmpy/pgmpy","homepage":null,"size":5856,"stargazers_count":178,"watchers_count":178,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":81,"mirror_url":null,"open_issues_count":77,"forks":81,"open_issues":77,"watchers":178,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/pgmpy/pgmpy/pulls/625"},"html":{"href":"https://github.com/pgmpy/pgmpy/pull/625"},"issue":{"href":"https://api.github.com/repos/pgmpy/pgmpy/issues/625"},"comments":{"href":"https://api.github.com/repos/pgmpy/pgmpy/issues/625/comments"},"review_comments":{"href":"https://api.github.com/repos/pgmpy/pgmpy/pulls/625/comments"},"review_comment":{"href":"https://api.github.com/repos/pgmpy/pgmpy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pgmpy/pgmpy/pulls/625/commits"},"statuses":{"href":"https://api.github.com/repos/pgmpy/pgmpy/statuses/bfb8cef76997f9f92d5a047dd1d5af5439b99930"}}}}