Skip to content

Compare the nickel resampling against the reference data - #387

Merged
sbillinge merged 1 commit into
diffpy:mainfrom
CAOShurong:docs/nickel-reference-resampling
Nov 22, 2026
Merged

sbillinge merged 1 commit into
diffpy:mainfrom
CAOShurong:docs/nickel-reference-resampling

Conversation

@CAOShurong

Copy link
Copy Markdown
Contributor

What problem does this PR address?

The nickel resampling example reads both files but uses the coarse dataset for both curves. That makes the plotted residual zero and hides the difference between the 601-point sample and the 6001-point reference. The last example also constructs a tuple without calling nsinterp.

The revised example evaluates wsinterp on the reference grid. With the supplied files the maximum absolute residual is about 0.0063, and the two curves agree at the original sample positions. Refs #382.

What should the reviewer(s) do?

Review the revised comparison and the Nyquist sampling explanation. All four example blocks were run with the bundled data.

@codecov

codecov Bot commented Nov 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (03804ed) to head (b2c4a39).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #387   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           10        10           
  Lines          567       567           
=========================================
  Hits           567       567           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sbillinge

Copy link
Copy Markdown
Contributor

Thanks @CAOShurong this looks good. Thanks for catching and fixing that!

@sbillinge
sbillinge merged commit ed7e2be into diffpy:main Nov 22, 2026
7 checks passed
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