Skip to content

Ensure correct bits are transferred between Python and C++ #20

@carljohnsen

Description

@carljohnsen

We've encountered a problem where the shape of one of the dimensions of a numpy array was set to be >2^32, which it shouldn't be. This was solved by casting to 32-bit, which would then ignore the 32 msb bits. However, this cannot be done for all of the struct values from Python, as some of the sizes are larger than 32-bit.

To solve this, we should implement macros for proper handling of these values. It would also have the added benefit of less boilerplate code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions