18 Jul 2012 10:10
Re: TimestepValues
Stephen Wornom <stephen.wornom <at> inria.fr>
2012-07-18 08:10:59 GMT
2012-07-18 08:10:59 GMT
Justin,
Please include the e-mail to which you are answering or else no one
knows what the question was.
Stephen
Justin Rodriguez wrote:
> Hi Sebastien,
>
> The files were all time dependent data but some had a TimeRange but no
> TimestepValues so I simply did:
>
> TimestepValues = meshFine.TimestepValues
> if len(TimestepValues) == 0:
> timerange = meshFine.GetProperty('TimeRange')
> steps = 100
> TimestepValues = [timerange[1]*i/steps + timerange[0] for i in
> range(steps)]
>
> which works well enough. Hopefully this will help anyone else that
> runs into the same issue.
>
> Thank you again,
> Justin
>
>
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
--
stephen.wornom <at> inria.fr
2004 route des lucioles - BP93
Sophia Antipolis
06902 CEDEX
Tel: 04 92 38 50 54
Fax: 04 97 15 53 51
Justin,
Please include the e-mail to which you are answering or else no one
knows what the question was.
Stephen
Justin Rodriguez wrote:
> Hi Sebastien,
>
> The files were all time dependent data but some had a TimeRange but no
> TimestepValues so I simply did:
>
> TimestepValues = meshFine.TimestepValues
> if len(TimestepValues) == 0:
> timerange = meshFine.GetProperty('TimeRange')
> steps = 100
> TimestepValues = [timerange[1]*i/steps + timerange[0] for i in
> range(steps)]
>
> which works well enough. Hopefully this will help anyone else that
> runs into the same issue.
>
> Thank you again,
> Justin
>
>
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
--
--
stephen.wornom <at> inria.fr
2004 route des lucioles - BP93
Sophia Antipolis
06902 CEDEX
Tel: 04 92 38 50 54
Fax: 04 97 15 53 51
RSS Feed