You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems there is a problem with the snsynth/mwem.py script. When running it, I encountered the following error:
574ifany([a>0forainmins_data]):
575warnings.warn("Data should be preprocessed to have 0 based indices.")
-->576dimensionality=np.product(dims_sizes)
577ifdimensionality>1e8:
578warnings.warn(f"Dimensionality of histogram is {dimensionality:,}, consider using splits.")
File/opt/conda/lib/python3.12/site-packages/numpy/__init__.py:414, in__getattr__(attr)
411importnumpy.charaschar412returnchar.chararray-->414raiseAttributeError("module {!r} has no attribute "415"{!r}".format(__name__, attr))
AttributeError: module'numpy'hasnoattribute'product'
This error occurs because numpy.product has been deprecated in NumPy version 1.25.0.
The fix is straightforward—simply change np.product on line 576 to np.prod.
The text was updated successfully, but these errors were encountered:
It seems there is a problem with the
snsynth/mwem.py
script. When running it, I encountered the following error:This error occurs because numpy.product has been deprecated in NumPy version 1.25.0.
The fix is straightforward—simply change np.product on line 576 to np.prod.
The text was updated successfully, but these errors were encountered: