Skip to content

Commit

Permalink
Update default errors file name.
Browse files Browse the repository at this point in the history
  • Loading branch information
evgkanias committed May 22, 2023
1 parent 76ee65a commit 9869ee8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions templates/create_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

data_base = os.path.abspath(os.path.join(os.getcwd(), '..'))
csv_dir = os.path.abspath(os.path.join(os.getcwd(), '..', 'csv'))
error_path = os.path.join(csv_dir, "error_data.csv")

default_raw_file = 'raw_dataset.csv'
default_pooled_file = 'pooled_dataset.csv'
Expand Down Expand Up @@ -632,7 +631,7 @@ def create_errors_csv(*data_dirs, pooled_df=None, out_file=None):
error_df = pd.DataFrame(data_frame)

if out_file is None:
out_file = error_path
out_file = os.path.join(csv_dir, default_error_file)
elif not out_file.endswith('.csv'):
out_file += '.csv'
error_df.to_csv(out_file, index=False, float_format='%.4f')
Expand Down

0 comments on commit 9869ee8

Please sign in to comment.