Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
algpath bench
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
GitLab upgrade completed. Current version is 17.11.3.
Show more breadcrumbs
Numerical algebraic geometry
algpath bench
Commits
c02b09fd
Commit
c02b09fd
authored
4 months ago
by
GUILLEMOT Alexandre
Browse files
Options
Downloads
Patches
Plain Diff
small bug corrections
parent
8731d8bd
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
run_entries.py
+9
-2
9 additions, 2 deletions
run_entries.py
runtest.py
+4
-0
4 additions, 0 deletions
runtest.py
synthesize.py
+2
-2
2 additions, 2 deletions
synthesize.py
with
15 additions
and
4 deletions
run_entries.py
+
9
−
2
View file @
c02b09fd
...
...
@@ -19,7 +19,7 @@ parser.add_argument("-n", action='store_true',
args
=
parser
.
parse_args
()
# Recovering data
assert
Path
(
args
.
entries
),
"
Specify valid path
"
assert
Path
(
args
.
entries
)
.
exists
()
,
"
Specify valid path
"
entries_file
=
open
(
args
.
entries
,
"
r
"
)
try
:
...
...
@@ -37,6 +37,13 @@ for i, pkg_name in enumerate(pkg_list):
print
(
f
"
Data
{
j
+
1
}
/
{
len
(
data_list
)
}
"
)
pkg_path
=
(
Path
(
"
packages
"
)
/
Path
(
f
"
{
pkg_name
}
"
)).
with_suffix
(
"
.py
"
)
data_name
=
Path
(
data_path
)
if
not
((
Path
(
"
benchmarks
"
)
/
data_name
/
pkg_name
/
"
info.json
"
).
exists
()
and
args
.
n
):
try
:
assert
args
.
n
info_file
=
open
(
str
(
Path
(
"
benchmarks
"
)
/
data_name
/
pkg_name
/
"
info.json
"
),
"
r
"
)
info
=
json
.
load
(
info_file
)
assert
not
info
[
"
killed manually
"
]
assert
not
info
[
"
script error
"
]
except
:
subprocess
.
run
([
"
python3
"
,
"
runtest.py
"
,
str
(
pkg_path
),
str
((
"
data
"
/
Path
(
data_path
)).
with_suffix
(
"
.json
"
))]
+
[
"
--timeout
"
,
str
(
args
.
timeout
)]
*
(
args
.
timeout
!=
None
)
+
[
"
--mem
"
,
str
(
args
.
mem
)]
*
(
args
.
mem
!=
None
)
+
[
"
--perf
"
]
*
args
.
perf
)
This diff is collapsed.
Click to expand it.
runtest.py
+
4
−
0
View file @
c02b09fd
...
...
@@ -158,6 +158,10 @@ if not args.norun:
os
.
killpg
(
os
.
getpgid
(
p
.
pid
),
signal
.
SIGTERM
)
_
,
_
=
p
.
communicate
()
info_dict
[
"
timeout error
"
]
=
True
except
:
os
.
killpg
(
os
.
getpgid
(
p
.
pid
),
signal
.
SIGTERM
)
_
,
_
=
p
.
communicate
()
out_file
.
close
()
log_file
.
close
()
...
...
This diff is collapsed.
Click to expand it.
synthesize.py
+
2
−
2
View file @
c02b09fd
...
...
@@ -177,8 +177,8 @@ result_stats = {
"
q1steps
"
:
lambda
res
:
steps_format
(
round
(
numpy
.
quantile
([
int
(
p
)
for
p
in
res
[
"
steplist
"
]
if
p
is
not
None
],
0.25
),
1
)),
"
q3steps
"
:
lambda
res
:
steps_format
(
round
(
numpy
.
quantile
([
int
(
p
)
for
p
in
res
[
"
steplist
"
]
if
p
is
not
None
],
0.75
),
1
)),
"
maxprec
"
:
lambda
res
:
str
(
max
([
int
(
p
)
for
p
in
res
[
"
maxpreclist
"
]])),
"
meanprec
"
:
lambda
res
:
st
r
(
numpy
.
mean
([
int
(
p
)
for
p
in
res
[
"
meanpreclist
"
]])),
"
wmeanprec
"
:
lambda
res
:
st
r
(
numpy
.
mean
([
int
(
p
)
for
p
in
res
[
"
weightedmeanpreclist
"
]])),
"
meanprec
"
:
lambda
res
:
st
eps_format
(
numpy
.
mean
([
int
(
p
)
for
p
in
res
[
"
meanpreclist
"
]])),
"
wmeanprec
"
:
lambda
res
:
st
eps_format
(
numpy
.
mean
([
int
(
p
)
for
p
in
res
[
"
weightedmeanpreclist
"
]])),
}
def
_table
(
data
,
branch
,
node
):
...
...
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