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
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
wtlib
WindEnergyToolbox
Commits
9e652c0d
Commit
9e652c0d
authored
7 years ago
by
David Verelst
Browse files
Options
Downloads
Patches
Plain Diff
prepost.dlctemplate: no default tqdm progress bar in postpro_node_merge
parent
e864eea1
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
wetb/prepost/dlctemplate.py
+11
-3
11 additions, 3 deletions
wetb/prepost/dlctemplate.py
with
11 additions
and
3 deletions
wetb/prepost/dlctemplate.py
+
11
−
3
View file @
9e652c0d
...
...
@@ -458,10 +458,18 @@ def post_launch(sim_id, statistics=True, rem_failed=True, check_logs=True,
return
df_stats
,
df_AEP
,
df_Leq
def
postpro_node_merge
():
def
postpro_node_merge
(
tqdm
=
False
):
"""
With postpro_node each individual case has a .csv file for the log file
analysis and a .csv file for the statistics tables. Merge all these single
files into one table/DataFrame.
Parameters
----------
tqdm : boolean, default=False
Set to True for displaying a progress bar (provided by the tqdm module)
when merging all csv files into a single table/pd.DataFrame.
"""
# -------------------------------------------------------------------------
# MERGE POSTPRO ON NODE APPROACH INTO ONE DataFrame
...
...
@@ -470,7 +478,7 @@ def postpro_node_merge():
path_pattern
=
os
.
path
.
join
(
P_RUN
,
'
logfiles
'
,
'
*
'
,
'
*.csv
'
)
csv_fname
=
'
%s_ErrorLogs.csv
'
%
sim_id
fcsv
=
os
.
path
.
join
(
POST_DIR
,
csv_fname
)
mdf
=
AppendDataFrames
(
tqdm
=
False
)
mdf
=
AppendDataFrames
(
tqdm
=
tqdm
)
# individual log file analysis does not have header, make sure to include
# a line for the header
mdf
.
txt2txt
(
fcsv
,
path_pattern
,
tarmode
=
'
r:xz
'
,
header
=
None
,
...
...
@@ -482,7 +490,7 @@ def postpro_node_merge():
path_pattern
=
os
.
path
.
join
(
P_RUN
,
'
res
'
,
'
*
'
,
'
*.csv
'
)
csv_fname
=
'
%s_statistics.csv
'
%
sim_id
fcsv
=
os
.
path
.
join
(
POST_DIR
,
csv_fname
)
mdf
=
AppendDataFrames
(
tqdm
=
True
)
mdf
=
AppendDataFrames
(
tqdm
=
tqdm
)
# individual log file analysis does not have header, make sure to include
# a line for the header
mdf
.
txt2txt
(
fcsv
,
path_pattern
,
tarmode
=
'
r:xz
'
,
header
=
0
,
sep
=
'
,
'
,
...
...
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