8000 Add necessary version for xarray dependency by gerritholl · Pull Request #145 · atmtools/typhon · GitHub
[go: up one dir, main page]

Skip to content

Add necessary version for xarray dependency #145

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

Conversation

gerritholl
Copy link
Contributor

Since commit c6ea042 (merged in #143), UnitsAwareDataArray depends on
xarray.DataArray.array_ufunc (which in turn depends on numpy 1.13 or
newer). This was merged into xarray in
pydata/xarray#1962 and added to release 0.10.2.
The old UnitsAwareDataArray does not work with xarray>=0.10.2 and the new
one does not work with xarray<=0.10.1. Therefore, typhon now depends on
xarray>=0.10.2 and numpy>=1.13.

Can @lkluft and @olemke please confirm if they are happy with such recent
dependencies? numpy 1.13 was released 2017-07-06 and xarray 0.10.2 was
released 2018-03-13. Both versions are currently available in core conda and
pypi so pip or conda users should not have a practical problem with this, unless
they otherwise have code breakages due to recent numpy or xarray upgrades.

Since commit c6ea042 (merged in atmtools#143), UnitsAwareDataArray depends on
xarray.DataArray.__array_ufunc__ (which in turn depends on numpy 1.13 or
newer).  This was merged into xarray in
pydata/xarray#1962 and added to release 0.10.2.
The old UnitsAwareDataArray does not work with xarray>=0.10.2 and the new
one does not work with xarray<=0.10.1.  Therefore, typhon now depends on
xarray>=0.10.2 and numpy>=1.13.
@gerritholl gerritholl requested review from olemke and lkluft April 5, 2018 17:10
Copy link
Member
@lkluft lkluft left a comment

Choose a reason for hiding this comment

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

I am fine with the dependencies as both versions are available in the conda defaults (this is necessary for our own conda build) 👍

Copy link
Member
@olemke olemke left a comment

Choose a reason for hiding this comment

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

As @lkluft said, good to go.

@gerritholl gerritholl merged commit ab29c44 into atmtools:master Apr 9, 2018
@gerritholl gerritholl deleted the resolve-xarray-version-dependency branch April 9, 2018 09:10
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
0