Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some deriv definition parameters in maps #1407

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

YingHuuu
Copy link
Contributor

@YingHuuu YingHuuu commented Apr 6, 2024

Summary

Debug some definition missing v

Summary for Squash and Merge:

def deriv(self, m, v=None):
change the definition to such format and get a right derivative of the mapping with respect to the input parameters.

Reference issue

Closes #1389

What does this implement/fix?

Add the conditional judgment:
if v is not None
Maybe the corresponding description should be changed, too.

@YingHuuu
Copy link
Contributor Author

YingHuuu commented Apr 6, 2024

@jcapriot Hi, Joe! I have added some v in the maps you mentioned. I am not sure if my understanding is correct. If I did wrong, would you like to tell me the reasons? I'll correct them sooner.

Copy link

codecov bot commented Apr 15, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 82.52%. Comparing base (fa5d794) to head (4284da0).

Files Patch % Lines
SimPEG/maps.py 50.00% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1407      +/-   ##
==========================================
+ Coverage   74.16%   82.52%   +8.36%     
==========================================
  Files         167      167              
  Lines       25700    25710      +10     
==========================================
+ Hits        19060    21218    +2158     
+ Misses       6640     4492    -2148     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Inconsistent deriv definition in maps
1 participant