You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One use of this would be to verify or calculate the OFFSET location rather than assuming that it is at 1024. That is OFFSET == FileLength - np.prod(shape)*np.dtype(dtype).itemsize
The text was updated successfully, but these errors were encountered:
mkitti
changed the title
Verify or calculate from FileLength
Verify or calculate offset from FileLength
Apr 25, 2022
As long as the offset is in fact a constant, I think we should continue to treat it that way in the .dat reader. As for doing a validation, unfortunately it's possible for data to be incomplete (due to some problem during acquisition), and then the file length couldn't be used to infer the offset. Rather, in this situation the offset is needed for validating the file length.
Currently the code reads a "FileLength" attribute from the header, but this is currently unused.
https://github.com/janelia-cosem/fibsem-tools/blob/f4bedbfc4ff81ec1b83282908ba6702baf98c734/src/fibsem_tools/io/fibsem.py#L587
One use of this would be to verify or calculate the
OFFSET
location rather than assuming that it is at1024
. That isOFFSET == FileLength - np.prod(shape)*np.dtype(dtype).itemsize
The text was updated successfully, but these errors were encountered: