Skip to content

Commit 9869ee8

Browse files
committed
Update default errors file name.
1 parent 76ee65a commit 9869ee8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

templates/create_csv.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
data_base = os.path.abspath(os.path.join(os.getcwd(), '..'))
2020
csv_dir = os.path.abspath(os.path.join(os.getcwd(), '..', 'csv'))
21-
error_path = os.path.join(csv_dir, "error_data.csv")
2221

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

634633
if out_file is None:
635-
out_file = error_path
634+
out_file = os.path.join(csv_dir, default_error_file)
636635
elif not out_file.endswith('.csv'):
637636
out_file += '.csv'
638637
error_df.to_csv(out_file, index=False, float_format='%.4f')

0 commit comments

Comments
 (0)