Asteri2themoon commited on
Commit
7952d08
·
verified ·
1 Parent(s): c6c45cb

add 2026.09.28 release preprocessed with pycrystalgen

Browse files
Files changed (1) hide show
  1. README.md +63 -0
README.md CHANGED
@@ -45,3 +45,66 @@ fields:
45
  * `atoms` => a group containing information about atoms.
46
  * `atoms/positions` (float32) => the positions of the atoms.
47
  * `atoms/atomic_number` (uint8) => the atomic number of the atoms.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  * `atoms` => a group containing information about atoms.
46
  * `atoms/positions` (float32) => the positions of the atoms.
47
  * `atoms/atomic_number` (uint8) => the atomic number of the atoms.
48
+
49
+ # 2026 release (`all.hdf5`)
50
+
51
+ `all.hdf5` is a newer, separate export of the Materials Project, preprocessed with
52
+ pycrystalgen. It does not replace `materials-project.tar.gz` above and uses a different layout.
53
+
54
+ It contains 271,325 structures (6,967,262 atoms, 1 to 444 atoms per structure): every
55
+ material of the `summary` collection of database version 2026.09.28, except the 8,834
56
+ materials flagged as deprecated. Nothing else is filtered.
57
+
58
+ ## Labels
59
+
60
+ | Field | Source column | Meaning |
61
+ |---|---|---|
62
+ | `total_energy` | `energy_per_atom` × `nsites` | total energy of the cell in eV, with the corrections of the Materials Project |
63
+ | `formation_energy_per_atom` | `formation_energy_per_atom` | formation energy in eV/atom |
64
+ | `energy_above_hull` | `energy_above_hull` | energy above the convex hull in eV/atom |
65
+ | `band_gap` | `band_gap` | band gap in eV |
66
+
67
+ Four materials have no labels in the source and are kept with NaN. Material ids are not
68
+ stored: structures are in the order of the source collection, deprecated materials removed.
69
+
70
+ ## Format
71
+
72
+ Flat concatenated arrays:
73
+
74
+ | Dataset | Shape | Type | Content |
75
+ |---|---|---|---|
76
+ | `lattice` | (n_struct, 3, 3) | float32 | lattice vectors as rows, in angstrom |
77
+ | `num_atoms` | (n_struct,) | int64 | number of atoms of each structure |
78
+ | `ptr` | (n_struct,) | int64 | index of the first atom of each structure in `x` and `z` |
79
+ | `x` | (n_atoms, 3) | float32 | fractional coordinates in [0, 1) |
80
+ | `z` | (n_atoms,) | int64 | atomic numbers |
81
+ | `total_energy`, `formation_energy_per_atom`, `energy_above_hull`, `band_gap` | (n_struct,) | float32 | labels, NaN when unknown |
82
+
83
+ The lattice is rebuilt from cell lengths and angles, so it is in the standard orientation
84
+ (first vector along x). The `batch` array is an artefact of the writer and is not used when
85
+ reading.
86
+
87
+ ## Usage
88
+
89
+ ```python
90
+ from pycrystalgen.data import HDF5Dataset
91
+
92
+ dataset = HDF5Dataset.from_hub("materials-toolkits/materials-project", "all.hdf5")
93
+ structures = dataset[:32] # batched Structures
94
+ ```
95
+
96
+ ## Source, processing and licence
97
+
98
+ - Source: the public open data bucket of the Materials Project,
99
+ `materialsproject-build/collections/summary/version=2026-09-28/`.
100
+ - Built with pycrystalgen, `scripts/build_materials_project.py`: collection to CIF, then CIF
101
+ to HDF5.
102
+ - Every structure was checked against the source: number of atoms, elements, fractional
103
+ coordinates, lattice and the four labels.
104
+
105
+ **Licence of `all.hdf5`:** the `license: mit` of this repository describes the 2019 files, not
106
+ this one. In the source, each material carries its own licence label: 154,377 of the
107
+ structures kept here are labelled `BY-C` and 116,948 are labelled `BY-NC` (non-commercial).
108
+ This file does not record which structure has which label, so treat the whole file as
109
+ non-commercial unless you check against the source, and refer to the Materials Project for
110
+ the terms of use.