-
Notifications
You must be signed in to change notification settings - Fork 11
Description
I have some version="0.1" .vtp files that error on reading at this line
Line 115 in 045a603
| 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
Line 134 in 045a603
| @assert header_type == "UInt64" |