diff --git a/micromagnetictests/calculatortests/__init__.py b/micromagnetictests/calculatortests/__init__.py index f69d914..ac05045 100644 --- a/micromagnetictests/calculatortests/__init__.py +++ b/micromagnetictests/calculatortests/__init__.py @@ -12,7 +12,9 @@ from .fixedsubregions import TestFixedSubregions as TestFixedSubregions from .hysteresisdriver import Ms as Ms from .hysteresisdriver import system as system -from .hysteresisdriver import test_check_for_energy as test_check_for_energy +from .hysteresisdriver import ( + test_hysteresis_check_for_energy as test_hysteresis_check_for_energy, +) from .hysteresisdriver import test_simple_hysteresis_loop as test_simple_hysteresis_loop from .hysteresisdriver import ( test_stepped_hysteresis_loop as test_stepped_hysteresis_loop, diff --git a/micromagnetictests/calculatortests/hysteresisdriver.py b/micromagnetictests/calculatortests/hysteresisdriver.py index 7365b2a..2b40b3a 100644 --- a/micromagnetictests/calculatortests/hysteresisdriver.py +++ b/micromagnetictests/calculatortests/hysteresisdriver.py @@ -62,7 +62,7 @@ def test_stepped_hysteresis_loop(calculator, system, Ms): calculator.delete(system) -def test_check_for_energy(calculator): +def test_hysteresis_check_for_energy(calculator): system = mm.examples.macrospin() system.energy = 0 hd = calculator.HysteresisDriver()