From 399daf5188edd1c61d7d4244e4e3afce1cd17fab Mon Sep 17 00:00:00 2001
From: ferrari <maxence.ferrari@gmail.com>
Date: Mon, 22 Mar 2021 09:41:35 +0100
Subject: [PATCH] Fix iterator when all files are done

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

diff --git a/IPI_bombyx.py b/IPI_bombyx.py
index 9fac575..7ef1c15 100644
--- a/IPI_bombyx.py
+++ b/IPI_bombyx.py
@@ -81,7 +81,6 @@ def main(args):
     done_file = open(args.done_file, 'a+')
     done_file.seek(0)
     file_list = [int(v) for v in done_file.read().split('\n') if len(v)]
-    df = df[~df.ipassage.isin(file_list)]
     overlap = False
     if not len(df):
         df = pd.read_pickle(args.input)
@@ -143,4 +142,4 @@ if __name__ == '__main__':
                         help='Path to file listing files done')
 
     args = parser.parse_args()
-    sys.exit(main(args))
\ No newline at end of file
+    sys.exit(main(args))
-- 
GitLab