Can anyone help me to download XANES for Sr L2 edge?
Sorry for the delayed reply. Here is how you would do it.
from mp_api.client import MPRester
from emmet.core.xas import Type, Edge
with MPRester("your_api_key") as mpr:
docs = mpr.xas.search(spectrum_type=Type.XANES, edge=Edge.L2, absorbing_element="Sr")
ā Jason
The code is used solely for retrieval, but I still have questions about how to download the data.