Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vtr example trailing whitespace #2

Merged
merged 2 commits into from
May 6, 2023

Conversation

boriskaus
Copy link
Contributor

here a file that caused earlier versions of ReadVTK to fail.

julia> vtk_read = VTKFile("Convection.vtr");
julia> point_data = get_point_data(vtk_read);
julia> get_data_reshaped(point_data[point_data.names[9]]);
ERROR: BoundsError: attempt to access 738759-element Vector{UInt8} at index [671681:738760]
Stacktrace:
 [1] throw_boundserror(A::Vector{UInt8}, I::Tuple{UnitRange{Int64}})
   @ Base ./abstractarray.jl:703
 [2] checkbounds
   @ ./abstractarray.jl:668 [inlined]
 [3] view
   @ ./subarray.jl:177 [inlined]
 [4] get_data(data_array::VTKDataArray{Float32, 1, ReadVTK.FormatAppended})
   @ ReadVTK ~/Downloads/ReadVTK.jl/src/ReadVTK.jl:756
 [5] #get_data_reshaped#5
   @ ~/Downloads/ReadVTK.jl/src/ReadVTK.jl:792 [inlined]
 [6] get_data_reshaped(data_array::VTKDataArray{Float32, 1, ReadVTK.FormatAppended})
   @ ReadVTK ~/Downloads/ReadVTK.jl/src/ReadVTK.jl:791
 [7] top-level scope
   @ REPL[11]:1

examples/Convection.vtr Outdated Show resolved Hide resolved
@sloede sloede merged commit 1f961a7 into JuliaVTK:main May 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants