Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Transcript sampler
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 sampler
Commits
02f8f655
Commit
02f8f655
authored
2 years ago
by
Jakob Rien
Browse files
Options
Downloads
Patches
Plain Diff
Replace transcript_extractor.py
parent
8c23055a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/transcript_extractor.py
+19
-3
19 additions, 3 deletions
scripts/transcript_extractor.py
with
19 additions
and
3 deletions
scripts/transcript_extractor.py
+
19
−
3
View file @
02f8f655
#### Transcript extractor #####
"""
Transcript extractor
Version 1.
1
.0
"""
Version 1.
2
.0
"""
### Called Packages ###
import
re
import
os
import
time
### Functions ###
python_version
=
"
3.7.13
"
module_list
=
[
re
,
os
,
time
]
modul_name_list
=
[
"
re
"
,
"
os
"
,
"
time
"
]
### Functions ###
def
version_control
(
module_list
,
modul_name_list
,
python_version
):
with
open
(
"
required.txt
"
,
"
a
"
)
as
req
:
for
i
in
range
(
len
(
module_list
)):
try
:
version
=
module_list
[
i
].
__version__
entry
=
modul_name_list
[
i
]
+
"
\t
"
+
str
(
version
)
+
"
\n
"
req
.
write
(
entry
)
except
:
version
=
python_version
entry
=
modul_name_list
[
i
]
+
"
\t
"
+
str
(
version
)
+
"
\n
"
req
.
write
(
entry
)
def
__parameter_editor
(
file_name
,
source_pathway_name
,
deposit_pathway_name
):
"""
This function allows for changing the parameters after running the program
"""
...
...
@@ -307,6 +322,7 @@ def extract_transcript(file_name = "test",source_pathway_name = os.getcwd(),depo
#### Dev part ####
if
__name__
==
"
__main__
"
:
#version_control(module_list,modul_name_list,python_version)
extract_transcript
()
#This line allows the file to be executed on its own also from
...
...
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