Skip to content

Commit

Permalink
Switch elasticity rester key (#862)
Browse files Browse the repository at this point in the history
  • Loading branch information
munrojm committed Nov 17, 2023
1 parent 22cd236 commit f380b4e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion mp_api/client/routes/materials/elasticity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down
14 changes: 7 additions & 7 deletions tests/materials/test_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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",
Expand All @@ -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,
Expand Down

0 comments on commit f380b4e

Please sign in to comment.