From de19673f5462cc546ef9e628e926042d4f556e4e Mon Sep 17 00:00:00 2001 From: landmanbester Date: Tue, 19 Nov 2024 14:01:32 +0200 Subject: [PATCH 1/2] remove question marks when plotting (treated as wildcard by ls in radio-padre) --- quartical/apps/plotter.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/quartical/apps/plotter.py b/quartical/apps/plotter.py index 35f18977..5f62857d 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('?', '') + group = tuple(map(qstrip, group)) xds = xds.compute(scheduler="single-threaded") From 4b131827444ef8eafda7c9c0cfb29b03c192fd88 Mon Sep 17 00:00:00 2001 From: Jonathan Kenyon Date: Thu, 28 Nov 2024 13:50:23 +0200 Subject: [PATCH 2/2] Replace question marks with N/A. --- quartical/apps/plotter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quartical/apps/plotter.py b/quartical/apps/plotter.py index 5f62857d..45577001 100644 --- a/quartical/apps/plotter.py +++ b/quartical/apps/plotter.py @@ -194,7 +194,7 @@ def to_plot_dict(xdsl, iter_attrs): def _plot(group, xds, args): # get rid of question marks - qstrip = lambda x: x.replace('?', '') + qstrip = lambda x: x.replace('?', 'N/A') group = tuple(map(qstrip, group)) xds = xds.compute(scheduler="single-threaded")