Skip to content
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

Fix some warnings #3864

Merged
merged 3 commits into from
Mar 19, 2020
Merged

Fix some warnings #3864

merged 3 commits into from
Mar 19, 2020

Conversation

dcherian
Copy link
Contributor

what's left is mostly a lot of UnitStrippedWarnings. cc @keewis

Copy link
Collaborator

@keewis keewis left a comment

Choose a reason for hiding this comment

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

yeah, sorry about that. Most of the UnitStrippedWarnings should probably be filtered with pytest.filterwarnings("pint:::error") since they mean there's something going wrong, but we can only do that with numpy>=0.18 or pint>=0.11: before that numpy changed the behaviour of np.array when something raised a Warning in __array_interface__ or __array_struct__.

I'll submit a PR for that in the next few days.

xarray/backends/api.py Outdated Show resolved Hide resolved
@max-sixty
Copy link
Collaborator

Nice, thanks a lot @dcherian !

dcherian and others added 2 commits March 17, 2020 16:24
Co-Authored-By: keewis <keewis@users.noreply.github.com>
@dcherian
Copy link
Contributor Author

Thanks for the reviews @keewis and @max-sixty

@dcherian dcherian merged commit beea37e into pydata:master Mar 19, 2020
@dcherian dcherian deleted the fix-warnings branch March 19, 2020 14:32
dcherian added a commit to dcherian/xarray that referenced this pull request Mar 22, 2020
* upstream/master:
  add spacing in the versions section of the issue report (pydata#3876)
  map_blocks: allow user function to add new unindexed dimension. (pydata#3817)
  Delete associated indexes when deleting coordinate variables. (pydata#3840)
  remove macos build while waiting for libwebp fix (pydata#3875)
  Fix html repr on non-str keys (pydata#3870)
  Allow ellipsis to be used in stack (pydata#3826)
  Improve where docstring (pydata#3836)
  Add DataArray.pad, Dataset.pad, Variable.pad (pydata#3596)
  Fix some warnings (pydata#3864)
  Feature/weighted (pydata#2922)
  Fix recombination in groupby when changing size along the grouped dimension (pydata#3807)
  Blacken the doctest code in docstrings (pydata#3857)
  Fix multi-index with categorical values. (pydata#3860)
  Fix interp bug when indexer shares coordinates with array (pydata#3758)
  Fix alignment with join="override" when some dims are unindexed (pydata#3839)
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.

3 participants