Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
linuxbin
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor 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
Aerospace and Mechanical Engineering
linuxbin
Commits
4224f6e4
Commit
4224f6e4
authored
3 months ago
by
Papeleux Luc
Browse files
Options
Downloads
Patches
Plain Diff
pass jobId to battery (to allow multiple runs through launch.py)
parent
5bc89e1c
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
launch.py
+2
-1
2 additions, 1 deletion
launch.py
with
2 additions
and
1 deletion
launch.py
+
2
−
1
View file @
4224f6e4
...
@@ -199,7 +199,7 @@ class LaunchJob(ParametricJob):
...
@@ -199,7 +199,7 @@ class LaunchJob(ParametricJob):
return
jobname
.
encode
(
'
ascii
'
,
'
ignore
'
)
# convert to ASCII if some strings were unicode
return
jobname
.
encode
(
'
ascii
'
,
'
ignore
'
)
# convert to ASCII if some strings were unicode
def
getOutFileName
(
self
):
def
getOutFileName
(
self
):
outFileName
=
"
%s.%s
-
%s.txt
"
%
(
self
.
pars
[
'
OUTFILE
'
].
val
,
self
.
pars
[
'
ALGORITHM
'
].
val
,
self
.
jobId
)
outFileName
=
"
%s.%s%s.txt
"
%
(
self
.
pars
[
'
OUTFILE
'
].
val
,
self
.
pars
[
'
ALGORITHM
'
].
val
,
self
.
jobId
)
if
self
.
debug
:
if
self
.
debug
:
print
(
"
outFileName =
"
,
outFileName
)
print
(
"
outFileName =
"
,
outFileName
)
return
outFileName
return
outFileName
...
@@ -353,6 +353,7 @@ class LaunchJob(ParametricJob):
...
@@ -353,6 +353,7 @@ class LaunchJob(ParametricJob):
pin
.
write
(
b
'
battery = b.Battery()
\n
'
)
pin
.
write
(
b
'
battery = b.Battery()
\n
'
)
pin
.
write
(
b
'
battery.keepFacs = True
\n
'
)
pin
.
write
(
b
'
battery.keepFacs = True
\n
'
)
pin
.
write
((
'
battery.dirs = [r
"
%s
"
]
\n
'
%
tests
).
encode
(
'
utf-8
'
))
pin
.
write
((
'
battery.dirs = [r
"
%s
"
]
\n
'
%
tests
).
encode
(
'
utf-8
'
))
pin
.
write
((
'
battery.jobId = r
"
%s
"
\n
'
%
self
.
jobId
).
encode
(
'
utf-8
'
))
if
(
self
.
pars
[
'
ALGORITHM
'
].
val
==
"
execfile
"
):
if
(
self
.
pars
[
'
ALGORITHM
'
].
val
==
"
execfile
"
):
reg1
=
r
"
(.+)_0*([1-9][0-9]*)\.py
"
reg1
=
r
"
(.+)_0*([1-9][0-9]*)\.py
"
...
...
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