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

VTK export issue when reading into ParaView #1070

Closed
khm293 opened this issue Mar 5, 2021 · 0 comments · Fixed by #1249
Closed

VTK export issue when reading into ParaView #1070

khm293 opened this issue Mar 5, 2021 · 0 comments · Fixed by #1249
Assignees
Labels
in progress enhancement in progress
Milestone

Comments

@khm293
Copy link

khm293 commented Mar 5, 2021

Hello, I am using Flopy version 3.3.4 and found an issue when trying to view exported .vtu files in ParaView. I consistently got this error: Cannot read cell data from Cells. Offsets and connectivity arrays must be the same type.

I fixed it on my end by changing line 808 in vtk.py to offsets = np.empty((iverts.shape[0]), np.int64)

There is probably a good reason to keep them as different data types and that the problem was on my end with importing to ParaView, but in the chance that it is a bug, it's a simple fix. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in progress enhancement in progress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants