Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Transcript structure generator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
zavolan_group
tools
Transcript structure generator
Commits
b8eef73a
Commit
b8eef73a
authored
2 years ago
by
Larissa Glass
Browse files
Options
Downloads
Patches
Plain Diff
Display progress bar for main processing loop
parent
5e33bd56
No related branches found
No related tags found
1 merge request
!9
Display progress bar for main processing loop
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
environment.yml
+1
-0
1 addition, 0 deletions
environment.yml
pyproject.toml
+1
-0
1 addition, 0 deletions
pyproject.toml
tsg/main.py
+3
-1
3 additions, 1 deletion
tsg/main.py
with
5 additions
and
1 deletion
environment.yml
+
1
−
0
View file @
b8eef73a
...
...
@@ -7,6 +7,7 @@ dependencies:
-
matplotlib
-
pandas
-
pip
-
tqdm
-
flake8-docstrings
-
mypy
-
flake8
...
...
This diff is collapsed.
Click to expand it.
pyproject.toml
+
1
−
0
View file @
b8eef73a
...
...
@@ -12,6 +12,7 @@ requires-python = ">=3.7"
license
=
{
text
=
"MIT"
}
dependencies
=
[
"pandas"
,
"tqdm"
,
]
[project.urls]
...
...
This diff is collapsed.
Click to expand it.
tsg/main.py
+
3
−
1
View file @
b8eef73a
...
...
@@ -2,6 +2,8 @@ import logging
import
numpy
as
np
import
pandas
as
pd
from
tqdm
import
tqdm
LOG
=
logging
.
getLogger
(
__name__
)
...
...
@@ -288,7 +290,7 @@ def sample_transcripts(
# Set up output file, write header once and append data in loop
write_header
(
output_annotations_file
)
for
_
,
row
in
transcripts
.
iterrows
():
for
_
,
row
in
tqdm
(
transcripts
.
iterrows
()
)
:
transcript_id
=
row
[
"
id
"
]
transcript_count
=
row
[
"
count
"
]
...
...
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