Skip to content
Snippets Groups Projects
Commit f535d178 authored by Peter Lünenschloß's avatar Peter Lünenschloß
Browse files

catches flags_meta={} break

parent 7ee25a85
No related branches found
No related tags found
8 merge requests!685Release 2.4,!684Release 2.4,!567Release 2.2.1,!566Release 2.2,!501Release 2.1,!372fix doctest snippets,!369Current documentation,!317History sensitive plots
Pipeline #48359 passed with stage
in 1 minute and 43 seconds
......@@ -234,6 +234,9 @@ def _plotVarWithFlags(
color_cycle = itertools.cycle(toSequence(color_cycle))
if history:
for i in flags_hist.columns:
# catch empty but existing history case (flags_meta={})
if len(flags_meta) == 0:
continue
scatter_kwargs.update({"label": flags_meta[i]["func"].split(".")[-1]})
flags_i = flags_hist[i].astype(float)
if history == "complete":
......
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