Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jcapriot
Copy link
Member

Summary

Allows users to control the type of the stored sensitivity matrix.

PR Checklist

  • If this is a work in progress PR, set as a Draft PR
  • Linted my code according to the style guides.
  • Added tests to verify changes to the code.
  • Added necessary documentation to any new functions/classes following the
    expect style.
  • Marked as ready for review (if this is was a draft PR), and converted
    to a Pull Request
  • Tagged @simpeg/simpeg-developers when ready for review.

What does this implement/fix?

In the non-dask version the sensitivity was being stored as a np.float64 implicitly. This changes it to be in line with the dask version (np.float32), but also now allows the user to change the default if they so desire.

jcapriot added 2 commits July 12, 2023 13:52
This also avoids double storing the sensitivity matrix when concatenating it.
@codecov
Copy link

codecov bot commented Jul 12, 2023

Codecov Report

Merging #1261 (8ebe779) into main (e738320) will increase coverage by 0.85%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1261      +/-   ##
==========================================
+ Coverage   81.54%   82.40%   +0.85%     
==========================================
  Files         164      164              
  Lines       25073    25095      +22     
==========================================
+ Hits        20447    20679     +232     
+ Misses       4626     4416     -210     
Impacted Files Coverage Δ
SimPEG/dask/potential_fields/base.py 90.90% <ø> (ø)
SimPEG/potential_fields/base.py 64.53% <100.00%> (+5.20%) ⬆️
SimPEG/potential_fields/gravity/simulation.py 77.31% <100.00%> (ø)
SimPEG/potential_fields/magnetics/simulation.py 71.73% <100.00%> (ø)

... and 14 files with indirect coverage changes

@jcapriot jcapriot merged commit 07085d9 into simpeg:main Jul 13, 2023
@jcapriot jcapriot deleted the PF_senstivity_dtype branch July 13, 2023 16:27
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.

2 participants