Closed boriskaus closed 1 year ago
I can confirm that the suggested changes work & all tests pass fine. A test file is now uploaded above; feel free to add it to this repo or to a separate one.
A test file is now uploaded above; feel free to add it to this repo or to a separate one.
I don't see the test file. However, we have a separate repository for that, https://github.com/JuliaVTK/ReadVTK_examples. It would be great if you can create a PR to that repo to add the new test file there, then we can use it for a new test here.
It would be great if you can create a PR to that repo to add the new test file there, then we can use it for a new test here.
done here.
done, have a look if you're happy
Thanks - can you register the new version so I can update my packages accordingly?
Yes, I already tried to do it but we first need https://github.com/JuliaRegistries/General/pull/83019 to be merged, since we haven't changed the repo URL after moving this package to the JuliaVTK org. I'll let you know as soon as v0.1.7 is registered.
The new release v0.1.7 is out. Sorry for the delay!
Thanks a lot!
This fixes a bug that occurred irregularly (with files that could be read fine by Paraview). The culprit turns out to be the following line in
VTKFile(filename)
:The issue is that
raw_file_contents
sometimes ends in a space as in(f\x12 \n\t"
whichrstrip
changes to(f\x12"
instead of(f\x12 "
. Fixed with:Here a ZIP-file that has the problem: Convection_p00000000.vtr.zip reproduce the mistake with: