From c6b09d70d204c0dd8fe508ba2f293329636a817c Mon Sep 17 00:00:00 2001 From: Amandine PERRIN <amandine.perrin@pasteur.fr> Date: Tue, 5 Nov 2019 10:06:02 +0100 Subject: [PATCH] Docstring in utils module --- PanACoTA/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PanACoTA/utils.py b/PanACoTA/utils.py index fd13cca8..de8118c8 100755 --- a/PanACoTA/utils.py +++ b/PanACoTA/utils.py @@ -893,7 +893,7 @@ def cat(list_files, output, title=None): """ Equivalent of 'cat' unix command. - Concatenate all files in 'list_files' and save result in 'output' + Concatenate all files in 'list_files' and save result in 'output' folder. Concat using shutil.copyfileobj, in order to copy by chunks, to avoid memory problems if files are big. @@ -904,7 +904,7 @@ def cat(list_files, output, title=None): output : str output filename, where all concatenated files will be written title : str or None - if you want to show a progressbar while concatenating files, add a title for this\ + if you want to show a progressbar while concatenating files, add a title for this progressbar here. If no title, nothing will be shown during concatenation. """ @@ -913,7 +913,7 @@ def cat(list_files, output, title=None): if title: nbfiles = len(list_files) widgets = [title + ': ', progressbar.Bar(marker='â–ˆ', left='', right='', fill=' '), - ' ', progressbar.Counter(), "/{}".format(nbfiles), ' (', + ' ', progressbar.Counter(), f"/{nbfiles}" ' (', progressbar.Percentage(), ") - ", progressbar.Timer()] bar = progressbar.ProgressBar(widgets=widgets, max_value=nbfiles, term_width=100).start() curnum = 1 -- GitLab