abfload icon indicating copy to clipboard operation
abfload copied to clipboard

Tag times not correct in gap free abf2

Open saglag opened this issue 3 years ago • 1 comments

Was trying to plot with at tag points and was having issues with them showing at the correct time.

Code block: MATLAB_2022-01-04_20-33-23 Suggests that tags will be reported in seconds but the output: MATLAB_2022-01-04_20-32-37 Doesn't match the original times in the abf file in units or actual times: image Any ideas on how to alter the import code to correctly report time?

saglag avatar Jan 05 '22 01:01 saglag

I'm not sure right now how to fix it, but it seems the times are off by a constant factor of 1.6666 This to me suggests that h.syncArrTimeBase might not be the right factor to adjust the TagTime for, or there is an additional factor to compensate for. That factor is highly likely to be 3/5 or 5/3, or the ratio of h.syncArrTimeBase and this factor is 3 to 5 or 5 to 3. I would look in the header/metadata of everything in tmp for something that is different by that much in your experiment to figure out what needs to be changed.

fcollman avatar Jan 05 '22 05:01 fcollman