{"action":"created","comment":{"url":"https://api.github.com/repos/rodrigorahal/structuraldesign/pulls/comments/73375176","id":73375176,"diff_hunk":"@@ -0,0 +1,246 @@\n+class Diagram(object):\n+    \"\"\"\n+    Beam diagrams results\n+    .diagram[i][0] = point i coordinate\n+    .diagram[i][1] = point i moment or force\n+    \"\"\"\n+\n+    def __init__(self, filename, source):\n+\n+        if source == \"FTOOL\":\n+            self.diagram = self._readFTOOL(filename)\n+        else:\n+            raise NotImplementedError(\"Source not available.\")\n+\n+    def _readFTOOL(self, filename):\n+        diagram = []\n+        with open(filename) as f:\n+            for line in f:\n+                line = line.split()\n+\n+                if len(line) == 2:\n+                    x = float(line[0]) #coordinate\n+                    y = float(line[1]) #moment or force\n+                    diagram.append((x,y))\n+\n+        return diagram\n+\n+    def get_x(self, y, xinf = None, xsup = None):\n+        \"\"\"\n+        Given y, returns a list of all x that satisfies the equation f(y) = x | xinf <= x <= xsup.\n+        If xinf/xsup are not specified, considers de whole diagram.","path":"structuraldesign/detailing/beam_detailing.py","position":31,"original_position":31,"commit_id":"1f56a7683c7fcef51a2016b360ce0b05ecb6ca1b","original_commit_id":"1f56a7683c7fcef51a2016b360ce0b05ecb6ca1b","user":{"login":"rodrigorahal","id":14983073,"avatar_url":"https://avatars.githubusercontent.com/u/14983073?v=3","gravatar_id":"","url":"https://api.github.com/users/rodrigorahal","html_url":"https://github.com/rodrigorahal","followers_url":"https://api.github.com/users/rodrigorahal/followers","following_url":"https://api.github.com/users/rodrigorahal/following{/other_user}","gists_url":"https://api.github.com/users/rodrigorahal/gists{/gist_id}","starred_url":"https://api.github.com/users/rodrigorahal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodrigorahal/subscriptions","organizations_url":"https://api.github.com/users/rodrigorahal/orgs","repos_url":"https://api.github.com/users/rodrigorahal/repos","events_url":"https://api.github.com/users/rodrigorahal/events{/privacy}","received_events_url":"https://api.github.com/users/rodrigorahal/received_events","type":"User","site_admin":false},"body":"the","created_at":"2016-08-03T17:00:29Z","updated_at":"2016-08-03T17:00:29Z","html_url":"https://github.com/rodrigorahal/structuraldesign/pull/6#discussion_r73375176","pull_request_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/rodrigorahal/structuraldesign/pulls/comments/73375176"},"html":{"href":"https://github.com/rodrigorahal/structuraldesign/pull/6#discussion_r73375176"},"pull_request":{"href":"https://api.github.com/repos/rodrigorahal/structuraldesign/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/rodrigorahal/structuraldesign/pulls/6","id":79733500,"html_url":"https://github.com/rodrigorahal/structuraldesign/pull/6","diff_url":"https://github.com/rodrigorahal/structuraldesign/pull/6.diff","patch_url":"https://github.com/rodrigorahal/structuraldesign/pull/6.patch","issue_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/issues/6","number":6,"state":"open","locked":false,"title":"Flexural and Shear Design + Beam detailing","user":{"login":"StollToaldo","id":15196068,"avatar_url":"https://avatars.githubusercontent.com/u/15196068?v=3","gravatar_id":"","url":"https://api.github.com/users/StollToaldo","html_url":"https://github.com/StollToaldo","followers_url":"https://api.github.com/users/StollToaldo/followers","following_url":"https://api.github.com/users/StollToaldo/following{/other_user}","gists_url":"https://api.github.com/users/StollToaldo/gists{/gist_id}","starred_url":"https://api.github.com/users/StollToaldo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StollToaldo/subscriptions","organizations_url":"https://api.github.com/users/StollToaldo/orgs","repos_url":"https://api.github.com/users/StollToaldo/repos","events_url":"https://api.github.com/users/StollToaldo/events{/privacy}","received_events_url":"https://api.github.com/users/StollToaldo/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-02T13:19:09Z","updated_at":"2016-08-03T17:00:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"de2355cb5168038d49e35d3dbcea9c99fd178dec","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/pulls/6/commits","review_comments_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/pulls/6/comments","review_comment_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/issues/6/comments","statuses_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/statuses/1f56a7683c7fcef51a2016b360ce0b05ecb6ca1b","head":{"label":"rodrigorahal:beam-detailing","ref":"beam-detailing","sha":"1f56a7683c7fcef51a2016b360ce0b05ecb6ca1b","user":{"login":"rodrigorahal","id":14983073,"avatar_url":"https://avatars.githubusercontent.com/u/14983073?v=3","gravatar_id":"","url":"https://api.github.com/users/rodrigorahal","html_url":"https://github.com/rodrigorahal","followers_url":"https://api.github.com/users/rodrigorahal/followers","following_url":"https://api.github.com/users/rodrigorahal/following{/other_user}","gists_url":"https://api.github.com/users/rodrigorahal/gists{/gist_id}","starred_url":"https://api.github.com/users/rodrigorahal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodrigorahal/subscriptions","organizations_url":"https://api.github.com/users/rodrigorahal/orgs","repos_url":"https://api.github.com/users/rodrigorahal/repos","events_url":"https://api.github.com/users/rodrigorahal/events{/privacy}","received_events_url":"https://api.github.com/users/rodrigorahal/received_events","type":"User","site_admin":false},"repo":{"id":63258747,"name":"structuraldesign","full_name":"rodrigorahal/structuraldesign","owner":{"login":"rodrigorahal","id":14983073,"avatar_url":"https://avatars.githubusercontent.com/u/14983073?v=3","gravatar_id":"","url":"https://api.github.com/users/rodrigorahal","html_url":"https://github.com/rodrigorahal","followers_url":"https://api.github.com/users/rodrigorahal/followers","following_url":"https://api.github.com/users/rodrigorahal/following{/other_user}","gists_url":"https://api.github.com/users/rodrigorahal/gists{/gist_id}","starred_url":"https://api.github.com/users/rodrigorahal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodrigorahal/subscriptions","organizations_url":"https://api.github.com/users/rodrigorahal/orgs","repos_url":"https://api.github.com/users/rodrigorahal/repos","events_url":"https://api.github.com/users/rodrigorahal/events{/privacy}","received_events_url":"https://api.github.com/users/rodrigorahal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rodrigorahal/structuraldesign","description":null,"fork":false,"url":"https://api.github.com/repos/rodrigorahal/structuraldesign","forks_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/forks","keys_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/teams","hooks_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/hooks","issue_events_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/issues/events{/number}","events_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/events","assignees_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/assignees{/user}","branches_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/branches{/branch}","tags_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/tags","blobs_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/git/refs{/sha}","trees_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/statuses/{sha}","languages_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/languages","stargazers_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/stargazers","contributors_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/contributors","subscribers_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/subscribers","subscription_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/subscription","commits_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/commits{/sha}","git_commits_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/git/commits{/sha}","comments_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/comments{/number}","issue_comment_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/issues/comments{/number}","contents_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/contents/{+path}","compare_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/merges","archive_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/downloads","issues_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/issues{/number}","pulls_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/pulls{/number}","milestones_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/milestones{/number}","notifications_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/labels{/name}","releases_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/releases{/id}","deployments_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/deployments","created_at":"2016-07-13T15:39:48Z","updated_at":"2016-07-28T20:19:47Z","pushed_at":"2016-08-03T13:39:47Z","git_url":"git://github.com/rodrigorahal/structuraldesign.git","ssh_url":"git@github.com:rodrigorahal/structuraldesign.git","clone_url":"https://github.com/rodrigorahal/structuraldesign.git","svn_url":"https://github.com/rodrigorahal/structuraldesign","homepage":null,"size":30,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"rodrigorahal:master","ref":"master","sha":"5b4d0f777b80ad80b5ab656ac77689ce9732b803","user":{"login":"rodrigorahal","id":14983073,"avatar_url":"https://avatars.githubusercontent.com/u/14983073?v=3","gravatar_id":"","url":"https://api.github.com/users/rodrigorahal","html_url":"https://github.com/rodrigorahal","followers_url":"https://api.github.com/users/rodrigorahal/followers","following_url":"https://api.github.com/users/rodrigorahal/following{/other_user}","gists_url":"https://api.github.com/users/rodrigorahal/gists{/gist_id}","starred_url":"https://api.github.com/users/rodrigorahal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodrigorahal/subscriptions","organizations_url":"https://api.github.com/users/rodrigorahal/orgs","repos_url":"https://api.github.com/users/rodrigorahal/repos","events_url":"https://api.github.com/users/rodrigorahal/events{/privacy}","received_events_url":"https://api.github.com/users/rodrigorahal/received_events","type":"User","site_admin":false},"repo":{"id":63258747,"name":"structuraldesign","full_name":"rodrigorahal/structuraldesign","owner":{"login":"rodrigorahal","id":14983073,"avatar_url":"https://avatars.githubusercontent.com/u/14983073?v=3","gravatar_id":"","url":"https://api.github.com/users/rodrigorahal","html_url":"https://github.com/rodrigorahal","followers_url":"https://api.github.com/users/rodrigorahal/followers","following_url":"https://api.github.com/users/rodrigorahal/following{/other_user}","gists_url":"https://api.github.com/users/rodrigorahal/gists{/gist_id}","starred_url":"https://api.github.com/users/rodrigorahal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodrigorahal/subscriptions","organizations_url":"https://api.github.com/users/rodrigorahal/orgs","repos_url":"https://api.github.com/users/rodrigorahal/repos","events_url":"https://api.github.com/users/rodrigorahal/events{/privacy}","received_events_url":"https://api.github.com/users/rodrigorahal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rodrigorahal/structuraldesign","description":null,"fork":false,"url":"https://api.github.com/repos/rodrigorahal/structuraldesign","forks_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/forks","keys_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/teams","hooks_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/hooks","issue_events_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/issues/events{/number}","events_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/events","assignees_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/assignees{/user}","branches_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/branches{/branch}","tags_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/tags","blobs_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/git/refs{/sha}","trees_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/statuses/{sha}","languages_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/languages","stargazers_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/stargazers","contributors_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/contributors","subscribers_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/subscribers","subscription_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/subscription","commits_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/commits{/sha}","git_commits_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/git/commits{/sha}","comments_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/comments{/number}","issue_comment_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/issues/comments{/number}","contents_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/contents/{+path}","compare_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/merges","archive_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/downloads","issues_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/issues{/number}","pulls_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/pulls{/number}","milestones_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/milestones{/number}","notifications_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/labels{/name}","releases_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/releases{/id}","deployments_url":"https://api.github.com/repos/rodrigorahal/structuraldesign/deployments","created_at":"2016-07-13T15:39:48Z","updated_at":"2016-07-28T20:19:47Z","pushed_at":"2016-08-03T13:39:47Z","git_url":"git://github.com/rodrigorahal/structuraldesign.git","ssh_url":"git@github.com:rodrigorahal/structuraldesign.git","clone_url":"https://github.com/rodrigorahal/structuraldesign.git","svn_url":"https://github.com/rodrigorahal/structuraldesign","homepage":null,"size":30,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rodrigorahal/structuraldesign/pulls/6"},"html":{"href":"https://github.com/rodrigorahal/structuraldesign/pull/6"},"issue":{"href":"https://api.github.com/repos/rodrigorahal/structuraldesign/issues/6"},"comments":{"href":"https://api.github.com/repos/rodrigorahal/structuraldesign/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/rodrigorahal/structuraldesign/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/rodrigorahal/structuraldesign/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rodrigorahal/structuraldesign/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/rodrigorahal/structuraldesign/statuses/1f56a7683c7fcef51a2016b360ce0b05ecb6ca1b"}}}}
{"actor":{"display_login":"rodrigorahal"}}