Skip to content

Commit 6cde233

Browse files
author
munrojm
committed
Transition elasticity rester to new doc
1 parent 5324d52 commit 6cde233

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

mp_api/client/routes/materials/elasticity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import warnings
44
from collections import defaultdict
55

6-
from emmet.core.elasticity_legacy import ElasticityDoc
6+
from emmet.core.elasticity import ElasticityDoc
77

88
from mp_api.client.core import BaseRester
99

tests/materials/test_elasticity.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,18 @@ def rester():
2121
"fields",
2222
]
2323

24-
sub_doc_fields = ["elasticity"] # type: list
24+
sub_doc_fields = [] # type: list
2525

2626
alt_name_dict = {
2727
"elastic_anisotropy": "universal_anisotropy",
2828
"poisson_ratio": "homogeneous_poisson",
29+
"g_voigt": "bulk_modulus",
30+
"g_reuss": "bulk_modulus",
31+
"g_vrh": "bulk_modulus",
32+
"k_voigt": "shear_modulus",
33+
"k_reuss": "shear_modulus",
34+
"k_vrh": "shear_modulus",
35+
2936
} # type: dict
3037

3138
custom_field_tests = {} # type: dict

0 commit comments

Comments
 (0)