diff --git a/nifty4/extra/energy_tests.py b/nifty4/extra/energy_tests.py index 68d18a8adcd8f7456df4419314a3b99aeb931c63..693d1ba40e8797be0f52364190f4e4725d139b28 100644 --- a/nifty4/extra/energy_tests.py +++ b/nifty4/extra/energy_tests.py @@ -17,7 +17,6 @@ # and financially supported by the Studienstiftung des deutschen Volkes. import numpy as np -from ..field import Field from ..sugar import from_random __all__ = ["check_value_gradient_consistency", @@ -50,7 +49,7 @@ def check_value_gradient_consistency(E, tol=1e-6, ntries=100): E2 = _get_acceptable_energy(E) val = E.value dir = E2.position - E.position - Enext = E2 + # Enext = E2 dirnorm = dir.norm() for i in range(50): Emid = E.at(E.position + 0.5*dir) @@ -70,7 +69,7 @@ def check_value_gradient_curvature_consistency(E, tol=1e-6, ntries=100): E2 = _get_acceptable_energy(E) val = E.value dir = E2.position - E.position - Enext = E2 + # Enext = E2 dirnorm = dir.norm() for i in range(50): Emid = E.at(E.position + 0.5*dir)