From 092fdc0b1be7a96224f1d9b96b6fe804586025e4 Mon Sep 17 00:00:00 2001 From: Dan Howe Date: Thu, 7 Apr 2022 11:35:06 +0200 Subject: [PATCH] Fix function call --- probabilistic-analysis/probabilistic_assessment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/probabilistic-analysis/probabilistic_assessment.py b/probabilistic-analysis/probabilistic_assessment.py index 80be570..59c690e 100644 --- a/probabilistic-analysis/probabilistic_assessment.py +++ b/probabilistic-analysis/probabilistic_assessment.py @@ -78,7 +78,7 @@ def read_parameter_file(fname): """ with open(fname, 'r') as stream: try: - params = yaml.load(stream) + params = yaml.safe_load(stream) except yaml.YAMLError as exc: print(exc, "\nCheck the formatting of the yaml file.")