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

Subtraction unsupported with NumPy bool arrays #34

Open
jakirkham opened this issue Oct 14, 2018 · 0 comments
Open

Subtraction unsupported with NumPy bool arrays #34

jakirkham opened this issue Oct 14, 2018 · 0 comments

Comments

@jakirkham
Copy link
Contributor

jakirkham commented Oct 14, 2018

Seeing the following test failure with newer versions of NumPy. Here are the lines that this is running into.

python code/cmt/python/tests/fvbn_test.py
E..
======================================================================
ERROR: test_fvbn (__main__.Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "code/cmt/python/tests/fvbn_test.py", line 21, in test_fvbn
    self.assertLess(max(abs(model.input_mask() - xmask)), 1e-8)
TypeError: numpy boolean subtract, the `-` operator, is deprecated, use the bitwise_xor, the `^` operator, or the logical_xor function instead.
----------------------------------------------------------------------
Ran 3 tests in 0.014s
FAILED (errors=1)

ref: https://travis-ci.org/conda-forge/cmt-feedstock/builds/401164336

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

1 participant