-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
silence UnitStrippedWarnings #4163
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
Merged
dcherian
merged 55 commits into
pydata:master
from
keewis:silence-unit-stripped-warnings
Jul 2, 2020
Merged
Changes from all commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
62bb825
globally promote UnitStrippedWarning to errors
keewis 6f7e760
separately test apply_ufunc with units in dims, coords and data
keewis b5a4902
split the DataArray align test into data, dims and coords tests
keewis 65473d4
use dtypes instead of python types and use a dtype specific fill value
keewis 3b0fdc3
rewrite the dataset align tests
keewis a4ce5d8
compare with dtypes.NA instead of using np.isnan
keewis 15399b2
mention the issue in the xfail reason
keewis 86bc323
make sure the combine_* variants are properly separated from each other
keewis 5cc076c
improve the test case names
keewis 4b71aa6
note that broadcast uses align
keewis 218bb27
properly separate the test cases for concat
keewis 766638d
always use the same reason when xfailing units in indexes tests
keewis e5569a4
also check that the replication functions work with dims and units
keewis 4737d41
apply full_like to the data instead of the variable
keewis b080cb7
check full_like with units in dims, data and coords separately
keewis b35bb6c
clearly separate the test variants of the merge tests
keewis a754056
don't use indexes for the dataset where tests
keewis 08cf7be
replace numpy.testing.assert_allclose with assert numpy.allclose
keewis daceb13
remove a conditional xfail that depends on a very old pint version
keewis 8fdee00
use assert_identical from the local namespace
keewis 72ad5b0
properly separate between the broadcast_like test variants
keewis c9d1c18
don't accept "data" as an alias of the DataArray's data
keewis e59bd59
properly separate between the variants of the content manipulation tests
keewis d91922d
use assert np.allclose(...) instead of np.testing.assert_allclose(...)
keewis b4f7bb2
don't test units in indexes in the isel tests
keewis db44dd5
don't use units in indexes for the head / tail / thin tests
keewis cef0dda
properly separate the variants of more tests
keewis bdf7145
rewrite the squeeze tests
keewis dbd5512
use assert_allclose from the module's namespace
keewis a1539ff
rewrite the copy tests
keewis a1f3f72
xfail the equal comparison for a pint version lower than 0.14
keewis 80f49d6
try to implement a duckarray friendly assert_array_equal
keewis 372040c
Merge branch 'master' into silence-unit-stripped-warnings
keewis 32da9b9
add tests for not raising an assertion error
keewis ea14ef3
skip only the dask test if it isn't installed
keewis 21d2e8e
also check using pint if available
keewis 7a597b3
add a duckarray version of np.testing.assert_allclose
keewis cc4fff0
add both to __all__
keewis 7320d43
make both available in xarray.tests
keewis c9c0c87
don't inherit from VariableSubtests since that was not written to tes…
keewis 3bcb050
test the constant pad mode along with all other modes
keewis c341401
remove most pint version checks, now that pint 0.13 has been released
keewis 0f4391b
Merge branch 'master' into silence-unit-stripped-warnings
keewis a9cc7d4
use conda to install pint
keewis 673cabc
xfail the DataArray comparison test until pint's dev version fixed it
keewis 158c83e
add tests for the pad method of DataArray and Dataset
keewis c8a6466
add tests for weighted
keewis d8783e4
update whats-new.rst
keewis 2f5a2a7
Merge branch 'master' into silence-unit-stripped-warnings
keewis f39dc78
Merge branch 'assert_array_equal-duckarray' into silence-unit-strippe…
keewis 1c827da
replace assert np.allclose(...) with assert_duckarray_allclose(...)
keewis 1ce16ea
fix the dask fallback
keewis a68048b
xfail the pint tests for now since there's a bug in pint
keewis 34931eb
use utils.is_array_like and utils.is_scalar
keewis f5ef2f5
Merge branch 'master' into silence-unit-stripped-warnings
keewis 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 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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.