Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Lukas Weber
load_leveller
Commits
974110e5
Commit
974110e5
authored
Aug 13, 2019
by
Lukas Weber
Browse files
load -> safe_load
parent
c94359b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/loadleveller/mcextract.py
View file @
974110e5
...
...
@@ -16,7 +16,7 @@ class Observable:
class
MCArchive
:
def
__init__
(
self
,
filename
):
with
open
(
filename
,
'r'
)
as
f
:
doc
=
yaml
.
load
(
f
)
doc
=
yaml
.
safe_
load
(
f
)
param_names
=
set
(
sum
([
list
(
task
[
'parameters'
].
keys
())
for
task
in
doc
],
[]))
observable_names
=
set
(
sum
([
list
(
task
[
'results'
].
keys
())
for
task
in
doc
],
[]))
...
...
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