xnn.common.data.hub.materials_project#

Materials Project datasets of the MEGNet papers.

mp_2018: the 69,239 Materials Project crystals of 2018.6.1 with their formation energies per atom, band gaps and, for 5830 of them, bulk and shear moduli (Chen et al., Chem. Mater. 31, 3564 (2019); https://doi.org/10.6084/m9.figshare.7451351, CC BY 4.0).

multifidelity_band_gap: band gaps of Materials Project crystals at four levels of theory, PBE (52,348), GLLB-SC (2290), HSE (6030) and SCAN (472) (Chen et al., Nat. Comput. Sci. 1, 46 (2021); https://doi.org/10.6084/m9.figshare.13040330, CC BY 4.0), with the structures of the 2019.04.01 database (https://doi.org/10.6084/m9.figshare.8097992, MIT). The experimental band gaps of the paper are not included: their structures come from the ICSD, which is not freely available.

Both files are read once, entry by entry, and cached as .npz.

Functions

iter_json_list(stream[, chunk])

The items of a JSON list read from a text stream one at a time, so a file larger than memory can be read.

parse_p1_cif(text)

Cell (3, 3) (lattice vectors as rows, Angstrom), atomic numbers (N,) and Cartesian positions (N, 3) of a CIF in space group P1 with fully occupied sites (the files pymatgen writes).

Classes

MP2018Builder()

Builder for the Materials Project crystals of 2018.6.1 (the MEGNet crystal benchmarks).

MultiFidelityBandGapBuilder()

Builder for the multi-fidelity band gaps of Materials Project crystals (PBE, GLLB-SC, HSE, SCAN).