Skip to content

Commit d56e062

Browse files
committed
done...
1 parent a0c0ab2 commit d56e062

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pybamm/solvers/solution.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -881,10 +881,10 @@ def _get_cycle_summary_variables(cycle_solution, esoh_solver):
881881
cycle_summary_variables[var] = esoh_sol[var].data[0]
882882

883883
# Calculate theoretical energy
884-
n_i = cycle_summary_variables["x_0"]
885-
p_i = cycle_summary_variables["y_0"]
886-
n_f = n_i + cycle_summary_variables["x_100 - x_0"]
887-
p_f = p_i - cycle_summary_variables["y_0 - y_100"]
884+
n_f = cycle_summary_variables["x_0"]
885+
p_f = cycle_summary_variables["y_0"]
886+
n_i = n_f + cycle_summary_variables["x_100 - x_0"]
887+
p_i = p_f - cycle_summary_variables["y_0 - y_100"]
888888
energy = pybamm.lithium_ion.electrode_soh.theoretical_energy_integral(
889889
esoh_solver.parameter_values, n_i, n_f, p_i, p_f
890890
)

0 commit comments

Comments
 (0)