Skip to content

Verify or calculate offset from FileLength #25

@mkitti

Description

@mkitti

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 at 1024. That is OFFSET == FileLength - np.prod(shape)*np.dtype(dtype).itemsize

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions