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

chore: fix examples by ycexiao · Pull Request #131 · diffpy/diffpy.srfit · GitHub

Repository navigation

chore: fix examples - #131

Merged
sbillinge merged 1 commit into
diffpy:mainfrom
ycexiao:fix-examples
Aug 6, 2025
Merged

sbillinge merged 1 commit into
diffpy:mainfrom
ycexiao:fix-examples

Conversation

ycexiao commented Aug 6, 2025

Copy link
Copy Markdown
Contributor

What problem does this PR address

Fix failed examples as mentioned in #119 (comment)

codecov Bot commented Aug 6, 2025 •
edited
Loading

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.60%. Comparing base (de32312) to head (65cb6de).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #131   +/-   ##
=======================================
  Coverage   66.60%   66.60%           
=======================================
  Files          25       25           
  Lines        3171     3171           
=======================================
  Hits         2112     2112           
  Misses       1059     1059           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

@sbillinge, it's ready for review.

# data into the profile.
xydy = numpy.array(map(float, data.split()), dtype=float).reshape(-1, 3)
x, y, dy = numpy.hsplit(xydy, 3)
xydy = numpy.array(data.split(), dtype=float).reshape(-1, 3)

ycexiao Aug 6, 2025 •
edited
Loading

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

data is something like

data = """\
015.0 0.00334 0.00013
050.0 0.00508 0.00022
...
500.0 0.03946 0.00250
"""

Unpacking the data in this specific way is only applicable in this example.

ycexiao marked this pull request as ready for review August 6, 2025 19:59
sbillinge merged commit 0a3933d into diffpy:main Aug 6, 2025
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.

2 participants


Back | FazBrowse Home | New Git URL