Skip to content

Allow for specifying ramp start and ramp end in RampOffWaveform - #1714

Merged
jcapriot merged 11 commits into
simpeg:mainfrom
jcapriot:ramp_waveform_updates
Oct 22, 2025
Merged

jcapriot merged 11 commits into
simpeg:mainfrom
jcapriot:ramp_waveform_updates

Conversation

@jcapriot

@jcapriot jcapriot commented Oct 15, 2025 •

Copy link
Copy Markdown
Member

Summary

Allows for specifying ramp start and end times for the ramp off waveform

Squash and Merge summary

Allow passing ramp_start and ramp_end to the RampOffWaveform TDEM source and fix issue with waveform being wrong on times before -epsilon. Deprecate the off_time argument.

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.

Fixes

Corrects waveform for times less than epsilon, Previously the waveform would be zero if evaluated at times before -epsilon, when it should be 1 (on)

@codecov

codecov Bot commented Oct 15, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.52%. Comparing base (45c3bc9) to head (2d0981c).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1714      +/-   ##
==========================================
+ Coverage   81.48%   81.52%   +0.04%     
==========================================
  Files         420      420              
  Lines       55056    55174     +118     
  Branches     5240     5254      +14     
==========================================
+ Hits        44861    44980     +119     
  Misses       8789     8789              
+ Partials     1406     1405       -1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jcapriot
jcapriot marked this pull request as ready for review October 21, 2025 14:51
@jcapriot jcapriot self-assigned this Oct 21, 2025
@jcapriot
jcapriot requested a review from santisoler October 21, 2025 19:02

@santisoler santisoler left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for taking care of this. I like where it's going. I left a few comments below.

@jcapriot

Copy link
Copy Markdown
Member Author

This should be ready to merge now (assuming tests pass). The behavior of inputs should behave exactly like np.arange now.

  • allows for flexible input of start and end times by either keyword or position.
  • disallows off_time and ramp_end at the same time.
  • provides a remark that off_time is deprecated input.

@jcapriot jcapriot added this to the 0.25.0 milestone Oct 22, 2025

@santisoler santisoler left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I left two minor suggestions. Feel free to merge when ready!

Co-authored-by: Santiago Soler <[email protected]>
@santisoler santisoler changed the title allow for specifying ramp start and ramp end Allow for specifying ramp start and ramp end in RampOffWaveform Oct 22, 2025
@jcapriot
jcapriot merged commit 625bad3 into simpeg:main Oct 22, 2025
@jcapriot
jcapriot deleted the ramp_waveform_updates branch October 22, 2025 21:52
@santisoler santisoler mentioned this pull request Jan 21, 2026
4 tasks
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