From b353f8659603e6d889273cb47e8c159beedcc0bf Mon Sep 17 00:00:00 2001
From: ferrari <maxence.ferrari@gmail.com>
Date: Tue, 23 Mar 2021 18:18:18 +0100
Subject: [PATCH] Change file numbering

---
 IPI_bombyx.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/IPI_bombyx.py b/IPI_bombyx.py
index c63f729..d13b697 100644
--- a/IPI_bombyx.py
+++ b/IPI_bombyx.py
@@ -102,7 +102,7 @@ def main(args):
         ref_dict = ipi.init(os.path.join(args.wd, df.iloc[ind].filepredmax.strip('/')), args.channel)
     text_ax = plt.subplot(ref_dict['gridspec'][-1, -4:-2])
     usr_files = [v for f in save for v in f.passage.unique() if v in file_list]
-    text = text_ax.text(0.5, 0.5, f'{len(file_list)} files done\n{len(usr_files)} by you', horizontalalignment='center',
+    text = text_ax.text(0.5, 0.5, f'{len(file_list)} files done\n{len(usr_files)}/{len(set(file_list))} by you', horizontalalignment='center',
                  verticalalignment='center', transform=text_ax.transAxes)
     text_ax.axis('off')
     next_file = partial(_next_file, refs=ref_dict, order=samples_order, df=df, save=save, args=args, outpath=outpath,
-- 
GitLab