diff --git a/festim/exports/txt_export.py b/festim/exports/txt_export.py index 9e29644c5..9afcc54c9 100644 --- a/festim/exports/txt_export.py +++ b/festim/exports/txt_export.py @@ -33,6 +33,7 @@ def __init__(self, field, label, folder, times=None) -> None: @property def filename(self): return f"{self.folder}/{self.label}.txt" + def is_it_time_to_export(self, current_time): if self.times is None: return True diff --git a/test/system/test_misc.py b/test/system/test_misc.py index a7c4214c4..a7a89c249 100644 --- a/test/system/test_misc.py +++ b/test/system/test_misc.py @@ -169,9 +169,7 @@ def test_txt_export_all_times(tmp_path): my_model.initialise() my_model.run() - assert os.path.exists( - "{}/{}.txt".format(my_export.folder, my_export.label) - ) + assert os.path.exists("{}/{}.txt".format(my_export.folder, my_export.label)) data = np.genfromtxt( "{}/{}.txt".format(my_export.folder, my_export.label),