From ff5943f6e65cd3b66f9668e92589ee967ae26844 Mon Sep 17 00:00:00 2001 From: schachem <39915210+schachem@users.noreply.github.com> Date: Mon, 23 Jan 2023 09:32:17 +0100 Subject: [PATCH] Fix indention error in breakdown_energy function Breakdown Energy function is currently not working as field values are subtracted not once but numerous times --- efc/_base_fast.pyx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/efc/_base_fast.pyx b/efc/_base_fast.pyx index 910c8ff..bd8a28a 100644 --- a/efc/_base_fast.pyx +++ b/efc/_base_fast.pyx @@ -176,8 +176,8 @@ def breakdown_energy(self, x): sample_couplings[k, j] = holder e -= holder - holder = (fields_view[j * (max_bin - 1) + j_value]) - e -= holder - sample_fields[j] = holder + holder = (fields_view[j * (max_bin - 1) + j_value]) + e -= holder + sample_fields[j] = holder - return e, sample_fields, sample_couplings \ No newline at end of file + return e, sample_fields, sample_couplings