Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
panacota
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Amandine PERRIN
panacota
Commits
c6b09d70
Commit
c6b09d70
authored
5 years ago
by
Amandine PERRIN
Browse files
Options
Downloads
Patches
Plain Diff
Docstring in utils module
parent
fa031939
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
PanACoTA/utils.py
+3
-3
3 additions, 3 deletions
PanACoTA/utils.py
with
3 additions
and
3 deletions
PanACoTA/utils.py
+
3
−
3
View file @
c6b09d70
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment