{"action":"created","comment":{"url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/pulls/comments/32790515","id":32790515,"diff_hunk":"@@ -0,0 +1,158 @@\n+# -*- coding: utf-8 -*-\n+\n+import numpy as np\n+import matplotlib.pyplot as plt\n+import itertools\n+import random, glob\n+import matplotlib.cm as cm, IPython.display as IPdisplay \n+from mpl_toolkits.mplot3d import Axes3D\n+from pylab import *\n+\n+\n+input_data = np.genfromtxt('C:input_path.csv', delimiter=',', dtype = np.float64)\n+log_data = np.genfromtxt('C:log.csv',skiprows = 2, delimiter=',',dtype = np.float64)\n+\n+    \n+#####################from the first chart########################\n+t1 = []\n+t2 = []\n+count1 = 0\n+i = 0.0\n+j = 0.0\n+while count1 < 39:\n+    t1.append(i)    \n+    i += 0.15\n+    count1 += 1\n+count2 = 0\n+while count2 < 2905:\n+    t2.append(j)\n+    j += 0.002 \n+    count2 += 1\n+    \n+x1 = np.round(input_data[:,7] * 1000)\n+y1 = np.round(input_data[:,8] * 1000)\n+z1 = np.round(input_data[:,9] * 1000)\n+\n+Fx1 = np.round(input_data[:,1], 2)\n+Fy1 = np.round(input_data[:,2], 2)\n+Fz1 = np.round(input_data[:,3], 2)\n+\n+#normalize\n+Px1 = [a - x1[0] for a in x1]\n+Py1 = [a - y1[0] for a in y1]\n+Pz1 = [a - z1[0] for a in z1]\n+################################################################\n+\n+###############from the second chart############################\n+x2 = np.round(log_data[:,15]* 1000, 2) #msr data\n+y2 = np.round(log_data[:,16]* 1000, 2) #msr data\n+z2 = np.round(log_data[:,17]* 1000, 2) #msr data\n+\n+Fx2 = np.round(log_data[:,6], 2)\n+Fy2 = np.round(log_data[:,7], 2)\n+Fz2 = np.round(log_data[:,8], 2) \n+\n+Dead_x = np.round(log_data[:,0], 2)\n+Dead_y = np.round(log_data[:,1], 2)\n+Dead_z = np.round(log_data[:,2], 2)\n+\n+Pid_x = np.round(log_data[:,18]*1000, 2)\n+Pid_y = np.round(log_data[:,19]*1000, 2)\n+Pid_z = np.round(log_data[:,20]*1000, 2)\n+\n+#normalize\n+Px2 = [a - x2[0] for a in x2]\n+Py2 = [a - y2[0] for a in y2]\n+Pz2 = [a - z2[0] for a in z2]","path":"plots/Sharhad_plot","position":66,"original_position":66,"commit_id":"cc2f07b38d0c7ee9cf13979d0c2119bb4ccec4ea","original_commit_id":"cc2f07b38d0c7ee9cf13979d0c2119bb4ccec4ea","user":{"login":"matthewbstokes","id":1340077,"avatar_url":"https://avatars.githubusercontent.com/u/1340077?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewbstokes","html_url":"https://github.com/matthewbstokes","followers_url":"https://api.github.com/users/matthewbstokes/followers","following_url":"https://api.github.com/users/matthewbstokes/following{/other_user}","gists_url":"https://api.github.com/users/matthewbstokes/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewbstokes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewbstokes/subscriptions","organizations_url":"https://api.github.com/users/matthewbstokes/orgs","repos_url":"https://api.github.com/users/matthewbstokes/repos","events_url":"https://api.github.com/users/matthewbstokes/events{/privacy}","received_events_url":"https://api.github.com/users/matthewbstokes/received_events","type":"User","site_admin":false},"body":"I see very much of the same lines happening over and over again. Perhaps make a couple functions to:\r\n  - Normalize\r\n  - GetPositions\r\n  - GetForces\r\n  - GetPIDs","created_at":"2015-06-18T23:44:26Z","updated_at":"2015-06-18T23:44:26Z","html_url":"https://github.com/matthewbstokes/surgical-mechatronics/pull/1#discussion_r32790515","pull_request_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/pulls/comments/32790515"},"html":{"href":"https://github.com/matthewbstokes/surgical-mechatronics/pull/1#discussion_r32790515"},"pull_request":{"href":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/pulls/1","id":37981151,"html_url":"https://github.com/matthewbstokes/surgical-mechatronics/pull/1","diff_url":"https://github.com/matthewbstokes/surgical-mechatronics/pull/1.diff","patch_url":"https://github.com/matthewbstokes/surgical-mechatronics/pull/1.patch","issue_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/issues/1","number":1,"state":"open","locked":false,"title":"Create Sharhad_plot","user":{"login":"Sharmoney","id":9545714,"avatar_url":"https://avatars.githubusercontent.com/u/9545714?v=3","gravatar_id":"","url":"https://api.github.com/users/Sharmoney","html_url":"https://github.com/Sharmoney","followers_url":"https://api.github.com/users/Sharmoney/followers","following_url":"https://api.github.com/users/Sharmoney/following{/other_user}","gists_url":"https://api.github.com/users/Sharmoney/gists{/gist_id}","starred_url":"https://api.github.com/users/Sharmoney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sharmoney/subscriptions","organizations_url":"https://api.github.com/users/Sharmoney/orgs","repos_url":"https://api.github.com/users/Sharmoney/repos","events_url":"https://api.github.com/users/Sharmoney/events{/privacy}","received_events_url":"https://api.github.com/users/Sharmoney/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-18T08:11:53Z","updated_at":"2015-06-18T23:44:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cba4ae99b615b25524012db1e8234bedb081bd56","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/pulls/1/commits","review_comments_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/pulls/1/comments","review_comment_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/pulls/comments{/number}","comments_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/issues/1/comments","statuses_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/statuses/cc2f07b38d0c7ee9cf13979d0c2119bb4ccec4ea","head":{"label":"Sharmoney:patch-1","ref":"patch-1","sha":"cc2f07b38d0c7ee9cf13979d0c2119bb4ccec4ea","user":{"login":"Sharmoney","id":9545714,"avatar_url":"https://avatars.githubusercontent.com/u/9545714?v=3","gravatar_id":"","url":"https://api.github.com/users/Sharmoney","html_url":"https://github.com/Sharmoney","followers_url":"https://api.github.com/users/Sharmoney/followers","following_url":"https://api.github.com/users/Sharmoney/following{/other_user}","gists_url":"https://api.github.com/users/Sharmoney/gists{/gist_id}","starred_url":"https://api.github.com/users/Sharmoney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sharmoney/subscriptions","organizations_url":"https://api.github.com/users/Sharmoney/orgs","repos_url":"https://api.github.com/users/Sharmoney/repos","events_url":"https://api.github.com/users/Sharmoney/events{/privacy}","received_events_url":"https://api.github.com/users/Sharmoney/received_events","type":"User","site_admin":false},"repo":{"id":37646531,"name":"surgical-mechatronics","full_name":"Sharmoney/surgical-mechatronics","owner":{"login":"Sharmoney","id":9545714,"avatar_url":"https://avatars.githubusercontent.com/u/9545714?v=3","gravatar_id":"","url":"https://api.github.com/users/Sharmoney","html_url":"https://github.com/Sharmoney","followers_url":"https://api.github.com/users/Sharmoney/followers","following_url":"https://api.github.com/users/Sharmoney/following{/other_user}","gists_url":"https://api.github.com/users/Sharmoney/gists{/gist_id}","starred_url":"https://api.github.com/users/Sharmoney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sharmoney/subscriptions","organizations_url":"https://api.github.com/users/Sharmoney/orgs","repos_url":"https://api.github.com/users/Sharmoney/repos","events_url":"https://api.github.com/users/Sharmoney/events{/privacy}","received_events_url":"https://api.github.com/users/Sharmoney/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Sharmoney/surgical-mechatronics","description":"Collection of useful libraries and functions","fork":true,"url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics","forks_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/forks","keys_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/teams","hooks_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/hooks","issue_events_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/issues/events{/number}","events_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/events","assignees_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/assignees{/user}","branches_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/branches{/branch}","tags_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/tags","blobs_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/statuses/{sha}","languages_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/languages","stargazers_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/stargazers","contributors_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/contributors","subscribers_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/subscribers","subscription_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/subscription","commits_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/contents/{+path}","compare_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/merges","archive_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/downloads","issues_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/issues{/number}","pulls_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/pulls{/number}","milestones_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/milestones{/number}","notifications_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/labels{/name}","releases_url":"https://api.github.com/repos/Sharmoney/surgical-mechatronics/releases{/id}","created_at":"2015-06-18T08:11:14Z","updated_at":"2015-06-15T20:06:58Z","pushed_at":"2015-06-18T08:11:45Z","git_url":"git://github.com/Sharmoney/surgical-mechatronics.git","ssh_url":"git@github.com:Sharmoney/surgical-mechatronics.git","clone_url":"https://github.com/Sharmoney/surgical-mechatronics.git","svn_url":"https://github.com/Sharmoney/surgical-mechatronics","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"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":"matthewbstokes:master","ref":"master","sha":"70a794f45766deacac530a16e554b06e28e12347","user":{"login":"matthewbstokes","id":1340077,"avatar_url":"https://avatars.githubusercontent.com/u/1340077?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewbstokes","html_url":"https://github.com/matthewbstokes","followers_url":"https://api.github.com/users/matthewbstokes/followers","following_url":"https://api.github.com/users/matthewbstokes/following{/other_user}","gists_url":"https://api.github.com/users/matthewbstokes/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewbstokes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewbstokes/subscriptions","organizations_url":"https://api.github.com/users/matthewbstokes/orgs","repos_url":"https://api.github.com/users/matthewbstokes/repos","events_url":"https://api.github.com/users/matthewbstokes/events{/privacy}","received_events_url":"https://api.github.com/users/matthewbstokes/received_events","type":"User","site_admin":false},"repo":{"id":37488483,"name":"surgical-mechatronics","full_name":"matthewbstokes/surgical-mechatronics","owner":{"login":"matthewbstokes","id":1340077,"avatar_url":"https://avatars.githubusercontent.com/u/1340077?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewbstokes","html_url":"https://github.com/matthewbstokes","followers_url":"https://api.github.com/users/matthewbstokes/followers","following_url":"https://api.github.com/users/matthewbstokes/following{/other_user}","gists_url":"https://api.github.com/users/matthewbstokes/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewbstokes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewbstokes/subscriptions","organizations_url":"https://api.github.com/users/matthewbstokes/orgs","repos_url":"https://api.github.com/users/matthewbstokes/repos","events_url":"https://api.github.com/users/matthewbstokes/events{/privacy}","received_events_url":"https://api.github.com/users/matthewbstokes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matthewbstokes/surgical-mechatronics","description":"Collection of useful libraries and functions","fork":false,"url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics","forks_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/forks","keys_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/teams","hooks_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/hooks","issue_events_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/issues/events{/number}","events_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/events","assignees_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/assignees{/user}","branches_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/branches{/branch}","tags_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/tags","blobs_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/git/refs{/sha}","trees_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/statuses/{sha}","languages_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/languages","stargazers_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/stargazers","contributors_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/contributors","subscribers_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/subscribers","subscription_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/subscription","commits_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/commits{/sha}","git_commits_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/git/commits{/sha}","comments_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/comments{/number}","issue_comment_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/issues/comments{/number}","contents_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/contents/{+path}","compare_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/merges","archive_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/downloads","issues_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/issues{/number}","pulls_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/pulls{/number}","milestones_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/milestones{/number}","notifications_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/labels{/name}","releases_url":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/releases{/id}","created_at":"2015-06-15T20:06:58Z","updated_at":"2015-06-15T20:06:58Z","pushed_at":"2015-06-18T08:11:53Z","git_url":"git://github.com/matthewbstokes/surgical-mechatronics.git","ssh_url":"git@github.com:matthewbstokes/surgical-mechatronics.git","clone_url":"https://github.com/matthewbstokes/surgical-mechatronics.git","svn_url":"https://github.com/matthewbstokes/surgical-mechatronics","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/pulls/1"},"html":{"href":"https://github.com/matthewbstokes/surgical-mechatronics/pull/1"},"issue":{"href":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/issues/1"},"comments":{"href":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/matthewbstokes/surgical-mechatronics/statuses/cc2f07b38d0c7ee9cf13979d0c2119bb4ccec4ea"}}}}