Skip to content

Support reading VTK version 0.1 files #68

@halleysfifthinc

Description

@halleysfifthinc

I have some version="0.1" .vtp files that error on reading at this line

header_type = attribute(root, "header_type", required = true)

From the VTK XML wiki

The header-type specified may be either "UInt32" or "UInt64" and indicates the integer type used in binary data headers (see below). If no such attribute is specified (as in version 0.1) the header type is UInt32.

So requiring "header_type" to be present should be predicated on the version number (if you want to support VTK XML version 0.1).

I am working around this by adding that attribute to the files I'm trying to read, but that is only feasible because I am only reading 3 files.

EDIT: That doesn't work because header_type is assert required to be UInt64 here

@assert header_type == "UInt64"

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions