-
Notifications
You must be signed in to change notification settings - Fork 60
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
error: "NameError: name 'staticmethodzoom' is not defined" #51
Comments
Hi @nitin0301, Which version of matminer are you using (do
The first thing I would recommend is upgrading your matminer to the newest version. |
I think it is the current version: matminer 0.5.2 pypi_0 pypi |
Look like somehow the word "zoom" got added in your source code. Please make sure you didn't add it unintentionally. Anyway, you can probably just delete the "zoom" part like in @ardunn 's code example |
@computron it is in the matminer 0.5.2(?) release: https://pypi.org/project/matminer/#files Seems like the only release it is in? |
Yes it looks like that release has some issues, let me try a new one now |
@nitin0301 - thanks for reporting I just pushed matminer v0.5.3 which should fix this. |
Thanks @computron. Everything working after removing zoom. |
I am using the Anaconda environment and the Ipython notebook.
When using:
from matminer.featurizers.composition import ElementProperty
I get following error:
NameError Traceback (most recent call last)
in
----> 1 from matminer.featurizers.composition import ElementProperty
~/anaconda/envs/py3/lib/python3.6/site-packages/matminer/featurizers/composition.py in
16
17 from matminer.featurizers.base import BaseFeaturizer
---> 18 from matminer.featurizers.utils.stats import PropertyStats
19 from matminer.utils.data import DemlData, MagpieData, PymatgenData,
20 CohesiveEnergyData, MixingEnthalpy, MatscholarElementData
~/anaconda/envs/py3/lib/python3.6/site-packages/matminer/featurizers/utils/stats.py in
13
14
---> 15 class PropertyStats(object):
16 """This class contains statistical operations that are commonly employed
17 when computing features.
~/anaconda/envs/py3/lib/python3.6/site-packages/matminer/featurizers/utils/stats.py in PropertyStats()
337 return np.array(data_lst).flatten()
338
--> 339 @staticmethodzoom
340 def quantile(data_lst, weights=None, q=0.5):
341 """
NameError: name 'staticmethodzoom' is not defined
The text was updated successfully, but these errors were encountered: