<HTML>
<HEAD>
<TITLE>Re: [Paraview] Multiple temporal shifts still not working right</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Nuts. I guess it wasn’t fixed after all. I submitted a new bug report with your new description.<BR>
<BR>
<a href="http://www.paraview.org/Bug/view.php?id=8156">http://www.paraview.org/Bug/view.php?id=8156</a><BR>
<BR>
Note that I think I found a workaround using the temporal cache filter. (Details in the bug report.)<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 11/21/08 8:15 AM, "Eric E. Monson" <<a href="emonson@cs.duke.edu">emonson@cs.duke.edu</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hey,<BR>
<BR>
Sorry for the long email, but I find this problem difficult to<BR>
describe succinctly...<BR>
<BR>
In February I was trying to use multiple Temporal Shift Scale filters<BR>
as input to a Python Programmable Filter to do on-the-fly point<BR>
velocity calculations (for diffusing particles in my simulation<BR>
output). There were troubles with the pipeline updating properly, and<BR>
Ken Moreland came up with a nice self-contained test case and filed<BR>
the bug 6307:<BR>
<BR>
<a href="http://www.paraview.org/Bug/view.php?id=6307">http://www.paraview.org/Bug/view.php?id=6307</a><BR>
<BR>
which was listed in August as "fixed" because the test case seemed to<BR>
work now. But, I don't think this is really resolved yet.<BR>
<BR>
If you load in the TimeShiftTest2.pvsm state file, the animation seems<BR>
to play correctly, but I think that's a red herring. If you turn off<BR>
the visibility of the TemporalShiftScale filters, you can see that no<BR>
boxes move until after t=1.0, whereas if the temporal filters are<BR>
turned on, and the group filter is turned off, one box moves and then<BR>
the other.<BR>
<BR>
I don't know if this helps, but if you look at the Output printed by<BR>
the Python filter in TimeShiftTest1.pvsm, you can see that the<BR>
temporal data sets have the correct time, but the ImageData within<BR>
them doesn't match.<BR>
......<BR>
<BR>
All of this is much more clear to me when I load in a simple data set<BR>
with one point moving in time (attached Xdmf data set -- I'll also<BR>
attach a link to a state file which sets this pipeline up, but you'll<BR>
have to change the path for the data file in the state file manually<BR>
if you want to use it).<BR>
<BR>
The pipeline is: Load data. Add a Temporal Shift Scale with (post)<BR>
shift=0. Add another TSS off the original data set with (post) shift =<BR>
1. Highlight both TSSs and route into a Python Programmable Filter<BR>
with Unstructured Grid output and this script:<BR>
<BR>
in0 = self.GetInputDataObject(0,0)<BR>
ds0 = in0.GetTimeStep(0)<BR>
in1 = self.GetInputDataObject(0,1)<BR>
ds1 = in1.GetTimeStep(0)<BR>
print 'in1 t = %.1f' % in1.GetInformation().Get(in1.DATA_TIME_STEPS(),0)<BR>
print 'ds1 t = %.1f' % ds1.GetInformation().Get(ds1.DATA_TIME_STEPS(),0)<BR>
print 'in0 t = %.1f' % in0.GetInformation().Get(in0.DATA_TIME_STEPS(),0)<BR>
print 'ds0 t = %.1f' % ds0.GetInformation().Get(ds0.DATA_TIME_STEPS(),0)<BR>
out1 = self.GetOutputDataObject(0)<BR>
out1.ShallowCopy(ds0)<BR>
print 'out1 t = %.1f' %<BR>
out1.GetInformation().Get(out1.DATA_TIME_STEPS(),0)<BR>
<BR>
When I animate this (PV CVS or 3.4, OS X 10.5.5), with the TSSs on and<BR>
the PPF off, I see the expected: two points, one following the other.<BR>
When the TSSs are off and the PPF is on, only one point shows up.<BR>
Also, the behavior is different if the animation is stepped backwards<BR>
rather than forwards. And, the printed Output times from the PPF show<BR>
one of the ImageData sets time doesn't match its temporal host.<BR>
<BR>
As in Ken's example, this works very similarly with a Group filter in<BR>
place of the PPF.<BR>
<BR>
This still seems very confusing, and I hope someone will have some clue!<BR>
<BR>
Thanks,<BR>
-Eric<BR>
<BR>
------------------------------------------------------<BR>
Eric E Monson<BR>
Duke Visualization Technology Group<BR>
<BR>
Test data set:<BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="1"><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:7.5pt'><BR>
**** Kenneth Moreland<BR>
*** Sandia National Laboratories<BR>
*********** <BR>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>