From 63d5872f1d8d73fb0bc256aaa3248158a853b76f Mon Sep 17 00:00:00 2001 From: Kauser Zulfiqar Date: Wed, 24 Jan 2024 12:34:22 +0100 Subject: [PATCH] updated the name of the check system funtion to _check_syatem --- mumax3c/drivers/mindriver.py | 2 +- mumax3c/drivers/relaxdriver.py | 2 +- mumax3c/drivers/timedriver.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mumax3c/drivers/mindriver.py b/mumax3c/drivers/mindriver.py index 8dc9dbf..987eb10 100644 --- a/mumax3c/drivers/mindriver.py +++ b/mumax3c/drivers/mindriver.py @@ -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") diff --git a/mumax3c/drivers/relaxdriver.py b/mumax3c/drivers/relaxdriver.py index cef7d43..fb5faf5 100644 --- a/mumax3c/drivers/relaxdriver.py +++ b/mumax3c/drivers/relaxdriver.py @@ -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") diff --git a/mumax3c/drivers/timedriver.py b/mumax3c/drivers/timedriver.py index cccf9d3..d7d426c 100644 --- a/mumax3c/drivers/timedriver.py +++ b/mumax3c/drivers/timedriver.py @@ -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")