Refreshing/Reloading files in ParaView
Since we started using uservoice to collect requests for new features to add to ParaView, one of the top (if not the top) entry had been the request for a reload button. Simple enough request, but a clean solution had been a little challenging to come by since file readers in VTK (and ParaView) don’t uniformly support the ability to reload files.
Recent changes merged in ParaView Git repository, slated to be included in the next ParaView release, version 5.2, finally add support for this feature. A new option, Reload Files, is now available under the Edit menu (or the context menu in the Pipeline Browser). This option is enabled when a reader is active.
On clicking this menu item, for readers that support temporal file series, you will be prompted with a dialog to select whether you want ParaView to look for new files in the file series, or reload the current loaded file itself.
# For file being modified in place per time step >>> reader = OpenDataFile(file) ... >>> ReloadFiles(reader) # For files being generated per timestep >>> reader = OpenDataFile([file1, file2,...]) ... >>> ExtendFilesSeries(reader)