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
5b4496cc
Commit
5b4496cc
authored
3 months ago
by
Radermecker Arnaud
Browse files
Options
Downloads
Patches
Plain Diff
oo_metaB -> metaB
parent
5e66cc5f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
comp.py
+9
-9
9 additions, 9 deletions
comp.py
with
9 additions
and
9 deletions
comp.py
+
9
−
9
View file @
5b4496cc
...
@@ -161,7 +161,7 @@ class CompJob(ParametricJob):
...
@@ -161,7 +161,7 @@ class CompJob(ParametricJob):
def
doClean
(
self
):
def
doClean
(
self
):
dirs
=
[
repo
.
name
for
repo
in
self
.
repos
]
dirs
=
[
repo
.
name
for
repo
in
self
.
repos
]
dirs
.
append
(
'
oo_
metaB
'
)
dirs
.
append
(
'
metaB
'
)
for
dir
in
dirs
:
for
dir
in
dirs
:
if
os
.
path
.
isdir
(
dir
):
if
os
.
path
.
isdir
(
dir
):
print
(
"
removing old %s directory
"
%
dir
)
print
(
"
removing old %s directory
"
%
dir
)
...
@@ -205,11 +205,11 @@ class CompJob(ParametricJob):
...
@@ -205,11 +205,11 @@ class CompJob(ParametricJob):
if
not
os
.
path
.
isdir
(
'
oo_meta
'
):
if
not
os
.
path
.
isdir
(
'
oo_meta
'
):
self
.
error
(
'
oo_meta not here!
'
)
self
.
error
(
'
oo_meta not here!
'
)
# create bin dir
# create bin dir
if
os
.
path
.
isdir
(
'
oo_
metaB
'
):
if
os
.
path
.
isdir
(
'
metaB
'
):
print
(
'
removing old %s directory
'
%
'
oo_
metaB
'
)
print
(
'
removing old %s directory
'
%
'
metaB
'
)
shutil
.
rmtree
(
'
oo_
metaB
'
)
shutil
.
rmtree
(
'
metaB
'
)
os
.
mkdir
(
'
oo_
metaB
'
)
os
.
mkdir
(
'
metaB
'
)
os
.
chdir
(
'
oo_
metaB
'
)
os
.
chdir
(
'
metaB
'
)
# which python?
# which python?
out
=
subprocess
.
check_output
([
self
.
pars
[
'
PYTHONEXE
'
].
val
,
'
-c
'
,
out
=
subprocess
.
check_output
([
self
.
pars
[
'
PYTHONEXE
'
].
val
,
'
-c
'
,
...
@@ -253,7 +253,7 @@ class CompJob(ParametricJob):
...
@@ -253,7 +253,7 @@ class CompJob(ParametricJob):
self
.
compileMETAFOR
()
self
.
compileMETAFOR
()
def
cleanBattery
(
self
):
def
cleanBattery
(
self
):
os
.
chdir
(
'
oo_
metaB/bin
'
)
os
.
chdir
(
'
metaB/bin
'
)
print
(
"
cleaning old results
"
)
print
(
"
cleaning old results
"
)
os
.
system
(
"
%s battery.py clean >/dev/null 2>&1
"
%
self
.
pars
[
'
PYTHONEXE
'
].
val
)
os
.
system
(
"
%s battery.py clean >/dev/null 2>&1
"
%
self
.
pars
[
'
PYTHONEXE
'
].
val
)
os
.
chdir
(
'
../..
'
)
os
.
chdir
(
'
../..
'
)
...
@@ -261,7 +261,7 @@ class CompJob(ParametricJob):
...
@@ -261,7 +261,7 @@ class CompJob(ParametricJob):
def
startBat
(
self
):
def
startBat
(
self
):
now
=
datetime
.
datetime
.
now
()
now
=
datetime
.
datetime
.
now
()
print
(
"
starting battery at %s (come back tomorrow)
"
%
now
.
ctime
())
print
(
"
starting battery at %s (come back tomorrow)
"
%
now
.
ctime
())
os
.
chdir
(
'
oo_
metaB/bin
'
)
os
.
chdir
(
'
metaB/bin
'
)
#cmd="nice -%s %s battery.py %s -j %s -k %s >battery.log 2>&1" % \
#cmd="nice -%s %s battery.py %s -j %s -k %s >battery.log 2>&1" % \
# (self.pars['NICE_VALUE'].val, self.pars['PYTHONEXE'].val, \
# (self.pars['NICE_VALUE'].val, self.pars['PYTHONEXE'].val, \
# self.pars['BATTERY_ARG'].val,\
# self.pars['BATTERY_ARG'].val,\
...
@@ -281,7 +281,7 @@ class CompJob(ParametricJob):
...
@@ -281,7 +281,7 @@ class CompJob(ParametricJob):
os
.
chdir
(
'
../..
'
)
os
.
chdir
(
'
../..
'
)
def
checkResults
(
self
):
# pars indep
def
checkResults
(
self
):
# pars indep
os
.
chdir
(
'
oo_
metaB/bin
'
)
os
.
chdir
(
'
metaB/bin
'
)
print
(
"
diff
'
ing results
"
)
print
(
"
diff
'
ing results
"
)
# cmd="%s battery.py diffTSC" % self.pars['PYTHONEXE'].val # <= future battery.py (using TSC)
# cmd="%s battery.py diffTSC" % self.pars['PYTHONEXE'].val # <= future battery.py (using TSC)
cmd
=
"
%s battery.py diff
"
%
self
.
pars
[
'
PYTHONEXE
'
].
val
cmd
=
"
%s battery.py diff
"
%
self
.
pars
[
'
PYTHONEXE
'
].
val
...
...
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