[Paraview] modpython:25: DeprecationWarning: integer argument expected, got float

Aurélien Marsan aur.marsan at gmail.com
Tue Sep 14 12:00:07 EDT 2010


The 3.8.0.
I can reproduce it, using a simple programmable source and scripting :


output = self.GetOutput()

output.GetInformation().Remove(output.DATA_TIME_STEPS())

output.GetInformation().Append(output.DATA_TIME_STEPS(), 0.5)

I will try to remove that line.


Le 14 septembre 2010 17:08, Berk Geveci <berk.geveci at kitware.com> a écrit :

> Hmm, that's weird. I can't reproduce it. Which version of ParaView are
> you using?
>
> On another note, I don't think that you need that line. The executive
> should set the DATA_TIME_STEPS() to be the same as the
> UPDATE_TIME_STEPS() for you.
>
> -berk
>
> 2010/9/13 Aurélien Marsan <aur.marsan at gmail.com>:
> > Good Afternoon,
> >
> > I produce a dataset with timestep, looking at
> >
> http://www.vtk.org/Wiki/Here_are_some_more_examples_of_simple_ParaView_3_python_filters
> .
> > It works well, but at the first time I use my Reader, just after having
> > launched Paraview, it displays me this message :
> > modpython:25: DeprecationWarning: integer argument expected, got float
> >
> > It looks like this is because of the line :
> > pdo.GetInformation().Append(pdo.DATA_TIME_STEPS(),
> > pyturbo.GetUpdateTimeSteps(self)[0])
> > where the function GetUpdateTimeSteps is the same as in the example
> > Producing Data with Timesteps of the wiki.
> >
> > Any suggestion of explanation ?
> > Many thanks,
> >
> > A.Marsan
> >
> > _______________________________________________
> > 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
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100914/a4769b68/attachment.htm>


More information about the ParaView mailing list