This problem should be fixed with the git-master following recent changes in the wrapping code. In any case that warning is harmless. In the old implementation of the wrapping code for Append looks something as follows:
static PyObject *PyvtkInformation_Append(PyObject *self, PyObject *args) { /* handle an occurrence */ { vtkInformation *op; vtkInformationIntegerVectorKey *temp0; PyObject *tempH0; int temp1; op = (vtkInformation *)PyArg_VTKParseTuple(self, args, (char*)"Oi", &tempH0, &temp1); // WARNING_PRODUCER if (op) { temp0 = (vtkInformationIntegerVectorKey *)vtkPythonGetPointerFromObject(tempH0,(char*)"vtkInformationIntegerVectorKey"); if (!temp0 && tempH0 != Py_None) goto break38; .... } } break38 ..... /* handle an occurrence */ { vtkInformation *op; vtkInformationDoubleVectorKey *temp0; PyObject *tempH0; double temp1; PyErr_Clear(); op = (vtkInformation *)PyArg_VTKParseTuple(self, args, (char*)"Od", &tempH0, &temp1); if (op) { temp0 = (vtkInformationDoubleVectorKey *)vtkPythonGetPointerFromObject(tempH0,(char*)"vtkInformationDoubleVectorKey"); .... } } ... } It was reading the int/double argument first and then testing the type of the key. Since the vtkInformationIntegerVectorKey was checked before the vtkInformationDoubleVectorKey, the warning was produced by the line maked WARNING_PRODUCER. The new wrapping code checks the type of the key first and hence won't produce the same warning. Utkarsh 2010/9/15 Aurélien Marsan <aur.mar...@gmail.com>: > I build it myself. > My operating system is : Linux 2.6.32-24-generic #42-Ubuntu SMP Fri Aug 20 > 14:21:58 UTC 2010 x86_64 GNU/Linux > > I just tried on the binary version.... and can reproduce it. weird... > > > Le 14 septembre 2010 21:01, Berk Geveci <berk.gev...@kitware.com> a écrit : >> >> I tried with 3.8.0 on Mac OS X. I still can't reproduce it. Which >> operating system are you using? Is this with out binary or did you >> build it yourself? >> >> 2010/9/14 Aurélien Marsan <aur.mar...@gmail.com>: >> > 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.gev...@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.mar...@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 >> >> > >> >> > >> > >> > > > > _______________________________________________ > 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 > > _______________________________________________ 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