We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a83eab commit a531b94Copy full SHA for a531b94
1 file changed
ml_peg/calcs/bulk_crystal/elasticity/calc_elasticity.py
@@ -200,7 +200,7 @@ def elastic_tensor_to_voigt(tensor: Any) -> np.ndarray | None:
200
if hasattr(tensor, "voigt"):
201
return np.asarray(tensor.voigt)
202
203
- # benchmark dict case, e.g. DFT field
+ # Matcalc/checkpoint serialisation stores tensor payloads as dictionaries.
204
if isinstance(tensor, dict):
205
if "raw" in tensor:
206
tensor = tensor["raw"]
0 commit comments