Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
WindEnergyToolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
toolbox
WindEnergyToolbox
Commits
034012cf
Commit
034012cf
authored
7 years ago
by
David Verelst
Browse files
Options
Downloads
Patches
Plain Diff
write_master: remove redundant return statement, docstring conventions
parent
7ac6a013
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
wetb/prepost/write_master.py
+15
-6
15 additions, 6 deletions
wetb/prepost/write_master.py
with
15 additions
and
6 deletions
wetb/prepost/write_master.py
+
15
−
6
View file @
034012cf
...
...
@@ -29,16 +29,26 @@ import numpy as np
import
os
import
pandas
as
pd
def
write_master
(
path_to_texts
,
excel_name
=
'
DLCs.xlsx
'
,
file_end
=
'
.txt
'
,
delimiter
=
'
\t
'
):
"""
Write a master Excel sheet from a series of text files
Args:
path_to_texts (str): path to directory with text files
excel_name (str): filename of generated master Excel file
file_end (str): file ending of text files
delimiter (str): column delimiter in text files
Parameters
----------
path_to_texts : str
path to directory with text files
excel_name : str
filename of generated master Excel file
file_end : str
file ending of text files
delimiter : str
column delimiter in text files
"""
# formatting for header cells
...
...
@@ -96,7 +106,6 @@ def write_master(path_to_texts,
# save worksheet
writer
.
save
()
return
if
__name__
==
'
__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