From 18c230f54d76c9ffd77b282928bec599eec9fa79 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 30 Jan 2024 12:10:32 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- oommfc/drivers/hysteresisdriver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oommfc/drivers/hysteresisdriver.py b/oommfc/drivers/hysteresisdriver.py index 17ff240..69a2fc5 100644 --- a/oommfc/drivers/hysteresisdriver.py +++ b/oommfc/drivers/hysteresisdriver.py @@ -73,7 +73,7 @@ def _checkargs(self, **kwargs): if n - 1 <= 0: # OOMMF counts steps, not points (n -> n-1) msg = f"Cannot drive with {n=}." raise ValueError(msg) - + def _check_system(self, system): """Checks the system has energy in it""" if len(system.energy) == 0: