pyvista / pyvista-support

[moved] Please head over to the Discussions tab of the PyVista repository
https://github.com/pyvista/pyvista/discussions
59 stars 4 forks source link

Automatically updates #524

Closed hbadi closed 2 years ago

hbadi commented 2 years ago

Hi,

Is there a way to automatically make an update when vtk/vtu files change ?

Thanks for helping.

banesullivan commented 2 years ago

No, there is not

banesullivan commented 2 years ago

You would have to do some sort of polling on the mtime of the file and then have a custom call back to rerun your workflow. This is way out of scope for PyVista.

banesullivan commented 2 years ago

I will say that if you need to do this, you could use VTK directly as its pipeline model is built for this. But PyVista abandoned the pipeline model in favor of chaining to be more "Pythonic"