{"action":"created","comment":{"url":"https://api.github.com/repos/gem/oq-hazardlib/pulls/comments/39247051","id":39247051,"diff_hunk":"@@ -41,6 +41,12 @@ def get_median_mag(self, area, rake):\n             from -180 to 180.\n         \"\"\"\n \n+    def __repr__(self):\n+        \"\"\"\n+        Returns the name of the class\n+        \"\"\"\n+        return \"<%s>\" % self.__class__.__name__","path":"openquake/hazardlib/scalerel/base.py","position":8,"original_position":8,"commit_id":"4d6757c03340e07673b61023afdd4ff9c595a2d3","original_commit_id":"4d6757c03340e07673b61023afdd4ff9c595a2d3","user":{"login":"micheles","id":2463856,"avatar_url":"https://avatars.githubusercontent.com/u/2463856?v=3","gravatar_id":"","url":"https://api.github.com/users/micheles","html_url":"https://github.com/micheles","followers_url":"https://api.github.com/users/micheles/followers","following_url":"https://api.github.com/users/micheles/following{/other_user}","gists_url":"https://api.github.com/users/micheles/gists{/gist_id}","starred_url":"https://api.github.com/users/micheles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micheles/subscriptions","organizations_url":"https://api.github.com/users/micheles/orgs","repos_url":"https://api.github.com/users/micheles/repos","events_url":"https://api.github.com/users/micheles/events{/privacy}","received_events_url":"https://api.github.com/users/micheles/received_events","type":"User","site_admin":false},"body":"What do you mean Graeme?","created_at":"2015-09-11T07:27:45Z","updated_at":"2015-09-11T07:27:45Z","html_url":"https://github.com/gem/oq-hazardlib/pull/374#discussion_r39247051","pull_request_url":"https://api.github.com/repos/gem/oq-hazardlib/pulls/374","_links":{"self":{"href":"https://api.github.com/repos/gem/oq-hazardlib/pulls/comments/39247051"},"html":{"href":"https://github.com/gem/oq-hazardlib/pull/374#discussion_r39247051"},"pull_request":{"href":"https://api.github.com/repos/gem/oq-hazardlib/pulls/374"}}},"pull_request":{"url":"https://api.github.com/repos/gem/oq-hazardlib/pulls/374","id":44207715,"html_url":"https://github.com/gem/oq-hazardlib/pull/374","diff_url":"https://github.com/gem/oq-hazardlib/pull/374.diff","patch_url":"https://github.com/gem/oq-hazardlib/pull/374.patch","issue_url":"https://api.github.com/repos/gem/oq-hazardlib/issues/374","number":374,"state":"open","locked":false,"title":"Adds __str__ method to scalrel and mfd base class","user":{"login":"g-weatherill","id":496400,"avatar_url":"https://avatars.githubusercontent.com/u/496400?v=3","gravatar_id":"","url":"https://api.github.com/users/g-weatherill","html_url":"https://github.com/g-weatherill","followers_url":"https://api.github.com/users/g-weatherill/followers","following_url":"https://api.github.com/users/g-weatherill/following{/other_user}","gists_url":"https://api.github.com/users/g-weatherill/gists{/gist_id}","starred_url":"https://api.github.com/users/g-weatherill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/g-weatherill/subscriptions","organizations_url":"https://api.github.com/users/g-weatherill/orgs","repos_url":"https://api.github.com/users/g-weatherill/repos","events_url":"https://api.github.com/users/g-weatherill/events{/privacy}","received_events_url":"https://api.github.com/users/g-weatherill/received_events","type":"User","site_admin":false},"body":"For consistency with the GSIM class, adds the method `__str__` to the scalerel and mfd base classes","created_at":"2015-09-04T11:27:39Z","updated_at":"2015-09-11T07:27:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1b46e31615ae340b5849262e6227f0d1eed4f78d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gem/oq-hazardlib/pulls/374/commits","review_comments_url":"https://api.github.com/repos/gem/oq-hazardlib/pulls/374/comments","review_comment_url":"https://api.github.com/repos/gem/oq-hazardlib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gem/oq-hazardlib/issues/374/comments","statuses_url":"https://api.github.com/repos/gem/oq-hazardlib/statuses/4d6757c03340e07673b61023afdd4ff9c595a2d3","head":{"label":"g-weatherill:mfd_msr_string","ref":"mfd_msr_string","sha":"4d6757c03340e07673b61023afdd4ff9c595a2d3","user":{"login":"g-weatherill","id":496400,"avatar_url":"https://avatars.githubusercontent.com/u/496400?v=3","gravatar_id":"","url":"https://api.github.com/users/g-weatherill","html_url":"https://github.com/g-weatherill","followers_url":"https://api.github.com/users/g-weatherill/followers","following_url":"https://api.github.com/users/g-weatherill/following{/other_user}","gists_url":"https://api.github.com/users/g-weatherill/gists{/gist_id}","starred_url":"https://api.github.com/users/g-weatherill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/g-weatherill/subscriptions","organizations_url":"https://api.github.com/users/g-weatherill/orgs","repos_url":"https://api.github.com/users/g-weatherill/repos","events_url":"https://api.github.com/users/g-weatherill/events{/privacy}","received_events_url":"https://api.github.com/users/g-weatherill/received_events","type":"User","site_admin":false},"repo":{"id":10355577,"name":"oq-hazardlib","full_name":"g-weatherill/oq-hazardlib","owner":{"login":"g-weatherill","id":496400,"avatar_url":"https://avatars.githubusercontent.com/u/496400?v=3","gravatar_id":"","url":"https://api.github.com/users/g-weatherill","html_url":"https://github.com/g-weatherill","followers_url":"https://api.github.com/users/g-weatherill/followers","following_url":"https://api.github.com/users/g-weatherill/following{/other_user}","gists_url":"https://api.github.com/users/g-weatherill/gists{/gist_id}","starred_url":"https://api.github.com/users/g-weatherill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/g-weatherill/subscriptions","organizations_url":"https://api.github.com/users/g-weatherill/orgs","repos_url":"https://api.github.com/users/g-weatherill/repos","events_url":"https://api.github.com/users/g-weatherill/events{/privacy}","received_events_url":"https://api.github.com/users/g-weatherill/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/g-weatherill/oq-hazardlib","description":"","fork":true,"url":"https://api.github.com/repos/g-weatherill/oq-hazardlib","forks_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/forks","keys_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/teams","hooks_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/hooks","issue_events_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/issues/events{/number}","events_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/events","assignees_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/assignees{/user}","branches_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/branches{/branch}","tags_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/tags","blobs_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/git/refs{/sha}","trees_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/statuses/{sha}","languages_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/languages","stargazers_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/stargazers","contributors_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/contributors","subscribers_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/subscribers","subscription_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/subscription","commits_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/commits{/sha}","git_commits_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/git/commits{/sha}","comments_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/comments{/number}","issue_comment_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/issues/comments{/number}","contents_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/contents/{+path}","compare_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/merges","archive_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/downloads","issues_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/issues{/number}","pulls_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/pulls{/number}","milestones_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/milestones{/number}","notifications_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/labels{/name}","releases_url":"https://api.github.com/repos/g-weatherill/oq-hazardlib/releases{/id}","created_at":"2013-05-29T08:48:20Z","updated_at":"2015-04-28T15:21:53Z","pushed_at":"2015-09-10T15:53:06Z","git_url":"git://github.com/g-weatherill/oq-hazardlib.git","ssh_url":"git@github.com:g-weatherill/oq-hazardlib.git","clone_url":"https://github.com/g-weatherill/oq-hazardlib.git","svn_url":"https://github.com/g-weatherill/oq-hazardlib","homepage":"","size":40959,"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":"gem:master","ref":"master","sha":"952106e7df79e6a458cb3b3cd03b7d3709a229cf","user":{"login":"gem","id":316546,"avatar_url":"https://avatars.githubusercontent.com/u/316546?v=3","gravatar_id":"","url":"https://api.github.com/users/gem","html_url":"https://github.com/gem","followers_url":"https://api.github.com/users/gem/followers","following_url":"https://api.github.com/users/gem/following{/other_user}","gists_url":"https://api.github.com/users/gem/gists{/gist_id}","starred_url":"https://api.github.com/users/gem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gem/subscriptions","organizations_url":"https://api.github.com/users/gem/orgs","repos_url":"https://api.github.com/users/gem/repos","events_url":"https://api.github.com/users/gem/events{/privacy}","received_events_url":"https://api.github.com/users/gem/received_events","type":"Organization","site_admin":false},"repo":{"id":2986762,"name":"oq-hazardlib","full_name":"gem/oq-hazardlib","owner":{"login":"gem","id":316546,"avatar_url":"https://avatars.githubusercontent.com/u/316546?v=3","gravatar_id":"","url":"https://api.github.com/users/gem","html_url":"https://github.com/gem","followers_url":"https://api.github.com/users/gem/followers","following_url":"https://api.github.com/users/gem/following{/other_user}","gists_url":"https://api.github.com/users/gem/gists{/gist_id}","starred_url":"https://api.github.com/users/gem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gem/subscriptions","organizations_url":"https://api.github.com/users/gem/orgs","repos_url":"https://api.github.com/users/gem/repos","events_url":"https://api.github.com/users/gem/events{/privacy}","received_events_url":"https://api.github.com/users/gem/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gem/oq-hazardlib","description":"Openquake Hazard Library","fork":false,"url":"https://api.github.com/repos/gem/oq-hazardlib","forks_url":"https://api.github.com/repos/gem/oq-hazardlib/forks","keys_url":"https://api.github.com/repos/gem/oq-hazardlib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gem/oq-hazardlib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gem/oq-hazardlib/teams","hooks_url":"https://api.github.com/repos/gem/oq-hazardlib/hooks","issue_events_url":"https://api.github.com/repos/gem/oq-hazardlib/issues/events{/number}","events_url":"https://api.github.com/repos/gem/oq-hazardlib/events","assignees_url":"https://api.github.com/repos/gem/oq-hazardlib/assignees{/user}","branches_url":"https://api.github.com/repos/gem/oq-hazardlib/branches{/branch}","tags_url":"https://api.github.com/repos/gem/oq-hazardlib/tags","blobs_url":"https://api.github.com/repos/gem/oq-hazardlib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gem/oq-hazardlib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gem/oq-hazardlib/git/refs{/sha}","trees_url":"https://api.github.com/repos/gem/oq-hazardlib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gem/oq-hazardlib/statuses/{sha}","languages_url":"https://api.github.com/repos/gem/oq-hazardlib/languages","stargazers_url":"https://api.github.com/repos/gem/oq-hazardlib/stargazers","contributors_url":"https://api.github.com/repos/gem/oq-hazardlib/contributors","subscribers_url":"https://api.github.com/repos/gem/oq-hazardlib/subscribers","subscription_url":"https://api.github.com/repos/gem/oq-hazardlib/subscription","commits_url":"https://api.github.com/repos/gem/oq-hazardlib/commits{/sha}","git_commits_url":"https://api.github.com/repos/gem/oq-hazardlib/git/commits{/sha}","comments_url":"https://api.github.com/repos/gem/oq-hazardlib/comments{/number}","issue_comment_url":"https://api.github.com/repos/gem/oq-hazardlib/issues/comments{/number}","contents_url":"https://api.github.com/repos/gem/oq-hazardlib/contents/{+path}","compare_url":"https://api.github.com/repos/gem/oq-hazardlib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gem/oq-hazardlib/merges","archive_url":"https://api.github.com/repos/gem/oq-hazardlib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gem/oq-hazardlib/downloads","issues_url":"https://api.github.com/repos/gem/oq-hazardlib/issues{/number}","pulls_url":"https://api.github.com/repos/gem/oq-hazardlib/pulls{/number}","milestones_url":"https://api.github.com/repos/gem/oq-hazardlib/milestones{/number}","notifications_url":"https://api.github.com/repos/gem/oq-hazardlib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gem/oq-hazardlib/labels{/name}","releases_url":"https://api.github.com/repos/gem/oq-hazardlib/releases{/id}","created_at":"2011-12-15T10:14:46Z","updated_at":"2015-05-26T15:31:17Z","pushed_at":"2015-09-10T15:53:07Z","git_url":"git://github.com/gem/oq-hazardlib.git","ssh_url":"git@github.com:gem/oq-hazardlib.git","clone_url":"https://github.com/gem/oq-hazardlib.git","svn_url":"https://github.com/gem/oq-hazardlib","homepage":"http://www.globalquakemodel.org/openquake/","size":50143,"stargazers_count":19,"watchers_count":19,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":34,"mirror_url":null,"open_issues_count":4,"forks":34,"open_issues":4,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gem/oq-hazardlib/pulls/374"},"html":{"href":"https://github.com/gem/oq-hazardlib/pull/374"},"issue":{"href":"https://api.github.com/repos/gem/oq-hazardlib/issues/374"},"comments":{"href":"https://api.github.com/repos/gem/oq-hazardlib/issues/374/comments"},"review_comments":{"href":"https://api.github.com/repos/gem/oq-hazardlib/pulls/374/comments"},"review_comment":{"href":"https://api.github.com/repos/gem/oq-hazardlib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gem/oq-hazardlib/pulls/374/commits"},"statuses":{"href":"https://api.github.com/repos/gem/oq-hazardlib/statuses/4d6757c03340e07673b61023afdd4ff9c595a2d3"}}}}