Commit 974110e5 authored by Lukas Weber's avatar Lukas Weber

load -> safe_load

parent c94359b5
...@@ -16,7 +16,7 @@ class Observable: ...@@ -16,7 +16,7 @@ class Observable:
class MCArchive: class MCArchive:
def __init__(self, filename): def __init__(self, filename):
with open(filename, 'r') as f: 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], [])) param_names = set(sum([list(task['parameters'].keys()) for task in doc], []))
observable_names = set(sum([list(task['results'].keys()) for task in doc], [])) observable_names = set(sum([list(task['results'].keys()) for task in doc], []))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment