beweinreich commited on
Commit
a291937
1 Parent(s): 4edd87e

fix scoping

Browse files
Files changed (1) hide show
  1. run.py +3 -3
run.py CHANGED
@@ -14,8 +14,8 @@ if __name__ == "__main__":
14
 
15
  # get all files in the raw folder and iterate through them
16
  raw_files = os.listdir('./raw')
17
- # for raw_file_name in raw_files:
18
- for raw_file_name in ['test.csv']:
19
  # chop off the extension for the results run key
20
  # result_file_name = raw_file_name.split('.')[0]
21
  # run_key = f"{result_file_name}-{int(time.time())}"
@@ -50,7 +50,7 @@ if __name__ == "__main__":
50
 
51
  # num_rows is the total number of rows in the CSV file but we add one row for the header
52
  print(f"CSV has {num_rows+1} rows")
53
- csv_complete = last_row_num > num_rows
54
  if not csv_complete:
55
  print(f"Starting at row #{last_row_num + 1}")
56
 
 
14
 
15
  # get all files in the raw folder and iterate through them
16
  raw_files = os.listdir('./raw')
17
+ for raw_file_name in raw_files:
18
+ # for raw_file_name in ['test.csv']:
19
  # chop off the extension for the results run key
20
  # result_file_name = raw_file_name.split('.')[0]
21
  # run_key = f"{result_file_name}-{int(time.time())}"
 
50
 
51
  # num_rows is the total number of rows in the CSV file but we add one row for the header
52
  print(f"CSV has {num_rows+1} rows")
53
+ csv_complete = last_row_num >= num_rows
54
  if not csv_complete:
55
  print(f"Starting at row #{last_row_num + 1}")
56