FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: Replaced deprecated `setScatteringFactorTableByType` with `scatteringfactortable` by cadenmyers13 · Pull Request #225 · diffpy/diffpy.srfit · GitHub

Repository navigation

fix: Replaced deprecated setScatteringFactorTableByType with scatteringfactortable - #225

Merged
sbillinge merged 2 commits into
diffpy:mainfrom
cadenmyers13:replace-sft-by-type
Oct 13, 2026
Merged

sbillinge merged 2 commits into
diffpy:mainfrom
cadenmyers13:replace-sft-by-type

Conversation

Copy link
Copy Markdown
Contributor

Closes #137

diffpy.srreal deprecates setScatteringFactorTableByType in favor of assigning the scatteringfactortable property, which accepts the same type strings.

cadenmyers13 and others added 2 commits October 13, 2026 15:08
…rator

diffpy.srreal deprecates setScatteringFactorTableByType in favor of
assigning the scatteringfactortable property, which accepts the same
type strings. Add tests for setScatteringType covering X, N, E, a
registered long name and an unknown type.

Closes diffpy#137

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keep only the update of the reference calculation in testGenerator.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Copy link
Copy Markdown
Contributor Author

@sbillinge ready for review

codecov Bot commented Oct 13, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 85.13%. Comparing base (a9eae82) to head (4572e85).
⚠️ Report is 20 commits behind head on main.

Files with missing lines Patch % Lines
tests/test_pdfgenerator.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #225       +/-   ##
===========================================
+ Coverage   71.63%   85.13%   +13.50%     
===========================================
  Files          25       43       +18     
  Lines        3437     4751     +1314     
===========================================
+ Hits         2462     4045     +1583     
+ Misses        975      706      -269     
Files with missing lines Coverage Δ
tests/test_pdfgenerator.py 16.66% <0.00%> (ø)

... and 21 files with indirect coverage changes

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

sbillinge merged commit 93a1e50 into diffpy:main Oct 13, 2026
6 of 7 checks passed
cadenmyers13 deleted the replace-sft-by-type branch October 14, 2026 15:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

chore: replace the call to setScatteringFactorTableByType

2 participants


Back | FazBrowse Home | New Git URL