<div dir="ltr"><div><div><div>Hi Utkarsh,<br><br></div>I think I can make that work. Is there any way to get a filename pattern (or list of files) in a nice way through the GUI?<br><br></div>Also I'm having trouble accessing the Properties set in my script when using it with python_filter_generator.py<br><br></div><div>Daan<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 24, 2017 at 5:15 PM, Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Daan,<div><br></div><div>I didn't notice this earlier, but you're using a vtkProgrammableFilter together with a <span style="font-size:12.8px">vtkFileSeriesReader. That, I am afraid is not current supported. You're better off adding support to reading the multiple files to your Programamble Source itself. The ParaView guide does provide an example for a reading a file series of csv files as a time series (Section 13.2.2). That should give you pointers to update your Python script. Let me know if you need additional pointers.</span></div><span class="HOEnZb"><font color="#888888"><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Utkarsh</span></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 24, 2017 at 10:22 AM, Daan van Vugt <span dir="ltr"><<a href="mailto:daanvanvugt@gmail.com" target="_blank">daanvanvugt@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi Utkarsh,<br><br></div>When I do that I get a segfault, with the following backtrace:<br><br>==============================<wbr>===========================<br>Process id 7407 Caught SIGSEGV at 0x0 address not mapped to object<br>Program Stack:<br>WARNING: The stack trace will not use advanced capabilities because this is a release build.<br>0x7f27d2933080 : ??? [(???) ???:-1]<br>0x7f27d242a536 : vtkProgrammableFilter::Request<wbr>Data(vtkInformation*, vtkInformationVector**, vtkInformationVector*) [(libvtkFiltersProgrammable-pv<wbr>5.2.so.1) ???:-1]<br>0x7f27d26f7880 : vtkPythonProgrammableFilter::P<wbr>rocessRequest(vtkInformation*, vtkInformationVector**, vtkInformationVector*) [(libvtkPVClientServerCoreCore<wbr>-pv5.2.so.1) ???:-1]<br>0x7f27c93e3e1b : vtkFileSeriesReader::RequestDa<wbr>ta(vtkInformation*, vtkInformationVector**, vtkInformationVector*) [(libvtkPVVTKExtensionsDefault<wbr>-pv5.2.so.1) ???:-1]<br><br></div>(this occurs before any of my python code has been executed)<br><br></div>Thanks,<br></div>Daan<br></div><div class="m_-8252815079023640275HOEnZb"><div class="m_-8252815079023640275h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 24, 2017 at 3:39 PM, Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Daan,<div><br></div><div>Can you try changing the `si_class` attribute in the XML for the proxy to be `vtkSIMetaReaderProxy`? I suspect the classname was changed at some point. If that works, I can update the Wiki.</div><div><br></div><div>Thanks</div><div>Utkarsh</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-8252815079023640275m_-7194733966181413566h5">On Thu, Jan 19, 2017 at 11:01 AM, Daan van Vugt <span dir="ltr"><<a href="mailto:daanvanvugt@gmail.com" target="_blank">daanvanvugt@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-8252815079023640275m_-7194733966181413566h5"><div dir="ltr"><div><div>Hi,<br><br></div>I would like to create a plugin that uses h5py and numpy to read a file, do some operations on it and return VTK objects.<br></div><div>Would it be possible to do the same thing as <a href="http://www.paraview.org/Wiki/Animating_legacy_VTK_file_series#Making_custom_readers_work_with_file_series" target="_blank">http://www.paraview.org/Wiki/A<wbr>nimating_legacy_VTK_file_serie<wbr>s#Making_custom_readers_work_w<wbr>ith_file_series</a><br></div><div>but instead of using a <span class="m_-8252815079023640275m_-7194733966181413566m_-1557072896642873237m_-2212458214933824739gmail-sc3"><span class="m_-8252815079023640275m_-7194733966181413566m_-1557072896642873237m_-2212458214933824739gmail-st0">vtkPDataSetReader use a vtkPythonProgrammableSource?<br><br></span></span></div><div><span class="m_-8252815079023640275m_-7194733966181413566m_-1557072896642873237m_-2212458214933824739gmail-sc3"><span class="m_-8252815079023640275m_-7194733966181413566m_-1557072896642873237m_-2212458214933824739gmail-st0">I have made a (very naive) try, attached to this post.<br></span></span></div><div><span class="m_-8252815079023640275m_-7194733966181413566m_-1557072896642873237m_-2212458214933824739gmail-sc3"><span class="m_-8252815079023640275m_-7194733966181413566m_-1557072896642873237m_-2212458214933824739gmail-st0">When using this to read a series of files I get the errors (version 5.2.0 64-bit) shown below.<br></span></span></div><div><span class="m_-8252815079023640275m_-7194733966181413566m_-1557072896642873237m_-2212458214933824739gmail-sc3"><span class="m_-8252815079023640275m_-7194733966181413566m_-1557072896642873237m_-2212458214933824739gmail-st0">To test, just use any hdf5 file. (.h5)<br></span></span></div><div><span class="m_-8252815079023640275m_-7194733966181413566m_-1557072896642873237m_-2212458214933824739gmail-sc3"><span class="m_-8252815079023640275m_-7194733966181413566m_-1557072896642873237m_-2212458214933824739gmail-st0"><br></span></span></div><div><span class="m_-8252815079023640275m_-7194733966181413566m_-1557072896642873237m_-2212458214933824739gmail-sc3"><span class="m_-8252815079023640275m_-7194733966181413566m_-1557072896642873237m_-2212458214933824739gmail-st0">Thanks for any help,<br></span></span></div><div><span class="m_-8252815079023640275m_-7194733966181413566m_-1557072896642873237m_-2212458214933824739gmail-sc3"><span class="m_-8252815079023640275m_-7194733966181413566m_-1557072896642873237m_-2212458214933824739gmail-st0">Daan<br></span></span></div><div><span class="m_-8252815079023640275m_-7194733966181413566m_-1557072896642873237m_-2212458214933824739gmail-sc3"><span class="m_-8252815079023640275m_-7194733966181413566m_-1557072896642873237m_-2212458214933824739gmail-st0"><br><br><br><br>ERROR: In /home/buildslave/dashboards/bu<wbr>ildbot/paraview-pvbinsdash-lin<wbr>ux-shared-release_opengl2_qt4_<wbr>superbuild/source-paraview/Par<wbr>aViewCore/ServerImplementation<wbr>/Core/vtkPVSessionCore.cxx, line 439<br>vtkPVSessionCore (0x100da30): Failed to instantiate vtkSIFileSeriesReaderProxy<br><br><br>global_id: 4875<br>location: 2<br>[paraview_protobuf.DefinitionH<wbr>eader.client_class]: "vtkSMSourceProxy"<br>[paraview_protobuf.DefinitionH<wbr>eader.server_class]: "vtkSIFileSeriesReaderProxy"<br>[paraview_protobuf.ProxyState.<wbr>xml_group]: "sources"<br>[paraview_protobuf.ProxyState.<wbr>xml_name]: "JorekReadH5"<br>[paraview_protobuf.ProxyState.<wbr>subproxy] {<br>  name: "Reader"<br>  global_id: 4864<br>}<br>############ ABORT #############<br>ERROR: In /home/buildslave/dashboards/bu<wbr>ildbot/paraview-pvbinsdash-lin<wbr>ux-shared-release_opengl2_qt4_<wbr>superbuild/source-paraview/Par<wbr>aViewCore/ServerImplementation<wbr>/Core/vtkPVSessionCore.cxx, line 794<br>vtkPVSessionCore (0x100da30): No object with global-id: 4875<br><br></span></span></div></div>
<br></div></div>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=Paraview-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>Paraview-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/paraview-develope<wbr>rs</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>