Skip to content

Commit b27583c

Browse files
committed
fix variable names [no ci]
1 parent 55ffced commit b27583c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bayesflow/diagnostics/plots/plot_quantity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def _prepare_values(
214214
if all([key in values for key in ["values", "metric_name", "variable_names"]]):
215215
# output of a metric function
216216
label = values["metric_name"] if label is None else label
217-
variable_names = values["variable_names"]
217+
variable_names = variable_names or values["variable_names"]
218218
values = values["values"]
219219

220220
if hasattr(values, "variable_keys"):

0 commit comments

Comments
 (0)