Commit ebdd37ce authored by Colm Talbot's avatar Colm Talbot

Merge branch 'pp_test_key_error' into 'master'

Use dict's getter in `get_all_injection_credible_levels`

See merge request !560
parents 4a1fa9f8 16c3110b
Pipeline #71095 passed with stages
in 21 minutes and 13 seconds
......@@ -1145,7 +1145,7 @@ class Result(object):
"Cannot compute credible levels.")
credible_levels = {key: self.get_injection_credible_level(key)
for key in keys
if isinstance(self.injection_parameters[key], float)}
if isinstance(self.injection_parameters.get(key, None), float)}
return credible_levels
def get_injection_credible_level(self, parameter):
......
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