Commit 8a113b45 authored by Lauri Himanen's avatar Lauri Himanen
Browse files

Fixed issue with returning Wyckoff sets.

parent 8138b618
Pipeline #76762 passed with stages
in 24 minutes and 11 seconds
......@@ -1144,7 +1144,10 @@ class EncCalculationResource(Resource):
if key == "thermodynamical_properties":
specific_heat_capacity = value.specific_heat_capacity.magnitude.tolist()
specific_free_energy = value.specific_vibrational_free_energy_at_constant_volume.magnitude.tolist()
value = value.m_to_dict()
if isinstance(value, list):
value = [x.m_to_dict() for x in value]
value = value.m_to_dict()
if key == "thermodynamical_properties":
value["specific_heat_capacity"] = specific_heat_capacity
value["specific_vibrational_free_energy_at_constant_volume"] = specific_free_energy
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment