Skip to content

Commit

Permalink
feat: add convert.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jimbrig authored Feb 13, 2024
1 parent 693ec0a commit 62b4e89
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/convert.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# NOTE: File not currently in use.

import os
import pandas as pd

base_directory = os.path.dirname(os.path.abspath(__file__))
output_directory = os.path.join(base_directory, 'output')
output_csv_path = os.path.join(output_directory, 'output.csv')

os.makedirs(output_directory, exist_ok=True)

def combine_txt_files(path, output):
folder_name = os.path.basename(path)
output_path = os.path.join(output, f'{folder_name}.csv')

0 comments on commit 62b4e89

Please sign in to comment.