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
Found this error when using transformer = MoleculeTransformer(featurizer='mordred', dtype=float)
Apparently product was removed in numpy 2.0: astropy/astropy#16062
Downgrading numpy 2.1.0 to 1.22.0 solved it. I am now at my local machine and can confirm that in numpy 1.24.4 it also works.
The text was updated successfully, but these errors were encountered:
I'm also facing a similar issue when using the following import: from molfeat.trans.pretrained.hf_transformers import PretrainedHFTransformer.
Tracing back to the root of the problem, it seems that molfeat is using the mordred repository, which, according to the comments on their issues, is no longer being maintained. However, there is a fork of this repository, mordred-community, which seems to address necessary updates.
The mordred library has an import statement from numpy import product, which should be from numpy import prod. I found the files on my local machine where this error occurs within the mordred library, such as their MolecularDistanceEdge class, and changed the statement in line 2.
Will molfeat continue using the original mordred library, or will there be an update to use the community version?
📖 Documentation
Found this error when using
transformer = MoleculeTransformer(featurizer='mordred', dtype=float)
Apparently
product
was removed in numpy 2.0: astropy/astropy#16062Downgrading numpy 2.1.0 to 1.22.0 solved it. I am now at my local machine and can confirm that in numpy 1.24.4 it also works.
The text was updated successfully, but these errors were encountered: