diff --git a/scripts/base_network.py b/scripts/base_network.py index 66bb66bb..dc4cf4c1 100644 --- a/scripts/base_network.py +++ b/scripts/base_network.py @@ -195,7 +195,7 @@ def _load_lines_from_eg(buses): def _apply_parameter_corrections(n): with open(snakemake.input.parameter_corrections) as f: - corrections = yaml.load(f) + corrections = yaml.safe_load(f) if corrections is None: return for component, attrs in iteritems(corrections):