This PR allows users to automatically download a CIF file using the materials project API, just by specifying an element and crystal structure.
First, the database is searched to find all possible combinations of that crystal structure and element. If none are found, an exception is raised. If more than one are found, it first tries to filter by selecting only those structures which are experimentally verified. If there are no experimentally verified structures, or more than one, it selects the structure with minimal energy.
Note: it requires users to register for a materials project account (which is free), and then save their API key somewhere.
This PR allows users to automatically download a CIF file using the materials project API, just by specifying an element and crystal structure.
First, the database is searched to find all possible combinations of that crystal structure and element. If none are found, an exception is raised. If more than one are found, it first tries to filter by selecting only those structures which are experimentally verified. If there are no experimentally verified structures, or more than one, it selects the structure with minimal energy.
Note: it requires users to register for a materials project account (which is free), and then save their API key somewhere.