Skip to content

add d_to_tth, tth_to_d - #199

Merged
sbillinge merged 5 commits into
diffpy:mainfrom
yucongalicechen:d-tth
Dec 7, 2024
Merged

add d_to_tth, tth_to_d#199
sbillinge merged 5 commits into
diffpy:mainfrom
yucongalicechen:d-tth

Conversation

@yucongalicechen

Copy link
Copy Markdown
Contributor

closes#175
@sbillinge ready for review

Comment threadsrc/diffpy/utils/transforms.py
@codecov

codecovBot commented Dec 6, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.49%. Comparing base (3aef608) to head (73d801f).
Report is 16 commits behind head on main.

Additional details and impacted files
@@ Coverage Diff @@## main #199 +/- ##
==========================================
+ Coverage 94.37% 96.49% +2.11% 
==========================================
Files 8 8 Lines 320 342 +22 ==========================================
+ Hits 302 330 +28 + Misses 18 12 -6 
Files with missing linesCoverage Δ
tests/test_transforms.py100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

@sbillinge

Copy link
Copy Markdown
Contributor

@yucongalicechen this looks good, but I made a small tweak to an error message in the other PR so this is now conflicted. Please can you merge main, keeping the new message, to resolve this, and then I can merge it.

[np.array([5 * np.pi, 4 * np.pi, 3 * np.pi, 2 * np.pi, np.pi, 0])],
np.array([0.4, 0.5, 0.66667, 1, 2, np.inf]),
[np.array([0, 1 * np.pi, 2 * np.pi, 3 * np.pi, 4 * np.pi, 5 * np.pi])],
np.array([np.inf, 2, 1, 0.66667, 0.5, 0.4]),

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

small edit so that we have an increasing qarray

@sbillinge
sbillinge merged commit 08de7c9 into diffpy:mainDec 7, 2024
@yucongalicechen
yucongalicechen deleted the d-tth branch December 7, 2024 01:28
Sign up for freeto 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.

diffraction objects implement d_to_tth, tth_to_d

2 participants

@yucongalicechen@sbillinge