Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OnedataSim
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
LAGO
Software
OnedataSim
Commits
435581f0
Unverified
Commit
435581f0
authored
2 years ago
by
Hernán Asorey
Browse files
Options
Downloads
Patches
Plain Diff
Corrected the issue of using an ending "/" in -o path
parent
d01fa754
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
wrappers/args_showers.py
+4
-8
4 additions, 8 deletions
wrappers/args_showers.py
with
4 additions
and
8 deletions
wrappers/args_showers.py
+
4
−
8
View file @
435581f0
...
...
@@ -104,18 +104,14 @@ def get_sys_args_S1():
# codename is identical to the S0 origin, but begins with S1
S0_codename_full
=
args_dict
[
'
o
'
]
S0_codename
=
S0_codename_full
.
split
(
"
/
"
)
S0_codename
=
S0_codename
[
-
1
]
# last in list
print
(
S0_codename_full
)
# warning, if the user include an additional "/" at the end (this is typical when using tab)
# the it will fail as last element of S0_condename is empty
# so we need the last not empty element of the list
S0_codename
=
[
e
for
e
in
S0_codename
if
e
][
-
1
]
codename
=
'
S1_
'
+
S0_codename
.
replace
(
'
S0_
'
,
''
,
1
)
args_dict
.
update
({
'
p
'
:
codename
})
# working dir
args_dict
.
update
({
'
w
'
:
os
.
getcwd
()})
# OJO PROVI: DEBERIA SACARSE DE LOS METADATOS DE S0
# other args for ARTI showers from CODENAME
splitted
=
S0_codename
.
split
(
'
_
'
)
...
...
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