Open gatagat opened 6 years ago
Hi @gatagat, thank you for bringing this to our attention. If possible would you be able to upload the sample file for those reported values to https://www.openmicroscopy.org/qa2/qa/upload/?
The file above is worth 1.5T, I'll try to reproduce the bug with a small test file and upload it.
Hi @dgault, thanks for looking into this.
Here is the small test data (no sample) - ID 18093.
Expected: the extracted timestamps starting at 0, increasing monotonously up to about 34s for the four time points.
Actual:
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="0" TheT="0" TheZ="0"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="1" TheT="0" TheZ="0"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="0" TheT="0" TheZ="1"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="1" TheT="0" TheZ="1"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="0" TheT="0" TheZ="2"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="1" TheT="0" TheZ="2"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="0" TheT="1" TheZ="0"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="1" TheT="1" TheZ="0"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="0" TheT="1" TheZ="1"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="1" TheT="1" TheZ="1"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="0" TheT="1" TheZ="2"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="1" TheT="1" TheZ="2"/>
<Plane DeltaT="276.2015836405138" DeltaTUnit="s" ... TheC="0" TheT="2" TheZ="0"/>
<Plane DeltaT="276.2015836405138" DeltaTUnit="s" ... TheC="1" TheT="2" TheZ="0"/>
<Plane DeltaT="276.2015836405138" DeltaTUnit="s" ... TheC="0" TheT="2" TheZ="1"/>
<Plane DeltaT="276.2015836405138" DeltaTUnit="s" ... TheC="1" TheT="2" TheZ="1"/>
<Plane DeltaT="276.2015836405138" DeltaTUnit="s" ... TheC="0" TheT="2" TheZ="2"/>
<Plane DeltaT="276.2015836405138" DeltaTUnit="s" ... TheC="1" TheT="2" TheZ="2"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="0" TheT="3" TheZ="0"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="1" TheT="3" TheZ="0"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="0" TheT="3" TheZ="1"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="1" TheT="3" TheZ="1"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="0" TheT="3" TheZ="2"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="1" TheT="3" TheZ="2"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="0" TheT="0" TheZ="0"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="1" TheT="0" TheZ="0"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="0" TheT="0" TheZ="1"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="1" TheT="0" TheZ="1"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="0" TheT="0" TheZ="2"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="1" TheT="0" TheZ="2"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="0" TheT="1" TheZ="0"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="1" TheT="1" TheZ="0"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="0" TheT="1" TheZ="1"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="1" TheT="1" TheZ="1"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="0" TheT="1" TheZ="2"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="1" TheT="1" TheZ="2"/>
<Plane DeltaT="276.2015836405138" DeltaTUnit="s" ... TheC="0" TheT="2" TheZ="0"/>
<Plane DeltaT="276.2015836405138" DeltaTUnit="s" ... TheC="1" TheT="2" TheZ="0"/>
<Plane DeltaT="276.2015836405138" DeltaTUnit="s" ... TheC="0" TheT="2" TheZ="1"/>
<Plane DeltaT="276.2015836405138" DeltaTUnit="s" ... TheC="1" TheT="2" TheZ="1"/>
<Plane DeltaT="276.2015836405138" DeltaTUnit="s" ... TheC="0" TheT="2" TheZ="2"/>
<Plane DeltaT="276.2015836405138" DeltaTUnit="s" ... TheC="1" TheT="2" TheZ="2"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="0" TheT="3" TheZ="0"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="1" TheT="3" TheZ="0"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="0" TheT="3" TheZ="1"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="1" TheT="3" TheZ="1"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="0" TheT="3" TheZ="2"/>
<Plane DeltaT="266.99418505689533" DeltaTUnit="s" ... TheC="1" TheT="3" TheZ="2"/>
Hi @gatagat, thank for you uploading the file. I have been able to test and debug it today and can confirm that Im able to reproduce the issue as described.
From debugging it seems that Bio-Formats has parsed 4 Timestamps attachments, 1 per file, from that it has parsed the following list of 10 timestamps :
266.99418505689533, 266.99418505689533, 276.2015836405138, 266.99418505689533, 276.2015836405138, 285.31430773753726, 266.99418505689533, 276.2015836405138, 285.31430773753726, 294.74838868852714
These 10 values were added from 1-4 values in each corresponding file:
From test2.czi
: 266.99418505689533
From test2(1).czi
: 266.99418505689533, 276.2015836405138
From test2(2).czi
: 266.99418505689533, 276.2015836405138, 285.31430773753726
From test2(3).czi
: 266.99418505689533, 276.2015836405138, 285.31430773753726, 294.74838868852714
So the first issue we have is that it should be unique timepoints stored when the timepoints are split over multiple files like this.
The second issue is the actual values, if we assume the first timepoint is 0 and offset the remaining 3 values we would end up with: 0, 9.20739858362, 18.3201226806, 27.7542036316
This would align with what is displayed in Zen Black: 0, 9.21, 18.3, 27.8
So that at least explains the 2 issues, hopefully we can put a fix in place for these shortly
Hi @dgault, is there anything new? Do you need any more information from our side?
Hi,
bioformats fails to extract correct timestamps from CZI files produced by the Z1 light sheet. If i understand it correctly the timestamps (DeltaT) should report seconds elapsed since the beginning of the acquisition. As of now this is definitely not the case, see example below.
Issue #2946 regarding CZI files from Z1 is afaict not related.
Thanks for looking into this.
Best regards, Tomas
Here are tags produced by
showinf -omexml -nopix
(v5.7.1) for an input CZI file has 2 channels, 2 series, 399 time points, ~1 volume / minute. DeltaT should start at 0 and then keep increasing by ~60 which is not the case:For simplicity showing only T<50, Z=0 C=0.)