{"action":"created","comment":{"url":"https://api.github.com/repos/simpeg/simpeg/pulls/comments/88789994","pull_request_review_id":9354569,"id":88789994,"diff_hunk":"@@ -361,20 +441,41 @@ def getADeriv(self, freq, u, v, adjoint=False):\n         MeSigmaIDeriv = MeSigmaIDeriv(vec)\n \n         if adjoint:\n-            if self._makeASymmetric is True:\n-                v = MfMui * v\n             return MeSigmaIDeriv.T * (C.T * v)\n-\n-        if self._makeASymmetric is True:\n-            return MfMui.T * (C * (MeSigmaIDeriv * v))\n         return C * (MeSigmaIDeriv * v)\n \n+    def getADeriv_mui(self, freq, u, v, adjoint=False):\n+\n+        MfMui = self.MfMui\n+        MfMuiDeriv = self.MfMuiDeriv(u)\n+        MeSigmaI = self.MeSigmaI\n+        C = self.mesh.edgeCurl\n+\n+        if adjoint:\n+            return MfMuiDeriv.T * (C * (MeSigmaI.T * (C.T * v)))\n+        return C * (MeSigmaI * (C.T * (MfMuiDeriv * v)))\n+\n+    def getADeriv(self, freq, u, v, adjoint=False):\n+        if adjoint is True and self._makeASymmetric:\n+            v = self.MfMui * v\n+\n+        ADeriv =  (\n+            self.getADeriv_sigma(freq, u, v, adjoint) +\n+            self.getADeriv_mui(freq, u, v, adjoint)","path":"SimPEG/EM/FDEM/ProblemFDEM.py","position":382,"original_position":382,"commit_id":"52a10676ea4b0400d42a295d9b159bc44f866b25","original_commit_id":"52a10676ea4b0400d42a295d9b159bc44f866b25","user":{"login":"rowanc1","id":913249,"avatar_url":"https://avatars.githubusercontent.com/u/913249?v=3","gravatar_id":"","url":"https://api.github.com/users/rowanc1","html_url":"https://github.com/rowanc1","followers_url":"https://api.github.com/users/rowanc1/followers","following_url":"https://api.github.com/users/rowanc1/following{/other_user}","gists_url":"https://api.github.com/users/rowanc1/gists{/gist_id}","starred_url":"https://api.github.com/users/rowanc1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowanc1/subscriptions","organizations_url":"https://api.github.com/users/rowanc1/orgs","repos_url":"https://api.github.com/users/rowanc1/repos","events_url":"https://api.github.com/users/rowanc1/events{/privacy}","received_events_url":"https://api.github.com/users/rowanc1/received_events","type":"User","site_admin":false},"body":"ha. so easy.","created_at":"2016-11-19T23:18:27Z","updated_at":"2016-11-19T23:18:27Z","html_url":"https://github.com/simpeg/simpeg/pull/508#discussion_r88789994","pull_request_url":"https://api.github.com/repos/simpeg/simpeg/pulls/508","_links":{"self":{"href":"https://api.github.com/repos/simpeg/simpeg/pulls/comments/88789994"},"html":{"href":"https://github.com/simpeg/simpeg/pull/508#discussion_r88789994"},"pull_request":{"href":"https://api.github.com/repos/simpeg/simpeg/pulls/508"}}},"pull_request":{"url":"https://api.github.com/repos/simpeg/simpeg/pulls/508","id":94286385,"html_url":"https://github.com/simpeg/simpeg/pull/508","diff_url":"https://github.com/simpeg/simpeg/pull/508.diff","patch_url":"https://github.com/simpeg/simpeg/pull/508.patch","issue_url":"https://api.github.com/repos/simpeg/simpeg/issues/508","number":508,"state":"open","locked":false,"title":"Em/feat/muinversion","user":{"login":"lheagy","id":6361812,"avatar_url":"https://avatars.githubusercontent.com/u/6361812?v=3","gravatar_id":"","url":"https://api.github.com/users/lheagy","html_url":"https://github.com/lheagy","followers_url":"https://api.github.com/users/lheagy/followers","following_url":"https://api.github.com/users/lheagy/following{/other_user}","gists_url":"https://api.github.com/users/lheagy/gists{/gist_id}","starred_url":"https://api.github.com/users/lheagy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lheagy/subscriptions","organizations_url":"https://api.github.com/users/lheagy/orgs","repos_url":"https://api.github.com/users/lheagy/repos","events_url":"https://api.github.com/users/lheagy/events{/privacy}","received_events_url":"https://api.github.com/users/lheagy/received_events","type":"User","site_admin":false},"body":"Machinery to invert for magnetic permeability from FDEM data\r\n- derivatives and tests for all 4 FDEM formulations\r\n- example of inverting for mu_r (relative permeability)\r\n- addition of a Mu_relative map, ChiMap\r\n- Cyl-mesh specific interpolation (important for CCV interpolation) \r\n\r\n![image](https://cloud.githubusercontent.com/assets/6361812/20415559/f53bb12c-aced-11e6-91fd-1daa82fa9af0.png)\r\n\r\n@rowanc1 : could you take a look? \r\n","created_at":"2016-11-18T01:22:17Z","updated_at":"2016-11-19T23:32:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c0ad5fb4bb0bbac982865ebb6b3aa73cc555a1b7","assignee":{"login":"rowanc1","id":913249,"avatar_url":"https://avatars.githubusercontent.com/u/913249?v=3","gravatar_id":"","url":"https://api.github.com/users/rowanc1","html_url":"https://github.com/rowanc1","followers_url":"https://api.github.com/users/rowanc1/followers","following_url":"https://api.github.com/users/rowanc1/following{/other_user}","gists_url":"https://api.github.com/users/rowanc1/gists{/gist_id}","starred_url":"https://api.github.com/users/rowanc1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowanc1/subscriptions","organizations_url":"https://api.github.com/users/rowanc1/orgs","repos_url":"https://api.github.com/users/rowanc1/repos","events_url":"https://api.github.com/users/rowanc1/events{/privacy}","received_events_url":"https://api.github.com/users/rowanc1/received_events","type":"User","site_admin":false},"assignees":[{"login":"rowanc1","id":913249,"avatar_url":"https://avatars.githubusercontent.com/u/913249?v=3","gravatar_id":"","url":"https://api.github.com/users/rowanc1","html_url":"https://github.com/rowanc1","followers_url":"https://api.github.com/users/rowanc1/followers","following_url":"https://api.github.com/users/rowanc1/following{/other_user}","gists_url":"https://api.github.com/users/rowanc1/gists{/gist_id}","starred_url":"https://api.github.com/users/rowanc1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowanc1/subscriptions","organizations_url":"https://api.github.com/users/rowanc1/orgs","repos_url":"https://api.github.com/users/rowanc1/repos","events_url":"https://api.github.com/users/rowanc1/events{/privacy}","received_events_url":"https://api.github.com/users/rowanc1/received_events","type":"User","site_admin":false},{"login":"lheagy","id":6361812,"avatar_url":"https://avatars.githubusercontent.com/u/6361812?v=3","gravatar_id":"","url":"https://api.github.com/users/lheagy","html_url":"https://github.com/lheagy","followers_url":"https://api.github.com/users/lheagy/followers","following_url":"https://api.github.com/users/lheagy/following{/other_user}","gists_url":"https://api.github.com/users/lheagy/gists{/gist_id}","starred_url":"https://api.github.com/users/lheagy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lheagy/subscriptions","organizations_url":"https://api.github.com/users/lheagy/orgs","repos_url":"https://api.github.com/users/lheagy/repos","events_url":"https://api.github.com/users/lheagy/events{/privacy}","received_events_url":"https://api.github.com/users/lheagy/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/simpeg/simpeg/pulls/508/commits","review_comments_url":"https://api.github.com/repos/simpeg/simpeg/pulls/508/comments","review_comment_url":"https://api.github.com/repos/simpeg/simpeg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/simpeg/simpeg/issues/508/comments","statuses_url":"https://api.github.com/repos/simpeg/simpeg/statuses/52a10676ea4b0400d42a295d9b159bc44f866b25","head":{"label":"simpeg:em/feat/muinversion","ref":"em/feat/muinversion","sha":"52a10676ea4b0400d42a295d9b159bc44f866b25","user":{"login":"simpeg","id":6043842,"avatar_url":"https://avatars.githubusercontent.com/u/6043842?v=3","gravatar_id":"","url":"https://api.github.com/users/simpeg","html_url":"https://github.com/simpeg","followers_url":"https://api.github.com/users/simpeg/followers","following_url":"https://api.github.com/users/simpeg/following{/other_user}","gists_url":"https://api.github.com/users/simpeg/gists{/gist_id}","starred_url":"https://api.github.com/users/simpeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simpeg/subscriptions","organizations_url":"https://api.github.com/users/simpeg/orgs","repos_url":"https://api.github.com/users/simpeg/repos","events_url":"https://api.github.com/users/simpeg/events{/privacy}","received_events_url":"https://api.github.com/users/simpeg/received_events","type":"Organization","site_admin":false},"repo":{"id":14727320,"name":"simpeg","full_name":"simpeg/simpeg","owner":{"login":"simpeg","id":6043842,"avatar_url":"https://avatars.githubusercontent.com/u/6043842?v=3","gravatar_id":"","url":"https://api.github.com/users/simpeg","html_url":"https://github.com/simpeg","followers_url":"https://api.github.com/users/simpeg/followers","following_url":"https://api.github.com/users/simpeg/following{/other_user}","gists_url":"https://api.github.com/users/simpeg/gists{/gist_id}","starred_url":"https://api.github.com/users/simpeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simpeg/subscriptions","organizations_url":"https://api.github.com/users/simpeg/orgs","repos_url":"https://api.github.com/users/simpeg/repos","events_url":"https://api.github.com/users/simpeg/events{/privacy}","received_events_url":"https://api.github.com/users/simpeg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/simpeg/simpeg","description":"Simulation and Parameter Estimation in Geophysics  -  A python package for simulation and gradient based parameter estimation in the context of geophysical applications.","fork":false,"url":"https://api.github.com/repos/simpeg/simpeg","forks_url":"https://api.github.com/repos/simpeg/simpeg/forks","keys_url":"https://api.github.com/repos/simpeg/simpeg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/simpeg/simpeg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/simpeg/simpeg/teams","hooks_url":"https://api.github.com/repos/simpeg/simpeg/hooks","issue_events_url":"https://api.github.com/repos/simpeg/simpeg/issues/events{/number}","events_url":"https://api.github.com/repos/simpeg/simpeg/events","assignees_url":"https://api.github.com/repos/simpeg/simpeg/assignees{/user}","branches_url":"https://api.github.com/repos/simpeg/simpeg/branches{/branch}","tags_url":"https://api.github.com/repos/simpeg/simpeg/tags","blobs_url":"https://api.github.com/repos/simpeg/simpeg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/simpeg/simpeg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/simpeg/simpeg/git/refs{/sha}","trees_url":"https://api.github.com/repos/simpeg/simpeg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/simpeg/simpeg/statuses/{sha}","languages_url":"https://api.github.com/repos/simpeg/simpeg/languages","stargazers_url":"https://api.github.com/repos/simpeg/simpeg/stargazers","contributors_url":"https://api.github.com/repos/simpeg/simpeg/contributors","subscribers_url":"https://api.github.com/repos/simpeg/simpeg/subscribers","subscription_url":"https://api.github.com/repos/simpeg/simpeg/subscription","commits_url":"https://api.github.com/repos/simpeg/simpeg/commits{/sha}","git_commits_url":"https://api.github.com/repos/simpeg/simpeg/git/commits{/sha}","comments_url":"https://api.github.com/repos/simpeg/simpeg/comments{/number}","issue_comment_url":"https://api.github.com/repos/simpeg/simpeg/issues/comments{/number}","contents_url":"https://api.github.com/repos/simpeg/simpeg/contents/{+path}","compare_url":"https://api.github.com/repos/simpeg/simpeg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/simpeg/simpeg/merges","archive_url":"https://api.github.com/repos/simpeg/simpeg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/simpeg/simpeg/downloads","issues_url":"https://api.github.com/repos/simpeg/simpeg/issues{/number}","pulls_url":"https://api.github.com/repos/simpeg/simpeg/pulls{/number}","milestones_url":"https://api.github.com/repos/simpeg/simpeg/milestones{/number}","notifications_url":"https://api.github.com/repos/simpeg/simpeg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/simpeg/simpeg/labels{/name}","releases_url":"https://api.github.com/repos/simpeg/simpeg/releases{/id}","deployments_url":"https://api.github.com/repos/simpeg/simpeg/deployments","created_at":"2013-11-26T19:46:36Z","updated_at":"2016-11-08T06:00:45Z","pushed_at":"2016-11-18T03:12:18Z","git_url":"git://github.com/simpeg/simpeg.git","ssh_url":"git@github.com:simpeg/simpeg.git","clone_url":"https://github.com/simpeg/simpeg.git","svn_url":"https://github.com/simpeg/simpeg","homepage":"http://simpeg.xyz","size":50993,"stargazers_count":35,"watchers_count":35,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":86,"forks":15,"open_issues":86,"watchers":35,"default_branch":"master"}},"base":{"label":"simpeg:em/dev","ref":"em/dev","sha":"f852373c4e5882ed8c4e27c9636da0e420c5d10a","user":{"login":"simpeg","id":6043842,"avatar_url":"https://avatars.githubusercontent.com/u/6043842?v=3","gravatar_id":"","url":"https://api.github.com/users/simpeg","html_url":"https://github.com/simpeg","followers_url":"https://api.github.com/users/simpeg/followers","following_url":"https://api.github.com/users/simpeg/following{/other_user}","gists_url":"https://api.github.com/users/simpeg/gists{/gist_id}","starred_url":"https://api.github.com/users/simpeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simpeg/subscriptions","organizations_url":"https://api.github.com/users/simpeg/orgs","repos_url":"https://api.github.com/users/simpeg/repos","events_url":"https://api.github.com/users/simpeg/events{/privacy}","received_events_url":"https://api.github.com/users/simpeg/received_events","type":"Organization","site_admin":false},"repo":{"id":14727320,"name":"simpeg","full_name":"simpeg/simpeg","owner":{"login":"simpeg","id":6043842,"avatar_url":"https://avatars.githubusercontent.com/u/6043842?v=3","gravatar_id":"","url":"https://api.github.com/users/simpeg","html_url":"https://github.com/simpeg","followers_url":"https://api.github.com/users/simpeg/followers","following_url":"https://api.github.com/users/simpeg/following{/other_user}","gists_url":"https://api.github.com/users/simpeg/gists{/gist_id}","starred_url":"https://api.github.com/users/simpeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simpeg/subscriptions","organizations_url":"https://api.github.com/users/simpeg/orgs","repos_url":"https://api.github.com/users/simpeg/repos","events_url":"https://api.github.com/users/simpeg/events{/privacy}","received_events_url":"https://api.github.com/users/simpeg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/simpeg/simpeg","description":"Simulation and Parameter Estimation in Geophysics  -  A python package for simulation and gradient based parameter estimation in the context of geophysical applications.","fork":false,"url":"https://api.github.com/repos/simpeg/simpeg","forks_url":"https://api.github.com/repos/simpeg/simpeg/forks","keys_url":"https://api.github.com/repos/simpeg/simpeg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/simpeg/simpeg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/simpeg/simpeg/teams","hooks_url":"https://api.github.com/repos/simpeg/simpeg/hooks","issue_events_url":"https://api.github.com/repos/simpeg/simpeg/issues/events{/number}","events_url":"https://api.github.com/repos/simpeg/simpeg/events","assignees_url":"https://api.github.com/repos/simpeg/simpeg/assignees{/user}","branches_url":"https://api.github.com/repos/simpeg/simpeg/branches{/branch}","tags_url":"https://api.github.com/repos/simpeg/simpeg/tags","blobs_url":"https://api.github.com/repos/simpeg/simpeg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/simpeg/simpeg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/simpeg/simpeg/git/refs{/sha}","trees_url":"https://api.github.com/repos/simpeg/simpeg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/simpeg/simpeg/statuses/{sha}","languages_url":"https://api.github.com/repos/simpeg/simpeg/languages","stargazers_url":"https://api.github.com/repos/simpeg/simpeg/stargazers","contributors_url":"https://api.github.com/repos/simpeg/simpeg/contributors","subscribers_url":"https://api.github.com/repos/simpeg/simpeg/subscribers","subscription_url":"https://api.github.com/repos/simpeg/simpeg/subscription","commits_url":"https://api.github.com/repos/simpeg/simpeg/commits{/sha}","git_commits_url":"https://api.github.com/repos/simpeg/simpeg/git/commits{/sha}","comments_url":"https://api.github.com/repos/simpeg/simpeg/comments{/number}","issue_comment_url":"https://api.github.com/repos/simpeg/simpeg/issues/comments{/number}","contents_url":"https://api.github.com/repos/simpeg/simpeg/contents/{+path}","compare_url":"https://api.github.com/repos/simpeg/simpeg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/simpeg/simpeg/merges","archive_url":"https://api.github.com/repos/simpeg/simpeg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/simpeg/simpeg/downloads","issues_url":"https://api.github.com/repos/simpeg/simpeg/issues{/number}","pulls_url":"https://api.github.com/repos/simpeg/simpeg/pulls{/number}","milestones_url":"https://api.github.com/repos/simpeg/simpeg/milestones{/number}","notifications_url":"https://api.github.com/repos/simpeg/simpeg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/simpeg/simpeg/labels{/name}","releases_url":"https://api.github.com/repos/simpeg/simpeg/releases{/id}","deployments_url":"https://api.github.com/repos/simpeg/simpeg/deployments","created_at":"2013-11-26T19:46:36Z","updated_at":"2016-11-08T06:00:45Z","pushed_at":"2016-11-18T03:12:18Z","git_url":"git://github.com/simpeg/simpeg.git","ssh_url":"git@github.com:simpeg/simpeg.git","clone_url":"https://github.com/simpeg/simpeg.git","svn_url":"https://github.com/simpeg/simpeg","homepage":"http://simpeg.xyz","size":50993,"stargazers_count":35,"watchers_count":35,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":86,"forks":15,"open_issues":86,"watchers":35,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/simpeg/simpeg/pulls/508"},"html":{"href":"https://github.com/simpeg/simpeg/pull/508"},"issue":{"href":"https://api.github.com/repos/simpeg/simpeg/issues/508"},"comments":{"href":"https://api.github.com/repos/simpeg/simpeg/issues/508/comments"},"review_comments":{"href":"https://api.github.com/repos/simpeg/simpeg/pulls/508/comments"},"review_comment":{"href":"https://api.github.com/repos/simpeg/simpeg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/simpeg/simpeg/pulls/508/commits"},"statuses":{"href":"https://api.github.com/repos/simpeg/simpeg/statuses/52a10676ea4b0400d42a295d9b159bc44f866b25"}}}}
{"actor":{"display_login":"rowanc1"}}