Skip to content

Commit

Permalink
updated the name of the check system funtion to _check_syatem
Browse files Browse the repository at this point in the history
  • Loading branch information
kzqureshi committed Jan 24, 2024
1 parent dec75ec commit 63d5872
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mumax3c/drivers/mindriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class MinDriver(Driver):
def _checkargs(self, **kwargs):
pass # no kwargs should be checked

def check_system(self, system):
def _check_system(self, system):
"""Checks the system has energy in it"""
if len(system.energy) == 0:
raise AttributeError("System's energy is not defined")
Expand Down
2 changes: 1 addition & 1 deletion mumax3c/drivers/relaxdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class RelaxDriver(Driver):
def _checkargs(self, **kwargs):
pass # no kwargs should be checked

def check_system(self, system):
def _check_system(self, system):
"""Checks the system has dynamics in it"""
if len(system.dynamics) == 0:
raise AttributeError("System's dynamics is not defined")
Expand Down
2 changes: 1 addition & 1 deletion mumax3c/drivers/timedriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def _checkargs(self, **kwargs):
msg = f"Cannot drive with {n=}."
raise ValueError(msg)

def check_system(self, system):
def _check_system(self, system):
"""Checks the system has dynamics in it"""
if len(system.dynamics) == 0:
raise AttributeError("System's dynamics is not defined")
Expand Down

0 comments on commit 63d5872

Please sign in to comment.