{"action":"created","comment":{"url":"https://api.github.com/repos/tardis-sn/tardis/pulls/comments/32108030","id":32108030,"diff_hunk":"@@ -0,0 +1,112 @@\n+import os\n+import random\n+import inspect\n+from ctypes import CDLL, c_double\n+\n+import pytest\n+import numpy as np\n+\n+from tardis import __path__ as path\n+\n+test_path = os.path.join(path[0], 'montecarlo', 'montecarlo.so')\n+\n+tests = CDLL(test_path)\n+\n+np.random.seed(1)\n+\n+def generate_testcases_doubles(metafunc):\n+\tfrom sys import float_info as floats\n+\tMAX_FLOAT, MIN_FLOAT = floats[0], floats[3]\n+\tfor each in metafunc.fixturenames:\n+\t\tif 'double_value' in inspect.getargspec(each):\n+\t\t\tmetafunc.parametrize(\"double_value\", map(c_double, \n+\t\t\t\tnp.random.uniform(MIN_FLOAT, MAX_FLOAT, size=10)))\n+\n+def generate_testcases_integers(metafunc):\n+\tMAX_INT, MIN_INT = 10000, -10000\n+\tif 'int_value' in metafunc.fixturenames:","path":"tardis/tests/test_rpacket.py","position":27,"original_position":27,"commit_id":"f166de2bfe6c468e2838bfafb4ea44959700d9fc","original_commit_id":"f166de2bfe6c468e2838bfafb4ea44959700d9fc","user":{"login":"kaushik94","id":6545467,"avatar_url":"https://avatars.githubusercontent.com/u/6545467?v=3","gravatar_id":"","url":"https://api.github.com/users/kaushik94","html_url":"https://github.com/kaushik94","followers_url":"https://api.github.com/users/kaushik94/followers","following_url":"https://api.github.com/users/kaushik94/following{/other_user}","gists_url":"https://api.github.com/users/kaushik94/gists{/gist_id}","starred_url":"https://api.github.com/users/kaushik94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaushik94/subscriptions","organizations_url":"https://api.github.com/users/kaushik94/orgs","repos_url":"https://api.github.com/users/kaushik94/repos","events_url":"https://api.github.com/users/kaushik94/events{/privacy}","received_events_url":"https://api.github.com/users/kaushik94/received_events","type":"User","site_admin":false},"body":"even this doesn't work.","created_at":"2015-06-10T11:25:50Z","updated_at":"2015-06-10T11:25:50Z","html_url":"https://github.com/tardis-sn/tardis/pull/318#discussion_r32108030","pull_request_url":"https://api.github.com/repos/tardis-sn/tardis/pulls/318","_links":{"self":{"href":"https://api.github.com/repos/tardis-sn/tardis/pulls/comments/32108030"},"html":{"href":"https://github.com/tardis-sn/tardis/pull/318#discussion_r32108030"},"pull_request":{"href":"https://api.github.com/repos/tardis-sn/tardis/pulls/318"}}},"pull_request":{"url":"https://api.github.com/repos/tardis-sn/tardis/pulls/318","id":36584091,"html_url":"https://github.com/tardis-sn/tardis/pull/318","diff_url":"https://github.com/tardis-sn/tardis/pull/318.diff","patch_url":"https://github.com/tardis-sn/tardis/pull/318.patch","issue_url":"https://api.github.com/repos/tardis-sn/tardis/issues/318","number":318,"state":"open","locked":false,"title":"[GSoC 2015 MRG] Testing getters and setters in montecarlo","user":{"login":"kaushik94","id":6545467,"avatar_url":"https://avatars.githubusercontent.com/u/6545467?v=3","gravatar_id":"","url":"https://api.github.com/users/kaushik94","html_url":"https://github.com/kaushik94","followers_url":"https://api.github.com/users/kaushik94/followers","following_url":"https://api.github.com/users/kaushik94/following{/other_user}","gists_url":"https://api.github.com/users/kaushik94/gists{/gist_id}","starred_url":"https://api.github.com/users/kaushik94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaushik94/subscriptions","organizations_url":"https://api.github.com/users/kaushik94/orgs","repos_url":"https://api.github.com/users/kaushik94/repos","events_url":"https://api.github.com/users/kaushik94/events{/privacy}","received_events_url":"https://api.github.com/users/kaushik94/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-31T15:37:10Z","updated_at":"2015-06-10T11:25:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6820d1045fbf2f64446adec1e252d7b9559f353c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tardis-sn/tardis/pulls/318/commits","review_comments_url":"https://api.github.com/repos/tardis-sn/tardis/pulls/318/comments","review_comment_url":"https://api.github.com/repos/tardis-sn/tardis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tardis-sn/tardis/issues/318/comments","statuses_url":"https://api.github.com/repos/tardis-sn/tardis/statuses/f166de2bfe6c468e2838bfafb4ea44959700d9fc","head":{"label":"kaushik94:c-testing","ref":"c-testing","sha":"f166de2bfe6c468e2838bfafb4ea44959700d9fc","user":{"login":"kaushik94","id":6545467,"avatar_url":"https://avatars.githubusercontent.com/u/6545467?v=3","gravatar_id":"","url":"https://api.github.com/users/kaushik94","html_url":"https://github.com/kaushik94","followers_url":"https://api.github.com/users/kaushik94/followers","following_url":"https://api.github.com/users/kaushik94/following{/other_user}","gists_url":"https://api.github.com/users/kaushik94/gists{/gist_id}","starred_url":"https://api.github.com/users/kaushik94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaushik94/subscriptions","organizations_url":"https://api.github.com/users/kaushik94/orgs","repos_url":"https://api.github.com/users/kaushik94/repos","events_url":"https://api.github.com/users/kaushik94/events{/privacy}","received_events_url":"https://api.github.com/users/kaushik94/received_events","type":"User","site_admin":false},"repo":{"id":31717067,"name":"tardis","full_name":"kaushik94/tardis","owner":{"login":"kaushik94","id":6545467,"avatar_url":"https://avatars.githubusercontent.com/u/6545467?v=3","gravatar_id":"","url":"https://api.github.com/users/kaushik94","html_url":"https://github.com/kaushik94","followers_url":"https://api.github.com/users/kaushik94/followers","following_url":"https://api.github.com/users/kaushik94/following{/other_user}","gists_url":"https://api.github.com/users/kaushik94/gists{/gist_id}","starred_url":"https://api.github.com/users/kaushik94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaushik94/subscriptions","organizations_url":"https://api.github.com/users/kaushik94/orgs","repos_url":"https://api.github.com/users/kaushik94/repos","events_url":"https://api.github.com/users/kaushik94/events{/privacy}","received_events_url":"https://api.github.com/users/kaushik94/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kaushik94/tardis","description":"TARDIS - Temperature And Radiative Diffusion In Supernovae","fork":true,"url":"https://api.github.com/repos/kaushik94/tardis","forks_url":"https://api.github.com/repos/kaushik94/tardis/forks","keys_url":"https://api.github.com/repos/kaushik94/tardis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaushik94/tardis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaushik94/tardis/teams","hooks_url":"https://api.github.com/repos/kaushik94/tardis/hooks","issue_events_url":"https://api.github.com/repos/kaushik94/tardis/issues/events{/number}","events_url":"https://api.github.com/repos/kaushik94/tardis/events","assignees_url":"https://api.github.com/repos/kaushik94/tardis/assignees{/user}","branches_url":"https://api.github.com/repos/kaushik94/tardis/branches{/branch}","tags_url":"https://api.github.com/repos/kaushik94/tardis/tags","blobs_url":"https://api.github.com/repos/kaushik94/tardis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaushik94/tardis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaushik94/tardis/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaushik94/tardis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaushik94/tardis/statuses/{sha}","languages_url":"https://api.github.com/repos/kaushik94/tardis/languages","stargazers_url":"https://api.github.com/repos/kaushik94/tardis/stargazers","contributors_url":"https://api.github.com/repos/kaushik94/tardis/contributors","subscribers_url":"https://api.github.com/repos/kaushik94/tardis/subscribers","subscription_url":"https://api.github.com/repos/kaushik94/tardis/subscription","commits_url":"https://api.github.com/repos/kaushik94/tardis/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaushik94/tardis/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaushik94/tardis/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaushik94/tardis/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaushik94/tardis/contents/{+path}","compare_url":"https://api.github.com/repos/kaushik94/tardis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaushik94/tardis/merges","archive_url":"https://api.github.com/repos/kaushik94/tardis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaushik94/tardis/downloads","issues_url":"https://api.github.com/repos/kaushik94/tardis/issues{/number}","pulls_url":"https://api.github.com/repos/kaushik94/tardis/pulls{/number}","milestones_url":"https://api.github.com/repos/kaushik94/tardis/milestones{/number}","notifications_url":"https://api.github.com/repos/kaushik94/tardis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaushik94/tardis/labels{/name}","releases_url":"https://api.github.com/repos/kaushik94/tardis/releases{/id}","created_at":"2015-03-05T14:15:20Z","updated_at":"2015-03-07T19:42:42Z","pushed_at":"2015-06-10T11:24:26Z","git_url":"git://github.com/kaushik94/tardis.git","ssh_url":"git@github.com:kaushik94/tardis.git","clone_url":"https://github.com/kaushik94/tardis.git","svn_url":"https://github.com/kaushik94/tardis","homepage":"","size":6791,"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":"tardis-sn:master","ref":"master","sha":"f60a073a817ae0f60f88d7ddc6664044231ac010","user":{"login":"tardis-sn","id":6108234,"avatar_url":"https://avatars.githubusercontent.com/u/6108234?v=3","gravatar_id":"","url":"https://api.github.com/users/tardis-sn","html_url":"https://github.com/tardis-sn","followers_url":"https://api.github.com/users/tardis-sn/followers","following_url":"https://api.github.com/users/tardis-sn/following{/other_user}","gists_url":"https://api.github.com/users/tardis-sn/gists{/gist_id}","starred_url":"https://api.github.com/users/tardis-sn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tardis-sn/subscriptions","organizations_url":"https://api.github.com/users/tardis-sn/orgs","repos_url":"https://api.github.com/users/tardis-sn/repos","events_url":"https://api.github.com/users/tardis-sn/events{/privacy}","received_events_url":"https://api.github.com/users/tardis-sn/received_events","type":"Organization","site_admin":false},"repo":{"id":2938270,"name":"tardis","full_name":"tardis-sn/tardis","owner":{"login":"tardis-sn","id":6108234,"avatar_url":"https://avatars.githubusercontent.com/u/6108234?v=3","gravatar_id":"","url":"https://api.github.com/users/tardis-sn","html_url":"https://github.com/tardis-sn","followers_url":"https://api.github.com/users/tardis-sn/followers","following_url":"https://api.github.com/users/tardis-sn/following{/other_user}","gists_url":"https://api.github.com/users/tardis-sn/gists{/gist_id}","starred_url":"https://api.github.com/users/tardis-sn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tardis-sn/subscriptions","organizations_url":"https://api.github.com/users/tardis-sn/orgs","repos_url":"https://api.github.com/users/tardis-sn/repos","events_url":"https://api.github.com/users/tardis-sn/events{/privacy}","received_events_url":"https://api.github.com/users/tardis-sn/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tardis-sn/tardis","description":"TARDIS - Temperature And Radiative Diffusion In Supernovae","fork":false,"url":"https://api.github.com/repos/tardis-sn/tardis","forks_url":"https://api.github.com/repos/tardis-sn/tardis/forks","keys_url":"https://api.github.com/repos/tardis-sn/tardis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tardis-sn/tardis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tardis-sn/tardis/teams","hooks_url":"https://api.github.com/repos/tardis-sn/tardis/hooks","issue_events_url":"https://api.github.com/repos/tardis-sn/tardis/issues/events{/number}","events_url":"https://api.github.com/repos/tardis-sn/tardis/events","assignees_url":"https://api.github.com/repos/tardis-sn/tardis/assignees{/user}","branches_url":"https://api.github.com/repos/tardis-sn/tardis/branches{/branch}","tags_url":"https://api.github.com/repos/tardis-sn/tardis/tags","blobs_url":"https://api.github.com/repos/tardis-sn/tardis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tardis-sn/tardis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tardis-sn/tardis/git/refs{/sha}","trees_url":"https://api.github.com/repos/tardis-sn/tardis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tardis-sn/tardis/statuses/{sha}","languages_url":"https://api.github.com/repos/tardis-sn/tardis/languages","stargazers_url":"https://api.github.com/repos/tardis-sn/tardis/stargazers","contributors_url":"https://api.github.com/repos/tardis-sn/tardis/contributors","subscribers_url":"https://api.github.com/repos/tardis-sn/tardis/subscribers","subscription_url":"https://api.github.com/repos/tardis-sn/tardis/subscription","commits_url":"https://api.github.com/repos/tardis-sn/tardis/commits{/sha}","git_commits_url":"https://api.github.com/repos/tardis-sn/tardis/git/commits{/sha}","comments_url":"https://api.github.com/repos/tardis-sn/tardis/comments{/number}","issue_comment_url":"https://api.github.com/repos/tardis-sn/tardis/issues/comments{/number}","contents_url":"https://api.github.com/repos/tardis-sn/tardis/contents/{+path}","compare_url":"https://api.github.com/repos/tardis-sn/tardis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tardis-sn/tardis/merges","archive_url":"https://api.github.com/repos/tardis-sn/tardis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tardis-sn/tardis/downloads","issues_url":"https://api.github.com/repos/tardis-sn/tardis/issues{/number}","pulls_url":"https://api.github.com/repos/tardis-sn/tardis/pulls{/number}","milestones_url":"https://api.github.com/repos/tardis-sn/tardis/milestones{/number}","notifications_url":"https://api.github.com/repos/tardis-sn/tardis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tardis-sn/tardis/labels{/name}","releases_url":"https://api.github.com/repos/tardis-sn/tardis/releases{/id}","created_at":"2011-12-08T06:20:19Z","updated_at":"2015-05-10T09:47:33Z","pushed_at":"2015-06-10T11:24:26Z","git_url":"git://github.com/tardis-sn/tardis.git","ssh_url":"git@github.com:tardis-sn/tardis.git","clone_url":"https://github.com/tardis-sn/tardis.git","svn_url":"https://github.com/tardis-sn/tardis","homepage":"","size":37478,"stargazers_count":20,"watchers_count":20,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":81,"mirror_url":null,"open_issues_count":74,"forks":81,"open_issues":74,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tardis-sn/tardis/pulls/318"},"html":{"href":"https://github.com/tardis-sn/tardis/pull/318"},"issue":{"href":"https://api.github.com/repos/tardis-sn/tardis/issues/318"},"comments":{"href":"https://api.github.com/repos/tardis-sn/tardis/issues/318/comments"},"review_comments":{"href":"https://api.github.com/repos/tardis-sn/tardis/pulls/318/comments"},"review_comment":{"href":"https://api.github.com/repos/tardis-sn/tardis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tardis-sn/tardis/pulls/318/commits"},"statuses":{"href":"https://api.github.com/repos/tardis-sn/tardis/statuses/f166de2bfe6c468e2838bfafb4ea44959700d9fc"}}}}