keras-molecules
keras-molecules copied to clipboard
TypeError: The numpy boolean negative, the `-` operator, is not supported, use the `~` operator or the logical_not function instead.
python preprocess.py data/smiles_50k.h5 data/processed_50k.h5
Traceback (most recent call last):
File "preprocess.py", line 85, in -
operator, is not supported, use the ~
operator or the logical_not function instead.
Hi,
I think newer h5py solve this issue as the latest h5py seems to avoid your issue. See: https://github.com/h5py/h5py/blob/master/h5py/_hl/dataset.py#L76
I can confirm @maksak answer works...pip install h5py --upgrade
did the trick for me.
I have the same problem, just open your file File "/home/vinay/chemistrytensor/local/lib/python2.7/site-packages/h5py/_hl/dataset.py", line 76 change the "-" to "~".
You can update your h5py file using this fix: https://github.com/h5py/h5py/commit/973c47f2fb70294ef0cba37a265360e7603f0528 I hope it works.