-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove two Pytest warnings due to numpy and pytest mocker in test_dump function #112
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
c0ffe30
Empty build.txt file which is used for C++/C
bobleesj 3e8dd23
Fix arb value to fix warning
bobleesj b62fddb
Remove patch warning
bobleesj 6e2ed38
Add news
bobleesj 889fac3
Capture the warning behavior
bobleesj de82a77
Clean up tests for catching error
bobleesj d65aa57
[pre-commit.ci] auto fixes from pre-commit hooks
pre-commit-ci[bot] b9b05a5
Shorten comments for test_diffraction_objects
bobleesj 31f3c03
Setup requirements
bobleesj e69255a
Set valid q range for test dump function
bobleesj 7b12baf
[pre-commit.ci] auto fixes from pre-commit hooks
pre-commit-ci[bot] 0cb34e2
Pre-commit
bobleesj 859755e
Apply pre-commit
bobleesj a3c5ea7
Merge branch 'codecov' of https://github.com/bobleesj/diffpy.utils in…
bobleesj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
**Added:** | ||
|
||
* <news item> | ||
|
||
**Changed:** | ||
|
||
* <news item> | ||
|
||
**Deprecated:** | ||
|
||
* <news item> | ||
|
||
**Removed:** | ||
|
||
* <news item> | ||
|
||
**Fixed:** | ||
|
||
* Two Pytest warnings due to numpy and pytest mocker in test_dump function | ||
|
||
**Security:** | ||
|
||
* <news item> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +0,0 @@ | ||
python | ||
setuptools | ||
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
numpy |
This file contains 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To recollect our memory: we had this invalid value warning:
Problem:
In our dummy
test_dump
function:The code sets arbitrary q values as:
Hence, when we try to convert q to two-theta, using
test.wavelength = 1.54
:We have
nan
values.Solution:
Just simply use the valid q range from 0 to 6, etc.