8000 DeprecationWarning when using oa_dim=0 and op_axes=NULL in NumPy 1.8 · Issue #127 · pydata/numexpr · GitHub
[go: up one dir, main page]

Skip to content

DeprecationWarning when using oa_dim=0 and op_axes=NULL in NumPy 1.8 #127

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

Closed
FrancescAlted opened this issue Jan 23, 2014 · 4 comments
Closed

Comments

@FrancescAlted
Copy link
Contributor

PyTables test suite raises a DeprecationWaring when this combination is made in a NpyIter_AdvancedNew call and NumPy 1.8 is used. Here it is an example:

$ python tables/tests/test_all.py
[clip]
test_multiprocess (tables.tests.test_basics.BloscSubprocess) ... /home/faltet/software/PyTables-Francesc/tables/conditions.py:456: DeprecationWarning: using `oa_ndim == 0` when `op_axes` is NULL is deprecated. Use `oa_ndim == -1` or the MultiNew iterator for NumPy <1.8 compatibility
  return func(*args)
@FrancescAlted
Copy link
Contributor Author

The information here: numpy/numpy#3104 seems relevant.

@FrancescAlted
Copy link
Contributor Author

@mwiebe could you confirm that the fix above makes sense? In particular, the PyTables tests passes completely without the if lines in the fix, but I thought it would not hurt either.

@FrancescAlted
Copy link
Contributor Author

Also @avalentino may be interested in this.

@avalentino
Copy link
Contributor

Thanks @FrancescAlted, I can confirm that all warning are fixed now in my setup.

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

No branches or pull requests

2 participants
0