Skip to content

Commit f380b4e

Browse files
author
Jason Munro
authored
Switch elasticity rester key (#862)
1 parent 22cd236 commit f380b4e

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

mp_api/client/routes/materials/elasticity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class ElasticityRester(BaseRester[ElasticityDoc]):
1212
suffix = "materials/elasticity"
1313
document_model = ElasticityDoc # type: ignore
14-
primary_key = "task_id"
14+
primary_key = "material_id"
1515

1616
def search_elasticity_docs(self, *args, **kwargs): # pragma: no cover
1717
"""Deprecated."""

tests/materials/test_summary.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@
1414
"num_chunks",
1515
"all_fields",
1616
"fields",
17-
"equilibrium_reaction_energy", # temp until data update
18-
"total_energy", # temp until data update
19-
"exclude_elements", # temp until data update
20-
"num_elements", # temp until server timeout increase
21-
"num_sites", # temp until server timeout increase
22-
"density", # temp until server timeout increase
23-
"total_magnetization", # temp until server timeout increase
2417
]
2518

2619
alt_name_dict = {
@@ -38,6 +31,12 @@
3831
"magnetic_ordering": "ordering",
3932
"elastic_anisotropy": "universal_anisotropy",
4033
"poisson_ratio": "homogeneous_poisson",
34+
"g_reuss": "bulk_modulus",
35+
"g_vrh": "bulk_modulus",
36+
"g_voigt": "bulk_modulus",
37+
"k_reuss": "shear_modulus",
38+
"k_vrh": "shear_modulus",
39+
"k_voigt": "shear_modulus",
4140
"num_sites": "nsites",
4241
"num_elements": "nelements",
4342
"surface_energy_anisotropy": "surface_anisotropy",
@@ -48,6 +47,7 @@
4847
"formula": "SiO2",
4948
"chemsys": "Si-O",
5049
"elements": ["Si", "O"],
50+
"exclude_elements": ["Si", "O"],
5151
"possible_species": ["O2-"],
5252
"crystal_system": CrystalSystem.cubic,
5353
"spacegroup_number": 38,

0 commit comments

Comments
 (0)