---------- Forwarded message ---------- From: Renato Elias <rnel...@gmail.com> Date: Fri, Jun 2, 2017 at 11:45 AM Subject: Re: [Paraview] [Catalyst] Extracting and saving data from a spreadsheet To: Utkarsh Ayachit <utkarsh.ayac...@kitware.com>
I gave up to extract cell values from a spreadsheet and save using a python text file... it was not working even after your suggested changes :( I'm now just trying to save a csv file at each coprocessing step with the following code: # create a new 'Integrate Variables' integrateVariables1 = IntegrateVariables(Input=calculator1) ThisTime = datadescription.GetTime() ThisTimeStep = datadescription.GetTimeStep() print(' => Time step: '+str(ThisTimeStep)+' Time: '+str(ThisTime)) fout = 'coefs_'+str(ThisTimeStep)+'.csv' SaveData(fout, proxy=integrateVariables1) but it seems ParaView does not treat the IntegrateVariables filter as a data producer and I'm only able to save the first csv file when the pipeline is created. It seems Catalyst was not designed around the idea that some data could be written to text files and be pos-processed later on :( Any idea? Regards Renato On Wed, May 31, 2017 at 4:22 PM, Utkarsh Ayachit < utkarsh.ayac...@kitware.com> wrote: > > I've tried to follow these steps in ParaView Python Console as described > > bellow but if I print the data structure it seems there's no information > > about the result of IntegrateVariables's filter > > You're missing `UpdatePipeline(cl)` (sorry, my original snippet had a > type, UpdatePIpeline(), not Update() is required). You need to call is > before trying to get the data. >
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview