From e9f25cd7a0ded350b8af181d1165dafe09aa1763 Mon Sep 17 00:00:00 2001 From: Peter Willendrup Date: Sun, 25 Oct 2026 16:20:25 +0100 Subject: [PATCH 1/2] Add label to identify NeXus or ASCII output in test --- tools/Python/mctest/mcviewtest.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/Python/mctest/mcviewtest.py b/tools/Python/mctest/mcviewtest.py index 455d56c9da..9392dd95ac 100644 --- a/tools/Python/mctest/mcviewtest.py +++ b/tools/Python/mctest/mcviewtest.py @@ -363,8 +363,10 @@ def iterate_obj_to_populate_rows(iterobj, otherobjs, rows, ncols, use_iterobj_re for key in list(iterobj.keys()): row = [] rows.append(row) - # instr - row.append(key) + # instr, with the lead column's output type + d = join(testdir, get_data_url(iterobj[key])) + fmt = " (NeXus)" if os.path.isfile(join(d, "mccode.h5")) else " (ASCII)" if has_output(d) else "" + row.append(key + fmt) # prepare row list to have the requested amount of cells (cols) for i in range(ncols - len(otherobjs) - 1): From 83c8794a8de3a5c9056dfc9789dffb031d457e04 Mon Sep 17 00:00:00 2001 From: Peter Willendrup Date: Sun, 25 Oct 2026 16:24:36 +0100 Subject: [PATCH 2/2] Update mcviewtest.py --- tools/Python/mctest/mcviewtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/Python/mctest/mcviewtest.py b/tools/Python/mctest/mcviewtest.py index 9392dd95ac..bfa53d3aa1 100644 --- a/tools/Python/mctest/mcviewtest.py +++ b/tools/Python/mctest/mcviewtest.py @@ -365,7 +365,7 @@ def iterate_obj_to_populate_rows(iterobj, otherobjs, rows, ncols, use_iterobj_re rows.append(row) # instr, with the lead column's output type d = join(testdir, get_data_url(iterobj[key])) - fmt = " (NeXus)" if os.path.isfile(join(d, "mccode.h5")) else " (ASCII)" if has_output(d) else "" + fmt = " (McCode/NeXus)" if os.path.isfile(join(d, "mccode.h5")) else " (McCode/ASCII)" if has_output(d) else "" row.append(key + fmt) # prepare row list to have the requested amount of cells (cols)