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

max-gap error for empty series catched

parent 80836cd4
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 #47180 passed with stage
in 1 minute and 45 seconds
...@@ -141,7 +141,7 @@ def makeFig( ...@@ -141,7 +141,7 @@ def makeFig(
d = d[~na_mask] d = d[~na_mask]
# insert nans between values mutually spaced > max_gap # insert nans between values mutually spaced > max_gap
if max_gap: if max_gap and not d.empty:
d = _insertBlockingNaNs(d, max_gap) d = _insertBlockingNaNs(d, max_gap)
# figure composition # figure composition
...@@ -230,7 +230,8 @@ def _plotVarWithFlags( ...@@ -230,7 +230,8 @@ def _plotVarWithFlags(
continue continue
# Also skip plot, if all flagged values are np.nans (to catch flag missing and masked results mainly) # Also skip plot, if all flagged values are np.nans (to catch flag missing and masked results mainly)
if datser[flags_i.notna()].empty: temp_i = datser.index.join(flags_i.index, how="inner")
if datser[temp_i][flags_i[temp_i].notna()].isna().all():
continue continue
scatter_kwargs.update( scatter_kwargs.update(
......
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