Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jonas Plewinski
pystencils
Commits
b27e94c9
Commit
b27e94c9
authored
May 16, 2018
by
Martin Bauer
Browse files
Added parameter study to kida vortex flow benchmark
parent
27366695
Changes
1
Hide whitespace changes
Inline
Side-by-side
runhelper/parameterstudy.py
View file @
b27e94c9
...
...
@@ -183,7 +183,8 @@ class ParameterStudy:
import
hashlib
return
hashlib
.
sha1
(
json
.
dumps
(
dictionary
,
sort_keys
=
True
).
encode
()).
hexdigest
()
assert
hash_dict
(
d
[
'params'
])
==
hash_dict
(
run
.
parameter_dict
)
assert
hash_dict
(
d
[
'params'
])
==
hash_dict
(
run
.
parameter_dict
),
\
str
(
d
[
'params'
])
+
"is not equal to "
+
str
(
run
.
parameter_dict
)
self
.
parameterStudy
.
db
.
save
(
run
.
parameter_dict
,
result
=
d
[
'result'
],
env
=
d
[
'env'
],
changed_params
=
d
[
'changed_params'
])
return
{}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment