Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 30, 2024
1 parent d99176a commit 18c230f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oommfc/drivers/hysteresisdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 18c230f

Please sign in to comment.