Blampey Quentin commited on
Commit
61efa61
·
1 Parent(s): f24cbed
Files changed (1) hide show
  1. add_files.py +2 -2
add_files.py CHANGED
@@ -4,6 +4,7 @@ from pathlib import Path
4
 
5
  import numpy as np
6
  import pandas as pd
 
7
 
8
 
9
  def main(args):
@@ -23,7 +24,7 @@ def main(args):
23
  if args.dry_run:
24
  print(f"Files will be copied inside {root}/<species>/<tissue>")
25
  else:
26
- for name in existing_files:
27
  species, tissue = df_all.loc[name, ["species", "tissue"]].values
28
 
29
  src = path / f"{name}.h5ad"
@@ -32,7 +33,6 @@ def main(args):
32
 
33
  dst_dir.mkdir(parents=True, exist_ok=True)
34
 
35
- print(f"Copying {src} to {dst}")
36
  shutil.copyfile(src, dst)
37
 
38
  if not args.dry_run:
 
4
 
5
  import numpy as np
6
  import pandas as pd
7
+ from tqdm import tqdm
8
 
9
 
10
  def main(args):
 
24
  if args.dry_run:
25
  print(f"Files will be copied inside {root}/<species>/<tissue>")
26
  else:
27
+ for name in tqdm(existing_files, desc="Copying files"):
28
  species, tissue = df_all.loc[name, ["species", "tissue"]].values
29
 
30
  src = path / f"{name}.h5ad"
 
33
 
34
  dst_dir.mkdir(parents=True, exist_ok=True)
35
 
 
36
  shutil.copyfile(src, dst)
37
 
38
  if not args.dry_run: