From 773dca8f7576fc81927a07f970ef4439e4836d84 Mon Sep 17 00:00:00 2001 From: Landman Bester Date: Fri, 29 Nov 2024 10:03:12 +0200 Subject: [PATCH] remove question marks when plotting (#347) * remove question marks when plotting (treated as wildcard by ls in radio-padre) * Replace question marks with N/A. --------- Co-authored-by: Jonathan Kenyon --- quartical/apps/plotter.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/quartical/apps/plotter.py b/quartical/apps/plotter.py index 35f18977..45577001 100644 --- a/quartical/apps/plotter.py +++ b/quartical/apps/plotter.py @@ -193,6 +193,9 @@ def to_plot_dict(xdsl, iter_attrs): def _plot(group, xds, args): + # get rid of question marks + qstrip = lambda x: x.replace('?', 'N/A') + group = tuple(map(qstrip, group)) xds = xds.compute(scheduler="single-threaded")