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

djs/Fix large reference offset issue #248

Merged
merged 3 commits into from
May 9, 2023

Conversation

deepanshs
Copy link
Owner

@deepanshs deepanshs commented May 6, 2023

Fixes bug where the origin offset was incorrectly saved in the simulation csdm object.

Before
origin_offset = np.abs(B0 * gyromagnetic_ratio * 1e6)

Now
origin_offset = np.abs(B0 * gyromagnetic_ratio * 1e6) + reference_offset

@codecov
Copy link

codecov bot commented May 6, 2023

Codecov Report

Merging #248 (688cdda) into master (a43b427) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #248   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          111       111           
  Lines         7138      7150   +12     
=========================================
+ Hits          7138      7150   +12     
Impacted Files Coverage Δ
src/mrsimulator/simulator/__init__.py 100.00% <100.00%> (ø)
tests/test_shift.py 100.00% <100.00%> (ø)

@deepanshs deepanshs marked this pull request as ready for review May 9, 2023 13:24
@mgiammar mgiammar merged commit bc8305b into master May 9, 2023
@deepanshs deepanshs deleted the djs/fix_large_ref_offset_issue branch May 15, 2023 14:01
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