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" |
I have some version="0.1" .vtp files that error on reading at this line
ReadVTK.jl/src/ReadVTK.jl
Line 115 in 045a603
From the VTK XML wiki
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_typeis assert required to beUInt64hereReadVTK.jl/src/ReadVTK.jl
Line 134 in 045a603