api icon indicating copy to clipboard operation
api copied to clipboard

New API client for the Materials Project

Results 103 api issues
Sort by recently updated
recently updated
newest added

Hi! Thanks for your work developing this package and sorry to be bugging about this, but I was wondering if we could get clarification about the new default `inc_structure` behaviour...

Hello! I've recently been trying to work with XAS data from the Materials Project and stumbled across a potential issue/point of confusion when comparing materials between MP docs and XAS...

### Code snippet ```python refer to matgenb. ``` ### What happened? See below. Pls fix and add tests. No one can create a Pourbaix diagram at the moment. ### Version...

bug

### Summary - Lazily get `endpoint` and `api_key`, to close #935 - [x] Add more unit tests

`MP_API_KEY` is retrieved at import time, perhaps considering getting at `init` time instead https://github.com/janosh/pymatviz/pull/207#issuecomment-2379211936? https://github.com/materialsproject/api/blob/2c89d4c015940daa5c28b20d4a5d757b8ab6b29f/mp_api/client/mprester.py#L72 If someone want to set the environment variable at runtime (assume no `MP_API_KEY` env var...

### Problem I would like to propose data statistics visualizations for the Materials Project, providing users with a quick overview of data size and the elemental distribution from different APIs....

### Python version Python 3.10.14 ### Pymatgen version 2024.8.9 ### Operating system version macOS 14 ### Current behavior ```py data = mpr.materials.elasticity.search(fields=["material_id", "formula_pretty", "structure", "elastic_tensor"]) print("Number of materials retrieved:", len(data))...

bug

See first comment in this issue.

enhancement

Restored the `get_stability` functionality of the legacy API, per [#676](https://github.com/materialsproject/api/issues/676). Since this functionality in the legacy API is no longer working, I re-engineered its functionality from [the pymatgen test](https://github.com/materialsproject/pymatgen/blob/37e76f98bf3160bf662fb10106e56cd0c389f689/tests/ext/test_matproj.py#L316) on...

I am using the following code to search all substrates which are stable and commonly used. from emmet.core.summary import HasProps from mp_api.client import MPRester ```python with MPRester() as mpr: docs...