{"action":"created","comment":{"url":"https://api.github.com/repos/opesci/opesci-fd/pulls/comments/39020424","id":39020424,"diff_hunk":"@@ -359,13 +167,15 @@ def set_dt(self, dt):\n         \"\"\"\n         self.dt = dt\n \n-    def set_media_param(self, media_param):\n+    def associate_stress_fields(self, sfields):\n         \"\"\"\n-        - set the media parameters beta, lambda, mu\n-        - these parameters should be used for the updating kernel\n-        - only needed when read data from file\n+        link this velocity field to a list of stress field\n+        e.g. Vx will be associated with Txx, Txy, Txz\n+        link compression stress field with other compression stress field\n+        e.g. Txx with Txx, Tyy, Tzz\n+        :param sfields: list of associated stress field\n         \"\"\"\n-        self.media_param = media_param\n+        self.sfields = sfields","path":"opesci/fields.py","position":378,"original_position":378,"commit_id":"7cf933732e467024bf3da1dc8129b4472aeaae6d","original_commit_id":"7cf933732e467024bf3da1dc8129b4472aeaae6d","user":{"login":"tj-sun","id":9328006,"avatar_url":"https://avatars.githubusercontent.com/u/9328006?v=3","gravatar_id":"","url":"https://api.github.com/users/tj-sun","html_url":"https://github.com/tj-sun","followers_url":"https://api.github.com/users/tj-sun/followers","following_url":"https://api.github.com/users/tj-sun/following{/other_user}","gists_url":"https://api.github.com/users/tj-sun/gists{/gist_id}","starred_url":"https://api.github.com/users/tj-sun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tj-sun/subscriptions","organizations_url":"https://api.github.com/users/tj-sun/orgs","repos_url":"https://api.github.com/users/tj-sun/repos","events_url":"https://api.github.com/users/tj-sun/events{/privacy}","received_events_url":"https://api.github.com/users/tj-sun/received_events","type":"User","site_admin":false},"body":"stress field also need to be associated with another stress field for bc.\r\ne.g. Txx need Txz to update at the z boundary","created_at":"2015-09-09T09:00:21Z","updated_at":"2015-09-09T09:00:21Z","html_url":"https://github.com/opesci/opesci-fd/pull/38#discussion_r39020424","pull_request_url":"https://api.github.com/repos/opesci/opesci-fd/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/opesci/opesci-fd/pulls/comments/39020424"},"html":{"href":"https://github.com/opesci/opesci-fd/pull/38#discussion_r39020424"},"pull_request":{"href":"https://api.github.com/repos/opesci/opesci-fd/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/opesci/opesci-fd/pulls/38","id":44496346,"html_url":"https://github.com/opesci/opesci-fd/pull/38","diff_url":"https://github.com/opesci/opesci-fd/pull/38.diff","patch_url":"https://github.com/opesci/opesci-fd/pull/38.patch","issue_url":"https://api.github.com/repos/opesci/opesci-fd/issues/38","number":38,"state":"open","locked":false,"title":"Feature deriv","user":{"login":"tj-sun","id":9328006,"avatar_url":"https://avatars.githubusercontent.com/u/9328006?v=3","gravatar_id":"","url":"https://api.github.com/users/tj-sun","html_url":"https://github.com/tj-sun","followers_url":"https://api.github.com/users/tj-sun/followers","following_url":"https://api.github.com/users/tj-sun/following{/other_user}","gists_url":"https://api.github.com/users/tj-sun/gists{/gist_id}","starred_url":"https://api.github.com/users/tj-sun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tj-sun/subscriptions","organizations_url":"https://api.github.com/users/tj-sun/orgs","repos_url":"https://api.github.com/users/tj-sun/repos","events_url":"https://api.github.com/users/tj-sun/events{/privacy}","received_events_url":"https://api.github.com/users/tj-sun/received_events","type":"User","site_admin":false},"body":"This pull request creates Derivative class\r\n\r\n- Create Derivative class for better handling of PDE\r\n- Improved algorithm to calculate bc (re calculating normal stresses), error much smaller now\r\n- Move helper functions to util.py\r\n- improved bc calculation, bc is passed as symbolic equations instead of strings\r\n- improved reading media parameters from file, handled in StaggeredGrid now, more robust algorithm to replace with effective media parameters\r\n- updated ipython notebooks\r\n- eigenwave test default to source code generation only, need --compile flag to trigger compilation\r\n- updated travis.yml scrip to reflect above","created_at":"2015-09-08T23:45:10Z","updated_at":"2015-09-09T09:00:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"238ef4279ed9f33c52ab0c1a43ccc06f8fa75884","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/opesci/opesci-fd/pulls/38/commits","review_comments_url":"https://api.github.com/repos/opesci/opesci-fd/pulls/38/comments","review_comment_url":"https://api.github.com/repos/opesci/opesci-fd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/opesci/opesci-fd/issues/38/comments","statuses_url":"https://api.github.com/repos/opesci/opesci-fd/statuses/7cf933732e467024bf3da1dc8129b4472aeaae6d","head":{"label":"opesci:feature_deriv","ref":"feature_deriv","sha":"7cf933732e467024bf3da1dc8129b4472aeaae6d","user":{"login":"opesci","id":10018551,"avatar_url":"https://avatars.githubusercontent.com/u/10018551?v=3","gravatar_id":"","url":"https://api.github.com/users/opesci","html_url":"https://github.com/opesci","followers_url":"https://api.github.com/users/opesci/followers","following_url":"https://api.github.com/users/opesci/following{/other_user}","gists_url":"https://api.github.com/users/opesci/gists{/gist_id}","starred_url":"https://api.github.com/users/opesci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opesci/subscriptions","organizations_url":"https://api.github.com/users/opesci/orgs","repos_url":"https://api.github.com/users/opesci/repos","events_url":"https://api.github.com/users/opesci/events{/privacy}","received_events_url":"https://api.github.com/users/opesci/received_events","type":"Organization","site_admin":false},"repo":{"id":32512811,"name":"opesci-fd","full_name":"opesci/opesci-fd","owner":{"login":"opesci","id":10018551,"avatar_url":"https://avatars.githubusercontent.com/u/10018551?v=3","gravatar_id":"","url":"https://api.github.com/users/opesci","html_url":"https://github.com/opesci","followers_url":"https://api.github.com/users/opesci/followers","following_url":"https://api.github.com/users/opesci/following{/other_user}","gists_url":"https://api.github.com/users/opesci/gists{/gist_id}","starred_url":"https://api.github.com/users/opesci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opesci/subscriptions","organizations_url":"https://api.github.com/users/opesci/orgs","repos_url":"https://api.github.com/users/opesci/repos","events_url":"https://api.github.com/users/opesci/events{/privacy}","received_events_url":"https://api.github.com/users/opesci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opesci/opesci-fd","description":"Solvers for 3D wave equation","fork":false,"url":"https://api.github.com/repos/opesci/opesci-fd","forks_url":"https://api.github.com/repos/opesci/opesci-fd/forks","keys_url":"https://api.github.com/repos/opesci/opesci-fd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opesci/opesci-fd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opesci/opesci-fd/teams","hooks_url":"https://api.github.com/repos/opesci/opesci-fd/hooks","issue_events_url":"https://api.github.com/repos/opesci/opesci-fd/issues/events{/number}","events_url":"https://api.github.com/repos/opesci/opesci-fd/events","assignees_url":"https://api.github.com/repos/opesci/opesci-fd/assignees{/user}","branches_url":"https://api.github.com/repos/opesci/opesci-fd/branches{/branch}","tags_url":"https://api.github.com/repos/opesci/opesci-fd/tags","blobs_url":"https://api.github.com/repos/opesci/opesci-fd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opesci/opesci-fd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opesci/opesci-fd/git/refs{/sha}","trees_url":"https://api.github.com/repos/opesci/opesci-fd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opesci/opesci-fd/statuses/{sha}","languages_url":"https://api.github.com/repos/opesci/opesci-fd/languages","stargazers_url":"https://api.github.com/repos/opesci/opesci-fd/stargazers","contributors_url":"https://api.github.com/repos/opesci/opesci-fd/contributors","subscribers_url":"https://api.github.com/repos/opesci/opesci-fd/subscribers","subscription_url":"https://api.github.com/repos/opesci/opesci-fd/subscription","commits_url":"https://api.github.com/repos/opesci/opesci-fd/commits{/sha}","git_commits_url":"https://api.github.com/repos/opesci/opesci-fd/git/commits{/sha}","comments_url":"https://api.github.com/repos/opesci/opesci-fd/comments{/number}","issue_comment_url":"https://api.github.com/repos/opesci/opesci-fd/issues/comments{/number}","contents_url":"https://api.github.com/repos/opesci/opesci-fd/contents/{+path}","compare_url":"https://api.github.com/repos/opesci/opesci-fd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opesci/opesci-fd/merges","archive_url":"https://api.github.com/repos/opesci/opesci-fd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opesci/opesci-fd/downloads","issues_url":"https://api.github.com/repos/opesci/opesci-fd/issues{/number}","pulls_url":"https://api.github.com/repos/opesci/opesci-fd/pulls{/number}","milestones_url":"https://api.github.com/repos/opesci/opesci-fd/milestones{/number}","notifications_url":"https://api.github.com/repos/opesci/opesci-fd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opesci/opesci-fd/labels{/name}","releases_url":"https://api.github.com/repos/opesci/opesci-fd/releases{/id}","created_at":"2015-03-19T09:39:45Z","updated_at":"2015-09-01T19:13:30Z","pushed_at":"2015-09-09T08:59:39Z","git_url":"git://github.com/opesci/opesci-fd.git","ssh_url":"git@github.com:opesci/opesci-fd.git","clone_url":"https://github.com/opesci/opesci-fd.git","svn_url":"https://github.com/opesci/opesci-fd","homepage":null,"size":2155,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":12,"forks":4,"open_issues":12,"watchers":1,"default_branch":"master"}},"base":{"label":"opesci:master","ref":"master","sha":"9a7509b31aef862c3bc3cb29b0ac370461ce735c","user":{"login":"opesci","id":10018551,"avatar_url":"https://avatars.githubusercontent.com/u/10018551?v=3","gravatar_id":"","url":"https://api.github.com/users/opesci","html_url":"https://github.com/opesci","followers_url":"https://api.github.com/users/opesci/followers","following_url":"https://api.github.com/users/opesci/following{/other_user}","gists_url":"https://api.github.com/users/opesci/gists{/gist_id}","starred_url":"https://api.github.com/users/opesci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opesci/subscriptions","organizations_url":"https://api.github.com/users/opesci/orgs","repos_url":"https://api.github.com/users/opesci/repos","events_url":"https://api.github.com/users/opesci/events{/privacy}","received_events_url":"https://api.github.com/users/opesci/received_events","type":"Organization","site_admin":false},"repo":{"id":32512811,"name":"opesci-fd","full_name":"opesci/opesci-fd","owner":{"login":"opesci","id":10018551,"avatar_url":"https://avatars.githubusercontent.com/u/10018551?v=3","gravatar_id":"","url":"https://api.github.com/users/opesci","html_url":"https://github.com/opesci","followers_url":"https://api.github.com/users/opesci/followers","following_url":"https://api.github.com/users/opesci/following{/other_user}","gists_url":"https://api.github.com/users/opesci/gists{/gist_id}","starred_url":"https://api.github.com/users/opesci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opesci/subscriptions","organizations_url":"https://api.github.com/users/opesci/orgs","repos_url":"https://api.github.com/users/opesci/repos","events_url":"https://api.github.com/users/opesci/events{/privacy}","received_events_url":"https://api.github.com/users/opesci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opesci/opesci-fd","description":"Solvers for 3D wave equation","fork":false,"url":"https://api.github.com/repos/opesci/opesci-fd","forks_url":"https://api.github.com/repos/opesci/opesci-fd/forks","keys_url":"https://api.github.com/repos/opesci/opesci-fd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opesci/opesci-fd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opesci/opesci-fd/teams","hooks_url":"https://api.github.com/repos/opesci/opesci-fd/hooks","issue_events_url":"https://api.github.com/repos/opesci/opesci-fd/issues/events{/number}","events_url":"https://api.github.com/repos/opesci/opesci-fd/events","assignees_url":"https://api.github.com/repos/opesci/opesci-fd/assignees{/user}","branches_url":"https://api.github.com/repos/opesci/opesci-fd/branches{/branch}","tags_url":"https://api.github.com/repos/opesci/opesci-fd/tags","blobs_url":"https://api.github.com/repos/opesci/opesci-fd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opesci/opesci-fd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opesci/opesci-fd/git/refs{/sha}","trees_url":"https://api.github.com/repos/opesci/opesci-fd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opesci/opesci-fd/statuses/{sha}","languages_url":"https://api.github.com/repos/opesci/opesci-fd/languages","stargazers_url":"https://api.github.com/repos/opesci/opesci-fd/stargazers","contributors_url":"https://api.github.com/repos/opesci/opesci-fd/contributors","subscribers_url":"https://api.github.com/repos/opesci/opesci-fd/subscribers","subscription_url":"https://api.github.com/repos/opesci/opesci-fd/subscription","commits_url":"https://api.github.com/repos/opesci/opesci-fd/commits{/sha}","git_commits_url":"https://api.github.com/repos/opesci/opesci-fd/git/commits{/sha}","comments_url":"https://api.github.com/repos/opesci/opesci-fd/comments{/number}","issue_comment_url":"https://api.github.com/repos/opesci/opesci-fd/issues/comments{/number}","contents_url":"https://api.github.com/repos/opesci/opesci-fd/contents/{+path}","compare_url":"https://api.github.com/repos/opesci/opesci-fd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opesci/opesci-fd/merges","archive_url":"https://api.github.com/repos/opesci/opesci-fd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opesci/opesci-fd/downloads","issues_url":"https://api.github.com/repos/opesci/opesci-fd/issues{/number}","pulls_url":"https://api.github.com/repos/opesci/opesci-fd/pulls{/number}","milestones_url":"https://api.github.com/repos/opesci/opesci-fd/milestones{/number}","notifications_url":"https://api.github.com/repos/opesci/opesci-fd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opesci/opesci-fd/labels{/name}","releases_url":"https://api.github.com/repos/opesci/opesci-fd/releases{/id}","created_at":"2015-03-19T09:39:45Z","updated_at":"2015-09-01T19:13:30Z","pushed_at":"2015-09-09T08:59:39Z","git_url":"git://github.com/opesci/opesci-fd.git","ssh_url":"git@github.com:opesci/opesci-fd.git","clone_url":"https://github.com/opesci/opesci-fd.git","svn_url":"https://github.com/opesci/opesci-fd","homepage":null,"size":2155,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":12,"forks":4,"open_issues":12,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/opesci/opesci-fd/pulls/38"},"html":{"href":"https://github.com/opesci/opesci-fd/pull/38"},"issue":{"href":"https://api.github.com/repos/opesci/opesci-fd/issues/38"},"comments":{"href":"https://api.github.com/repos/opesci/opesci-fd/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/opesci/opesci-fd/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/opesci/opesci-fd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/opesci/opesci-fd/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/opesci/opesci-fd/statuses/7cf933732e467024bf3da1dc8129b4472aeaae6d"}}}}