Skip to content
Snippets Groups Projects
Commit 52f86ed8 authored by Colm Talbot's avatar Colm Talbot
Browse files

allow injected parameters to not exist in corner plot

parent 2c7dd519
No related branches found
No related tags found
1 merge request!749allow injected parameters to not exist in corner plot
Pipeline #112286 passed
......@@ -918,8 +918,10 @@ class Result(object):
cond2 = parameters is None
cond3 = bool(kwargs.get("truths", True))
if cond1 and cond2 and cond3:
parameters = {key: self.injection_parameters[key] for key in
self.search_parameter_keys}
parameters = {
key: self.injection_parameters.get(key, np.nan)
for key in self.search_parameter_keys
}
# If parameters is a dictionary, use the keys to determine which
# parameters to plot and the values as truths.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment