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

### Email (Optional) _No response_ ### Version mp-api==0.36.1 ### Which OS(es) are you using? - [ ] MacOS - [ ] Windows - [X] Linux ### What happened? I am...

bug

#### Description When I run the following code under home internet ``` from mp_api.client import MPRester USER_API_KEY='XXXX' mpr = MPRester(USER_API_KEY) mp_entries = mpr.get_entries_in_chemsys(['Li','Mn','O']) ``` The following message shows up: ```...

@munrojm @janosh It is rather difficult to find examples on how to do most API queries. Getting to the API page requires multiple clicks on links and some of those...

`mpr.materials._search(nelements=2, fields=["material_id", "final_structure"])` simply returns the material_id and the final_structure is ignored. This is generally not a good behavior for people to learn that final_structure is not actually a supported...

enhancement

A new user here, trying an Materials project API. An attempt to import MPRester fails ```py In [1]: from pymatgen.ext.matproj import MPRester --------------------------------------------------------------------------- TypeError Traceback (most recent call last) Cell...

needs info

#### Description ``` [00:00:13] Error: Dependency loop detected: These packages depend on each other: py39-pymatgen-2023.6.28 py39-mp-api-0.33.3 py39-pymatgen-analysis-alloys-0.0.6 These packages depend on each other: py39-mp-api-0.33.3 py39-mpcontribs-client-5.4.1 py39-pymatgen-2023.6.28 These packages depend on...

needs info
pkg

Just running into an issue with MP-API very indirectly via matminer, regardingly the migration of graph hashing code from emmet to pymatgen: ``` /opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/site-packages/emmet/core/utils.py:22: in from pymatgen.util.graph_hashing import weisfeiler_lehman_graph_hash E...

bug

We sometimes observed https://api.materialsproject.org/heartbeat responds a 403 error, then mp-api just raises JSONDecodeError. It would be nice to show users a 403 error, and what could happen such as rate...

enhancement

When trying to save a SummaryDoc with 'database_IDs' using monty serialization I get an error due to the datatype of 'database_IDs'. I'm not sure if this is intended or whether...

bug

It appears that when making a query in which a `chemsys` is requested with the `exclude_elements` argument that things do not quite work as intended. For example, ```python with MPRester()...

bug