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

load -> safe_load

parent c94359b5
......@@ -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], []))
Supports Markdown
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