File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ def get_phonopy_gibbs(
53
53
)
54
54
55
55
# gibbs free energy and temperature
56
- max_t_index = phonopy_qha ._qha ._max_t_index
56
+ max_t_index = phonopy_qha ._qha ._len
57
57
G = phonopy_qha .get_gibbs_temperature ()[:max_t_index ]
58
58
T = phonopy_qha ._qha ._temperatures [:max_t_index ]
59
59
return G , T
@@ -178,7 +178,7 @@ def get_phonopy_thermal_expansion(
178
178
)
179
179
180
180
# thermal expansion coefficient and temperature
181
- max_t_index = phonopy_qha ._qha ._max_t_index
182
- alpha = phonopy_qha .get_thermal_expansion ()[:max_t_index ]
181
+ max_t_index = phonopy_qha ._qha ._len
182
+ alpha = phonopy_qha .get_thermal_expansion ()[: max_t_index ]
183
183
T = phonopy_qha ._qha ._temperatures [:max_t_index ]
184
184
return alpha , T
You can’t perform that action at this time.
0 commit comments