Constraint on the VTK version
Hi,
While testing to read one ImageData generated by ParaView 5.11, I noticed that the VTK file version was asserted to be v"1.0". The file version generated by ParaView 5.11 is 2.2, and the latest VTK version is 3.0.
I am wondering if there is a reason for only supporting version 1.0? If I remove
@assert version == v"1.0"
it seems that the reader still works in my limited attempts.
Thanks!
I checked and indeed, there is no official VTK XML spec file findable on the internet. We thus do not know what version 1 or higher (or lower) really means. Thus, feel free to create a PR that removes this check and we will be happy to merge it.
I know nothing about the specific differences, but let's hope it doesn't break anything.
The VTKFileFormats briefly mentioned that v1.0 and v2.0 is compatible with v3.0, and some older names are discouraged (e.g. aspect ratio in v1.0 v.s. spacing in v2.0 for structured points). I do not see any real difference.
The VTKFileFormats briefly mentioned that
v1.0andv2.0is compatible withv3.0, and some older names are discouraged (e.g. aspect ratio inv1.0v.s. spacing inv2.0for structured points). I do not see any real difference.
Yes, but they refer to the legacy formats, while we only support the XML file formats, for which no version information has ever been released publicly (see also https://gitlab.kitware.com/vtk/vtk/-/issues/17675).
I use a rather recent version of VTK (9.3.0 from https://archlinux.org/packages/extra/x86_64/vtk) and the written image data has version 0.1. Would it be possible to further relax the version and essentially accept everything until the different versions are documented?
Yes, that's fine with me. If you create a PR that removes the checks, I'll merge it 😊