Skip to content

Commit

Permalink
Fix method definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
ssjunnebo committed Oct 7, 2024
1 parent dda10c6 commit ec786f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions taca/element/Element_Runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit ec786f1

Please sign in to comment.