[Paraview-developers] vtkPythonProgrammableFilter data persistence

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Thu Feb 9 08:24:50 EST 2017


You should be able to add an attribute to `self` that gets preserved across
executions, a simple test case shown in the attached screenshot.

On Thu, Feb 9, 2017 at 3:07 AM, Daan van Vugt <daanvanvugt at gmail.com> wrote:

> Hi,
>
> Would it be possible to cache some data in this filter?
> Or is it rerun with a clean execution environment every time?
>
> In my case I'm working on a file reader for a custom format.
> I know the grid will not change 99% of the time (and can detect when it
> does),
> so it would make sense to keep the points and cells and just change the
> data arrays.
>
> I cannot find a way to store these for the next time the reader is called.
> Does anyone have any suggestion?
>
> Thanks,
> Daan
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=
> Paraview-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20170209/ba1f3b04/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2017-02-09 at 8.24.11 AM.png
Type: image/png
Size: 275118 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20170209/ba1f3b04/attachment-0001.png>


More information about the Paraview-developers mailing list