Skip to content

Error when reading ptw files with ryptw.readPTWHeader() #24

@MarijnMostert

Description

@MarijnMostert

Since the latests release, I get an error when reading ptw files using ryptw.readPTWHeader().
On line 417, 7 bytes are read and then passed to mybyte(), which checks if it receives only one byte and throws an error otherwise.

Header.h_Reserved134 = mybyte(headerinfo[134:141])
def mybyte(x):
        # will return an error if x is more than a byte length
        ans = ord(x)
        return ans

This throws an error in this case, but I'm not sure this is intended.

Something similar is done on lines 425 and 448

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