Skip to content

Change return type of frame cell to Option #42

@seatonullberg

Description

@seatonullberg

Many file formats do not always store a bounding box. I think it would be a significant usability improvement if getting the cell from a frame behaved the same way as getting the velocities (#25).

Currently, if the frame does not contain a cell it will silently return a default cell that is initialized with all matrix elements set to zero. In order to check for this one must iterate over the matrix elements and assume that a matrix full of zeros means the cell was not found in the file.

I would be happy to make a pull request that addresses this from the Rust side if it is something that doesn't need to be handled in the underlying C++ code.

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