[Paraview-developers] vtkPythonProgrammableFilter data persistence

Daan van Vugt daanvanvugt at gmail.com
Thu Feb 9 08:29:16 EST 2017


Exactly what I was looking for, thanks!

Daan

On Thu, Feb 9, 2017 at 2:24 PM, Utkarsh Ayachit <utkarsh.ayachit at kitware.com
> wrote:

> 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/b6d86a1f/attachment.html>


More information about the Paraview-developers mailing list