Skip to content

only use bottleneck version 1.0 and later #1190

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
merged 3 commits into from
Jan 7, 2017
Merged

only use bottleneck version 1.0 and later #1190

merged 3 commits into from
Jan 7, 2017

Conversation

jhamman
Copy link
Member

@jhamman jhamman commented Dec 29, 2016

closes #808

@jhamman jhamman mentioned this pull request Dec 29, 2016
@@ -17,6 +18,10 @@

try:
import bottleneck as bn
if StrictVersion(bn.__version__) < StrictVersion('1.0'):
warnings.warn('xarray requires bottleneck version of 1.0 or greater.'
Copy link
Member

Choose a reason for hiding this comment

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

Users find it really annoying to see messages just when importing a package, when they may not even be using the related functionality. Let's only issue the warning when doing rolling aggregations.

Copy link
Member Author

Choose a reason for hiding this comment

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

fair enough. The logic gets spread out a bit more but we now only raise the warning when rolling.__init__() is called.

@jhamman jhamman merged commit 417797e into pydata:master Jan 7, 2017
@jhamman jhamman deleted the fix/min_bottleneck_version branch January 7, 2017 07:43
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.

bottleneck version
2 participants