Commit 16c3110b authored by Avi Vajpeyi's avatar Avi Vajpeyi 👽 Committed by Colm Talbot

Use dict's getter in `get_all_injection_credible_levels`

parent 4a1fa9f8
......@@ -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