From 5b5d0db41b715ae853ba5f767495de4ea5e3210a Mon Sep 17 00:00:00 2001 From: Daniel Kratzert Date: Wed, 5 Jul 2023 20:21:03 +0200 Subject: [PATCH] Update worker.py --- src/structurefinder/searcher/worker.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/structurefinder/searcher/worker.py b/src/structurefinder/searcher/worker.py index f9ecf98..c2b9052 100644 --- a/src/structurefinder/searcher/worker.py +++ b/src/structurefinder/searcher/worker.py @@ -56,6 +56,8 @@ def put_files_in_db(self, searchpath: str = '', excludes: Union[list, None] = No time1 = time.perf_counter() patterns = ['*.cif', '*.zip', '*.tar.gz', '*.tar.bz2', '*.tgz', '*.res'] filelist = filewalker_walk(str(searchpath), patterns, excludes=excludes) + if DEBUG: + print(f'Time for file list: {time.perf_counter()-time1:1} s.') filecount = len(filelist) self.number_of_files.emit(filecount) options = {}