Skip to content

feat: support multiple-contribution refinement - #32

Open
ycexiao wants to merge 3 commits into
diffpy:mainfrom
ycexiao:multiple-contribution
Open

feat: support multiple-contribution refinement#32
ycexiao wants to merge 3 commits into
diffpy:mainfrom
ycexiao:multiple-contribution

Conversation

@ycexiao

@ycexiao ycexiao commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

What problem does this PR address?

Enable diffpy.apps to solve problems like https://github.com/diffpy/diffpy.srfit/blob/main/docs/examples/crystalpdfall.py involves creating recipe with multiple contributions.

What should the reviewer(s) do?

@codecov

codecov Bot commented Sep 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.43%. Comparing base (ae57d1b) to head (39b6d55).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #32      +/-   ##
==========================================
+ Coverage   96.56%   97.43%   +0.87%     
==========================================
  Files           8        8              
  Lines         320      429     +109     
==========================================
+ Hits          309      418     +109     
  Misses         11       11              
Files with missing lines Coverage Δ
tests/conftest.py 70.00% <ø> (-11.25%) ⬇️
tests/helper.py 98.75% <100.00%> (+1.87%) ⬆️
tests/test_parametric_model.py 100.00% <100.00%> (ø)
tests/test_pdfadapter.py 100.00% <100.00%> (ø)
tests/test_refinement_server.py 100.00% <100.00%> (ø)
tests/test_refinement_session.py 100.00% <100.00%> (ø)
tests/test_runmacro.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ycexiao ycexiao left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@sbillinge, it's ready for review.

Comment thread tests/conftest.py
return sine_profile


@pytest.fixture(scope="session")

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This fixture has been moved to helper.py as a helper function, where all cmi PDF refinement examples will be located.

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