Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch elasticity rester key #862

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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