Skip to content

PyVista example data - These are used for examples in both PyVista and PVGeo

License

Notifications You must be signed in to change notification settings

pyvista/vtk-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyVista Example Data Respository

This data was originally cloned from git://vtk.org/VTKData.git - these are used for examples in both PyVista and PVGeo.

Feel free to open a Pull Request with any data you would like to add. Please create a new directory for any new datasets and add a README with license information so other users can reuse the examples within the limits of the license.

For this data to be useful, you'll need to be able to consume these files.

Consuming these files

If you're using pyvista>=0.37.0 you can download these files with:

from pyvista import examples

filename = examples.download_file('my-directory/my-file.vtk')

This assumes that you had uploaded the file to the Data directory as Data/my-directory/my-file.vtk.

Adding the Example to PyVista's Downloads

See the documentation within downloads.py for adding a new method to download the example file within the pyvista.examples module.