From 695966153fd4cae6ea98a032d788021499c766de Mon Sep 17 00:00:00 2001 From: Melissa Linkert Date: Fri, 10 Nov 2023 11:13:54 -0600 Subject: [PATCH] Only set the alternate (unflattened) image name if it is different --- .../test-suite/src/loci/tests/testng/Configuration.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/components/test-suite/src/loci/tests/testng/Configuration.java b/components/test-suite/src/loci/tests/testng/Configuration.java index 2642edb1a30..80bd577aada 100644 --- a/components/test-suite/src/loci/tests/testng/Configuration.java +++ b/components/test-suite/src/loci/tests/testng/Configuration.java @@ -657,8 +657,12 @@ else if (r instanceof ReaderWrapper) { // TODO } - seriesTable.put(NAME, retrieve.getImageName(index)); - seriesTable.put(UNFLATTENED_NAME, unflattenedRetrieve.getImageName(series)); + String flattenedName = retrieve.getImageName(index); + seriesTable.put(NAME, flattenedName); + String unflattenedName = unflattenedRetrieve.getImageName(series); + if ((flattenedName == null && unflattenedName != null) || !flattenedName.equals(unflattenedName)) { + seriesTable.put(UNFLATTENED_NAME, unflattenedName); + } seriesTable.put(DESCRIPTION, retrieve.getImageDescription(index)); Length physicalX = retrieve.getPixelsPhysicalSizeX(index);