[vtkusers] How to re-load time information in ExodusIIReader

Slaughter, Andrew E andrew.slaughter at inl.gov
Fri Jan 13 10:42:19 EST 2017


On Fri, Jan 13, 2017 at 8:19 AM, David Thompson <david.thompson at kitware.com>
wrote:

> Hi Andrew,
>
> Does calling Modified() on the reader cause an update? If not, how about
> calling SetFileName(NULL) and then SetFileName(previousFileName)? Note that
> the latter will (should, anyway) invalidate the reader's cache, so it is
> not without a cost.
>

I am doing the following and nothing changes the behavior:

reader.SetFileName(None)
reader.GetExecutive().GetOutputInformation(0).Remove(vtk.vtkStreamingDemandDrivenPipeline.TIME_STEPS())
reader.ResetSettings()
reader.ResetCache()
reader.Modified()





> ParaView has had this feature requested (for information to get updated
> when the file gets changed) before and I don't recall whether something was
> done to address it or not.
>
>         David
>
> > On Jan 12, 2017, at 3:12 PM, Slaughter, Andrew E <
> andrew.slaughter at inl.gov> wrote:
> >
> > Is there anyone who can help me with this issue?
> >
> > On Tue, Dec 20, 2016 at 11:32 AM, Slaughter, Andrew E <
> andrew.slaughter at inl.gov> wrote:
> > I am reading a file that contains 2 timesteps, but is then updated and
> has an additional timestep. How can a reload the vtkExodusIIReader to get
> the new time information.
> >
> > I attached a python script demonstrating what I am doing, but I will
> summarize here. My test script has two files (diffusion_1.e and
> diffusion_2.e that have 2 and 3 timestep respectively). If I create a
> vtkExodusIIReader and change the filename then I get the correct number.
> >
> > But, if I copy the files to a common filename I always get 2, even when
> the file has changed to have 3 timesteps.
> >
> > Any help would be appreciated,
> >
> > Andrew
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.
> kitware.com_opensource_opensource.html&d=DQIFAg&c=
> 54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=h7heP8xwI1i_
> HikChvhFbEBurKirgfOCdwgBxB9lM8c&m=W1vKstuEGq-
> lNynopbSrIwOQtVR21SJhJxwg3144Opw&s=I7tOUUvI2lc5-
> Eug4ZanDkvXqd8Rvsh6y8RPRwskGXw&e=
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.vtk.
> org_Wiki_VTK-5FFAQ&d=DQIFAg&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB_
> _aEkJFOKJFd00&r=h7heP8xwI1i_HikChvhFbEBurKirgfOCdwgBxB9lM8c&m=W1vKstuEGq-
> lNynopbSrIwOQtVR21SJhJxwg3144Opw&s=PapWYmdBGkq3LB9WjMmMlZ7L_
> kGw3Vt7OaN_h_K4scs&e=
> >
> > Search the list archives at: https://urldefense.proofpoint.
> com/v2/url?u=http-3A__markmail.org_search_-3Fq-3Dvtkusers&d=DQIFAg&c=
> 54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=h7heP8xwI1i_
> HikChvhFbEBurKirgfOCdwgBxB9lM8c&m=W1vKstuEGq-
> lNynopbSrIwOQtVR21SJhJxwg3144Opw&s=YXE_cbXDb_lkTgxTDXRFyPaxxS7x4_zBiKN8_
> BDyVBU&e=
> >
> > Follow this link to subscribe/unsubscribe:
> > https://urldefense.proofpoint.com/v2/url?u=http-3A__public.
> kitware.com_mailman_listinfo_vtkusers&d=DQIFAg&c=
> 54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=h7heP8xwI1i_
> HikChvhFbEBurKirgfOCdwgBxB9lM8c&m=W1vKstuEGq-
> lNynopbSrIwOQtVR21SJhJxwg3144Opw&s=Ye48KJ2KUQJ0PFq7X8pMHtXNg0JOs_
> 8BvXi88lpQWgc&e=
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170113/156de446/attachment.html>


More information about the vtkusers mailing list