diff --git a/mp_api/client/routes/materials/elasticity.py b/mp_api/client/routes/materials/elasticity.py index fed05991..d96bd18a 100644 --- a/mp_api/client/routes/materials/elasticity.py +++ b/mp_api/client/routes/materials/elasticity.py @@ -11,7 +11,7 @@ class ElasticityRester(BaseRester[ElasticityDoc]): suffix = "materials/elasticity" document_model = ElasticityDoc # type: ignore - primary_key = "task_id" + primary_key = "material_id" def search_elasticity_docs(self, *args, **kwargs): # pragma: no cover """Deprecated.""" diff --git a/tests/materials/test_summary.py b/tests/materials/test_summary.py index ab975b23..8a63920b 100644 --- a/tests/materials/test_summary.py +++ b/tests/materials/test_summary.py @@ -14,13 +14,6 @@ "num_chunks", "all_fields", "fields", - "equilibrium_reaction_energy", # temp until data update - "total_energy", # temp until data update - "exclude_elements", # temp until data update - "num_elements", # temp until server timeout increase - "num_sites", # temp until server timeout increase - "density", # temp until server timeout increase - "total_magnetization", # temp until server timeout increase ] alt_name_dict = { @@ -38,6 +31,12 @@ "magnetic_ordering": "ordering", "elastic_anisotropy": "universal_anisotropy", "poisson_ratio": "homogeneous_poisson", + "g_reuss": "bulk_modulus", + "g_vrh": "bulk_modulus", + "g_voigt": "bulk_modulus", + "k_reuss": "shear_modulus", + "k_vrh": "shear_modulus", + "k_voigt": "shear_modulus", "num_sites": "nsites", "num_elements": "nelements", "surface_energy_anisotropy": "surface_anisotropy", @@ -48,6 +47,7 @@ "formula": "SiO2", "chemsys": "Si-O", "elements": ["Si", "O"], + "exclude_elements": ["Si", "O"], "possible_species": ["O2-"], "crystal_system": CrystalSystem.cubic, "spacegroup_number": 38,