From ec786f15919d96f050e17dd3407ca25cee9a6b59 Mon Sep 17 00:00:00 2001 From: Sara Sjunnebo Date: Mon, 7 Oct 2024 10:18:46 +0200 Subject: [PATCH] Fix method definitions --- taca/element/Element_Runs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/taca/element/Element_Runs.py b/taca/element/Element_Runs.py index 97a9d2da..ff1fc0ef 100644 --- a/taca/element/Element_Runs.py +++ b/taca/element/Element_Runs.py @@ -639,7 +639,7 @@ def rsync_successful(self): return False # Clear all content under a dir - def clear_dir(dir): + def clear_dir(self, dir): for filename in os.listdir(dir): file_path = os.path.join(dir, filename) try: @@ -651,7 +651,7 @@ def clear_dir(dir): print(f"Failed to delete {file_path} Reason {e}") # Write to csv - def write_to_csv(data, filename): + def write_to_csv(self, data, filename): # Get the fieldnames from the keys of the first dictionary fieldnames = data[0].keys() # Open the file and write the CSV