Commit 9869b279 authored by Lukas Riedel's avatar Lukas Riedel

Explicitly use unsafe PyYAML loader

This is required to load the OrderedDict instances written into the YAML files.
parent 43bf6cab
......@@ -68,6 +68,7 @@
* `make all` would not build the solver application target `dorie` !167
* Allow Neumman BC to be applied on a different direction other than gravity !121
* Transport model option `dirichletMode` was not working properly !121
* Use unsafe loader of PyYAML v5.2 for loading parameter scraper data !177
### Deprecated
......
......@@ -4,7 +4,7 @@ import warnings
import argparse
import traceback
from collections import OrderedDict
from yaml import dump, load
from yaml import dump, unsafe_load
from dorie.parscraper import readers, writers, match_parameters
from dorie.parscraper.warnings import OutputWarning
......@@ -46,7 +46,7 @@ def scrape(xml,
if not overwrite:
# concatenate file contents and current data
with open(out, 'r') as file:
data = load(file)
data = unsafe_load(file)
data.update(matched_parameters)
matched_parameters = data
......
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