From 5ae98f6020ac1d537023070a085d9f6cfb00e9b0 Mon Sep 17 00:00:00 2001 From: Melissa Linkert Date: Wed, 14 Aug 2024 14:21:24 -0500 Subject: [PATCH] LIF: fix offset calculation for certain datasets with multiple unstitched tiles --- .../src/loci/formats/in/LIFReader.java | 31 +++++++++++++++++-- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/components/formats-gpl/src/loci/formats/in/LIFReader.java b/components/formats-gpl/src/loci/formats/in/LIFReader.java index 9ea3f61c73c..c3a65c40ec5 100644 --- a/components/formats-gpl/src/loci/formats/in/LIFReader.java +++ b/components/formats-gpl/src/loci/formats/in/LIFReader.java @@ -573,23 +573,48 @@ protected void initFile(String id) throws FormatException, IOException { // correct offsets, if necessary if (offsets.size() > getSeriesCount()) { + LOGGER.debug("Adjusting image offsets; found {} expected {}", + offsets.size(), getSeriesCount()); Long[] storedOffsets = offsets.toArray(new Long[offsets.size()]); + for (int i=0; i