jpdefrutos commited on
Commit
7bfdced
·
1 Parent(s): e00c8e8

Create output dir if it doesn't exist

Browse files
Files changed (1) hide show
  1. EvaluationScripts/statistics.py +1 -1
EvaluationScripts/statistics.py CHANGED
@@ -123,7 +123,7 @@ if __name__ == "__main__":
123
  args = parser.parse_args()
124
 
125
  assert os.path.exists(args.file), 'CSV file not found'
126
-
127
  df = pd.read_csv(args.file, sep=args.sep)
128
  if "Unnamed" in df.columns[0]:
129
  df = df.iloc[:, 1:]
 
123
  args = parser.parse_args()
124
 
125
  assert os.path.exists(args.file), 'CSV file not found'
126
+ os.makedirs(args.outdir, exist_ok=True)
127
  df = pd.read_csv(args.file, sep=args.sep)
128
  if "Unnamed" in df.columns[0]:
129
  df = df.iloc[:, 1:]