base_network: Replace deprecated yaml.load by yaml.safe_load
Refer to https://msg.pyyaml.org/load for details.
This commit is contained in:
parent
4056ad7ad8
commit
5de59fe453
@ -195,7 +195,7 @@ def _load_lines_from_eg(buses):
|
|||||||
|
|
||||||
def _apply_parameter_corrections(n):
|
def _apply_parameter_corrections(n):
|
||||||
with open(snakemake.input.parameter_corrections) as f:
|
with open(snakemake.input.parameter_corrections) as f:
|
||||||
corrections = yaml.load(f)
|
corrections = yaml.safe_load(f)
|
||||||
|
|
||||||
if corrections is None: return
|
if corrections is None: return
|
||||||
for component, attrs in iteritems(corrections):
|
for component, attrs in iteritems(corrections):
|
||||||
|
Loading…
Reference in New Issue
Block a user