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
Admin message
The Gitlab server is succesfully updated to version 17.9.2
Show more breadcrumbs
toolbox
WindEnergyToolbox
Commits
bba2525c
Commit
bba2525c
authored
7 years ago
by
David Verelst
Browse files
Options
Downloads
Patches
Plain Diff
prepost.dlcdefs: do not overwrite user defined tags from spreadsheets
parent
7a7fb3f8
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/dlcdefs.py
+12
-6
12 additions, 6 deletions
wetb/prepost/dlcdefs.py
with
12 additions
and
6 deletions
wetb/prepost/dlcdefs.py
+
12
−
6
View file @
bba2525c
...
@@ -446,11 +446,14 @@ def excel_stabcon(proot, fext='xlsx', pignore=None, pinclude=None, sheet=0,
...
@@ -446,11 +446,14 @@ def excel_stabcon(proot, fext='xlsx', pignore=None, pinclude=None, sheet=0,
tags_dict
[
'
[Case folder]
'
]
=
tags_dict
[
'
[Case folder]
'
].
lower
()
tags_dict
[
'
[Case folder]
'
]
=
tags_dict
[
'
[Case folder]
'
].
lower
()
tags_dict
[
'
[Case id.]
'
]
=
tags_dict
[
'
[Case id.]
'
].
lower
()
tags_dict
[
'
[Case id.]
'
]
=
tags_dict
[
'
[Case id.]
'
].
lower
()
dlc_case
=
tags_dict
[
'
[Case folder]
'
]
dlc_case
=
tags_dict
[
'
[Case folder]
'
]
tags_dict
[
'
[data_dir]
'
]
=
'
data/
'
if
'
[data_dir]
'
not
in
tags_dict
:
tags_dict
[
'
[data_dir]
'
]
=
'
data/
'
if
'
[res_dir]
'
not
in
tags_dict
:
if
'
[res_dir]
'
not
in
tags_dict
:
tags_dict
[
'
[res_dir]
'
]
=
'
res/%s/
'
%
dlc_case
tags_dict
[
'
[res_dir]
'
]
=
'
res/%s/
'
%
dlc_case
tags_dict
[
'
[log_dir]
'
]
=
'
logfiles/%s/
'
%
dlc_case
if
'
[log_dir]
'
not
in
tags_dict
:
tags_dict
[
'
[htc_dir]
'
]
=
'
htc/%s/
'
%
dlc_case
tags_dict
[
'
[log_dir]
'
]
=
'
logfiles/%s/
'
%
dlc_case
if
'
[htc_dir]
'
not
in
tags_dict
:
tags_dict
[
'
[htc_dir]
'
]
=
'
htc/%s/
'
%
dlc_case
if
'
[Case id.]
'
in
tags_dict
.
keys
():
if
'
[Case id.]
'
in
tags_dict
.
keys
():
tags_dict
[
'
[case_id]
'
]
=
tags_dict
[
'
[Case id.]
'
]
tags_dict
[
'
[case_id]
'
]
=
tags_dict
[
'
[Case id.]
'
]
if
'
[time stop]
'
in
tags_dict
.
keys
():
if
'
[time stop]
'
in
tags_dict
.
keys
():
...
@@ -463,9 +466,12 @@ def excel_stabcon(proot, fext='xlsx', pignore=None, pinclude=None, sheet=0,
...
@@ -463,9 +466,12 @@ def excel_stabcon(proot, fext='xlsx', pignore=None, pinclude=None, sheet=0,
tags_dict
[
'
[turb_base_name]
'
]
=
None
tags_dict
[
'
[turb_base_name]
'
]
=
None
tags_dict
[
'
[Turb base name]
'
]
=
None
tags_dict
[
'
[Turb base name]
'
]
=
None
tags_dict
[
'
[DLC]
'
]
=
tags_dict
[
'
[Case id.]
'
].
split
(
'
_
'
)[
0
][
3
:]
tags_dict
[
'
[DLC]
'
]
=
tags_dict
[
'
[Case id.]
'
].
split
(
'
_
'
)[
0
][
3
:]
tags_dict
[
'
[pbs_out_dir]
'
]
=
'
pbs_out/%s/
'
%
dlc_case
if
'
[pbs_out_dir]
'
not
in
tags_dict
:
tags_dict
[
'
[pbs_in_dir]
'
]
=
'
pbs_in/%s/
'
%
dlc_case
tags_dict
[
'
[pbs_out_dir]
'
]
=
'
pbs_out/%s/
'
%
dlc_case
tags_dict
[
'
[iter_dir]
'
]
=
'
iter/%s/
'
%
dlc_case
if
'
[pbs_in_dir]
'
not
in
tags_dict
:
tags_dict
[
'
[pbs_in_dir]
'
]
=
'
pbs_in/%s/
'
%
dlc_case
if
'
[iter_dir]
'
not
in
tags_dict
:
tags_dict
[
'
[iter_dir]
'
]
=
'
iter/%s/
'
%
dlc_case
# the default spreadsheets do not define the tags related to the
# the default spreadsheets do not define the tags related to the
# eigen analsyis yet
# eigen analsyis yet
if
'
[eigen_analysis]
'
in
tags_dict
and
tags_dict
[
'
[eigen_analysis]
'
]:
if
'
[eigen_analysis]
'
in
tags_dict
and
tags_dict
[
'
[eigen_analysis]
'
]:
...
...
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