From 1cfbd45a7136bf8f0328e8a3413d6705fc3ea973 Mon Sep 17 00:00:00 2001 From: Shyue Ping Ong Date: Wed, 16 Oct 2024 11:17:48 -0700 Subject: [PATCH] Fix type. --- src/matcalc/elasticity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matcalc/elasticity.py b/src/matcalc/elasticity.py index 173bcbb..f40b2b6 100644 --- a/src/matcalc/elasticity.py +++ b/src/matcalc/elasticity.py @@ -133,7 +133,7 @@ def _elastic_tensor_from_strains( strain_states = [tuple(ss) for ss in np.eye(6)] ss_dict = get_strain_state_dict(strains, stresses, eq_stress=eq_stress, add_eq=self.use_equilibrium) c_ij = np.zeros((6, 6)) - residuals_sum = 0 + residuals_sum = 0.0 for ii in range(6): strain = ss_dict[strain_states[ii]]["strains"] stress = ss_dict[strain_states[ii]]["stresses"]