Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
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
Code review analytics
Issue 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
caosdb
Software
caosdb-server
Commits
a7ebfea6
Verified
Commit
a7ebfea6
authored
5 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Plain Diff
Merge branch 'dev' into f-tsv-file-to-xsl
parents
b9c60219
0163b80b
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
scripting/bin/xls_from_csv.py
+7
-5
7 additions, 5 deletions
scripting/bin/xls_from_csv.py
with
7 additions
and
5 deletions
scripting/bin/xls_from_csv.py
+
7
−
5
View file @
a7ebfea6
...
...
@@ -82,6 +82,7 @@ out : str
return
filename
def
_parse_arguments
():
"""
Parses the command line arguments.
...
...
@@ -96,11 +97,12 @@ def _parse_arguments():
parser
.
add_argument
(
'
tsv
'
,
help
=
"
The tsv file.
"
)
return
parser
.
parse_args
()
def
main
():
args
=
_parse_arguments
()
dataframe
=
_parse_to_dataframe
(
args
.
tsv
)
filename
=
_write_xls
(
dataframe
,
directory
=
args
.
tempdir
)
print
(
filename
)
args
=
_parse_arguments
()
dataframe
=
_parse_to_dataframe
(
args
.
tsv
)
filename
=
_write_xls
(
dataframe
,
directory
=
args
.
tempdir
)
print
(
filename
)
if
__name__
==
"
__main__
"
:
main
()
main
()
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