Skip to content

Commit

Permalink
Remove images folder, make sure you get latest one
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewQuijano committed Jan 1, 2025
1 parent 09bca2a commit 510ee29
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions run_treespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import argparse
import os
import shutil
from os import listdir
from os.path import isfile, join

Expand All @@ -20,6 +21,8 @@
def analyze_generated_graphs(input_dir: str, is_newick: bool, draw_image: bool):
list_of_network_files = [f for f in listdir(input_dir) if isfile(join(input_dir, f))]
output_image_dir = os.path.join(input_dir, 'images')
if os.path.exists(output_image_dir):
shutil.rmtree(output_image_dir)
os.makedirs(output_image_dir, exist_ok=True)

# Create Headers of CSV results like answers.csv
Expand Down

0 comments on commit 510ee29

Please sign in to comment.