Hello Debasis,
The error here stems from the “matminer” present of ElementProperty using data from pymatgen, and not the tables in the “magpie_elementdata” folder.
You can edit the Pymatgen data by changing the value in Pymatgen before computing features. See code example below.
Best,
Logan
>>> from pymatgen import Element, Composition
>>> x = Element('Zr')
>>> x.bulk_modulus
>>> x = Element('Fe')
>>> x.bulk_modulus
170.0
>>> x = Element('Zr')
>>> from matminer.featurizers.composition import ElementProperty
>>> e = ElementProperty('pymatgen', ['bulk_modulus'], ['mean'])
>>> e.featurize(Composition('Zr'))
[nan]
>>> x.bulk_modulus = 10
>>> e.featurize(Composition('Zr'))
[10.0]
--
You received this message because you are subscribed to the Google Groups "matminer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to matminer+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/matminer/63cea14b-d8cb-4086-b829-e8b44b3f900b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Yes, you can edit the “periodic_table.json” file associated with Pymatgen.
See: https://github.com/materialsproject/pymatgen/blob/master/pymatgen/core/periodic_table.json
Logan
--
You received this message because you are subscribed to the Google Groups "matminer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to matminer+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/matminer/80cccacd-8165-4ec7-b043-90ed2e09429f%40googlegroups.com.